mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-06 05:03:26 +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)
|
||||
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));
|
||||
startActivity(browserIntent);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user