From 387b3726061b11e75fc8e682a1515a6e00243865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 5 May 2013 11:52:40 +0200 Subject: [PATCH] Removed some unnecessary calls (I think they are) --- src/org/fdroid/fdroid/AppDetails.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/fdroid/fdroid/AppDetails.java b/src/org/fdroid/fdroid/AppDetails.java index ea5cf5434..c9d62d481 100644 --- a/src/org/fdroid/fdroid/AppDetails.java +++ b/src/org/fdroid/fdroid/AppDetails.java @@ -386,7 +386,7 @@ public class AppDetails extends ListActivity { if (app.installedVersion == null) tv.setText(getString(R.string.details_notinstalled)); else - tv.setText(String.format(getString(R.string.details_installed), + tv.setText(getString(R.string.details_installed, app.installedVersion)); tv = (TextView) infoView.findViewById(R.id.description); @@ -464,7 +464,7 @@ public class AppDetails extends ListActivity { tv.setText("NONE"); } tv = (TextView) infoView.findViewById(R.id.permissions); - tv.setText(getResources().getString( + tv.setText(getString( R.string.permissions, app.apks.get(0).version)); } else { tv.setVisibility(View.GONE); @@ -542,7 +542,7 @@ public class AppDetails extends ListActivity { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(s))); } catch (android.content.ActivityNotFoundException e) { Toast toast = Toast.makeText(this, - String.format(getString(R.string.no_handler_app), s), 4); + getString(R.string.no_handler_app, s), 4); toast.show(); } }