File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/java/com/simplemobiletools/notes Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,16 @@ protected void onCreate(Bundle savedInstanceState) {
1818
1919 @ OnClick (R .id .license_butterknife_title )
2020 public void butterKnifeClicked () {
21- openUrl (getResources (). getString ( R .string .butterknife_url ) );
21+ openUrl (R .string .butterknife_url );
2222 }
2323
2424 @ OnClick (R .id .license_ambilwarna_title )
2525 public void ambilwarnaClicked () {
26- openUrl (getResources (). getString ( R .string .ambilwarna_url ) );
26+ openUrl (R .string .ambilwarna_url );
2727 }
2828
29- private void openUrl (String url ) {
29+ private void openUrl (int id ) {
30+ final String url = getResources ().getString (id );
3031 final Intent browserIntent = new Intent (Intent .ACTION_VIEW , Uri .parse (url ));
3132 startActivity (browserIntent );
3233 }
You can’t perform that action at this time.
0 commit comments