mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-24 12:08:45 +02:00
small function change
This commit is contained in:
parent
a38ad05504
commit
5c6c333582
@ -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