From 89dd64a210d52a28b093a41ea543b637d3ee957a Mon Sep 17 00:00:00 2001 From: Henrik Tunedal Date: Tue, 22 Mar 2011 17:20:41 +0100 Subject: [PATCH] Remove APK count from AppDetails Rationale: 1) The string is competing for space with the license field. 2) It would need separate singular/plural versions to be correct. 3) It's unnecessary when the list of APKs is shown directly below. --- res/values/strings.xml | 2 +- src/org/fdroid/fdroid/AppDetails.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 95184871c..f0a92c8d5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -104,7 +104,7 @@ Donate Version %s installed - Not installed (%d available) + Not installed Installed Downloaded file is corrupt Download cancelled diff --git a/src/org/fdroid/fdroid/AppDetails.java b/src/org/fdroid/fdroid/AppDetails.java index 4a966c740..df8e9d497 100644 --- a/src/org/fdroid/fdroid/AppDetails.java +++ b/src/org/fdroid/fdroid/AppDetails.java @@ -308,10 +308,8 @@ public class AppDetails extends ListActivity { tv = (TextView) findViewById(R.id.license); tv.setText(app.license); tv = (TextView) findViewById(R.id.status); - int vnum = app.apks.size(); if (app.installedVersion == null) - tv.setText(String.format(getString(R.string.details_notinstalled), - vnum)); + tv.setText(getString(R.string.details_notinstalled)); else tv.setText(String.format(getString(R.string.details_installed), app.installedVersion));