mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-29 13:39:16 +01:00
small function edit
This commit is contained in:
parent
e506dfc36e
commit
8f1a09b7f6
@ -18,15 +18,16 @@ public class LicenseActivity extends AppCompatActivity {
|
||||
|
||||
@OnClick(R.id.license_butterknife_title)
|
||||
public void butterKnifeClicked() {
|
||||
openUrl(getResources().getString(R.string.butterknife_url));
|
||||
openUrl(R.string.butterknife_url);
|
||||
}
|
||||
|
||||
@OnClick(R.id.license_ambilwarna_title)
|
||||
public void ambilwarnaClicked() {
|
||||
openUrl(getResources().getString(R.string.ambilwarna_url));
|
||||
openUrl(R.string.ambilwarna_url);
|
||||
}
|
||||
|
||||
private void openUrl(String url) {
|
||||
private void openUrl(int id) {
|
||||
final String url = getResources().getString(id);
|
||||
final Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
||||
startActivity(browserIntent);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user