mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-11 09:20:36 +01:00
small function change
This commit is contained in:
parent
6ea86b85aa
commit
bf0ef2b70c
@ -18,10 +18,11 @@ public class LicenseActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
@OnClick(R.id.license_butterknife_title)
|
@OnClick(R.id.license_butterknife_title)
|
||||||
public void butterKnifeClicked() {
|
public void butterKnifeClicked() {
|
||||||
openUrl(getResources().getString(R.string.butterknife_url));
|
openUrl(R.string.butterknife_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));
|
final Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
||||||
startActivity(browserIntent);
|
startActivity(browserIntent);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user