small function change

This commit is contained in:
tibbi 2016-06-02 20:25:34 +02:00
parent a38ad05504
commit 5c6c333582
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}