From 361808fb366671a1af562e7633da68a08739ac7e Mon Sep 17 00:00:00 2001 From: Edward Cunningham Date: Wed, 31 Mar 2021 20:57:54 +0000 Subject: [PATCH] Update some Package Installer strings. Bug: 183699047 Test: manual Change-Id: I632bcaf2b448d3c697be0fe060df7cc5b67da94e --- .../res/layout/install_content_view.xml | 8 -------- .../PackageInstaller/res/values/strings.xml | 18 +++++++----------- .../PackageInstallerActivity.java | 5 ++--- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/packages/PackageInstaller/res/layout/install_content_view.xml b/packages/PackageInstaller/res/layout/install_content_view.xml index 5e94a29a63991..bd08483e3619b 100644 --- a/packages/PackageInstaller/res/layout/install_content_view.xml +++ b/packages/PackageInstaller/res/layout/install_content_view.xml @@ -85,14 +85,6 @@ android:text="@string/install_confirm_question_update" android:visibility="invisible" /> - - Install + Update + Done Cancel @@ -32,15 +34,9 @@ App installed. - Do you want to install this application? + Do you want to install this app? - Do you want to install an update - to this existing application? Your existing data will not - be lost. - - Do you want to install an update - to this built-in application? Your existing data will not - be lost. + Do you want to update this app? App not installed. - For your security, your tablet is not allowed to install unknown apps from this source. + For your security, your tablet currently isn’t allowed to install unknown apps from this source. You can change this in Settings. - For your security, your TV is not allowed to install unknown apps from this source. + For your security, your TV currently isn’t allowed to install unknown apps from this source. You can change this in Settings. - For your security, your phone is not allowed to install unknown apps from this source. + For your security, your phone currently isn’t allowed to install unknown apps from this source. You can change this in Settings. diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java index b0c316908a10e..4578597a5a9d9 100644 --- a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java +++ b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java @@ -123,9 +123,8 @@ public class PackageInstallerActivity extends AlertActivity { View viewToEnable; if (mAppInfo != null) { - viewToEnable = (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 - ? requireViewById(R.id.install_confirm_question_update_system) - : requireViewById(R.id.install_confirm_question_update); + viewToEnable = requireViewById(R.id.install_confirm_question_update); + mOk.setText(R.string.update); } else { // This is a new application with no permissions. viewToEnable = requireViewById(R.id.install_confirm_question);