From 5c6c3335823c2054f9e72daf0935d859612246df Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 2 Jun 2016 20:25:34 +0200 Subject: [PATCH] small function change --- .../java/com/simplemobiletools/camera/LicenseActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/simplemobiletools/camera/LicenseActivity.java b/app/src/main/java/com/simplemobiletools/camera/LicenseActivity.java index 82251bcf..b99780fa 100644 --- a/app/src/main/java/com/simplemobiletools/camera/LicenseActivity.java +++ b/app/src/main/java/com/simplemobiletools/camera/LicenseActivity.java @@ -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); }