From 09a7ec3fd3cd3b932b9ed4a16c87ce4bd9bcf150 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sun, 21 Oct 2018 13:31:50 +0200 Subject: [PATCH] Change inconsistent 'Upgrade' to 'Update' Signed-off-by: Jan-Christoph Borchardt --- .../fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java | 4 ++-- .../views/updates/items/KnownVulnAppListItemController.java | 2 +- app/src/main/res/layout/app_details2_header.xml | 2 +- app/src/main/res/values/strings.xml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java index 5375ac403..7283456f1 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java +++ b/app/src/main/java/org/fdroid/fdroid/views/AppDetailsRecyclerViewAdapter.java @@ -1101,7 +1101,7 @@ public class AppDetailsRecyclerViewAdapter api.setText(getApiText(apk)); - // Figuring out whether to show Install/Upgrade button or Downgrade button + // Figuring out whether to show Install/Update button or Downgrade button buttonDowngrade.setVisibility(View.GONE); buttonInstallUpgrade.setVisibility(View.GONE); buttonInstallUpgrade.setText(context.getString(R.string.menu_install)); @@ -1109,7 +1109,7 @@ public class AppDetailsRecyclerViewAdapter if (isAppInstalled && !isApkInstalled) { if (apk.versionCode > app.installedVersionCode) { // Change the label to indicate that pressing this - // button will result in upgrading the installed app + // button will result in updating the installed app buttonInstallUpgrade.setText(R.string.menu_upgrade); } else if (apk.versionCode < app.installedVersionCode) { // The Downgrade button should be shown in this case diff --git a/app/src/main/java/org/fdroid/fdroid/views/updates/items/KnownVulnAppListItemController.java b/app/src/main/java/org/fdroid/fdroid/views/updates/items/KnownVulnAppListItemController.java index 61ac64c2e..6d3631940 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/updates/items/KnownVulnAppListItemController.java +++ b/app/src/main/java/org/fdroid/fdroid/views/updates/items/KnownVulnAppListItemController.java @@ -67,7 +67,7 @@ public class KnownVulnAppListItemController extends AppListItemController { Apk installedApk = app.getInstalledApk(activity); if (installedApk == null) { throw new IllegalStateException( - "Tried to upgrade or uninstall app with known vulnerability but it doesn't seem to be installed"); + "Tried to update or uninstall app with known vulnerability but it doesn't seem to be installed"); } Apk suggestedApk = ApkProvider.Helper.findSuggestedApk(activity, app); diff --git a/app/src/main/res/layout/app_details2_header.xml b/app/src/main/res/layout/app_details2_header.xml index 1a7270c28..643d3aa7b 100755 --- a/app/src/main/res/layout/app_details2_header.xml +++ b/app/src/main/res/layout/app_details2_header.xml @@ -135,7 +135,7 @@ android:layout_toStartOf="@id/progress_cancel" /> - + Download all updates We found a vulnerability with %1$s. We recommend uninstalling this app immediately. - We found a vulnerability with %1$s. We recommend upgrading to the newest version immediately. + We found a vulnerability with %1$s. We recommend updating to the newest version immediately. Ignore Hide apps @@ -188,7 +188,7 @@ This often occurs with apps installed via Google Play or other sources, if they Video License: %s Source Code - Upgrade + Update Downgrade Donate Bitcoin