diff options
author | Philip P. Moltmann <moltmann@google.com> | 2016-11-02 16:37:50 -0700 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2016-11-03 16:30:57 -0700 |
commit | 250fb72f2045841faacb8d51c183838f39c65cac (patch) | |
tree | b64eff4dc34ee12e011e795d9d157ee33ea7b142 /res/values/strings.xml | |
parent | e6163b3dfd4ff1433e6ed277ff4967625459b185 (diff) | |
download | android_packages_apps_PackageInstaller-250fb72f2045841faacb8d51c183838f39c65cac.tar.gz android_packages_apps_PackageInstaller-250fb72f2045841faacb8d51c183838f39c65cac.tar.bz2 android_packages_apps_PackageInstaller-250fb72f2045841faacb8d51c183838f39c65cac.zip |
Uninstaller: Check if allowed early
Run check for whether the user can request an uninstallation in
UninstallerActivity. This means that this now runs before the user
confirms to uninstall a package. This adds a new failure dialog in
UserIsNotAllowedDialogFragment.
Bonus: move dialog buttons to the right (neutral -> positive) where they
belong according to material design spec.
Test: Simulated a failure and saw UI.
Change-Id: Id3e3ade62d5422d0dc2cbda0ab91da0d7f5afed1
Diffstat (limited to 'res/values/strings.xml')
-rw-r--r-- | res/values/strings.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index b1c7c643..a571beb2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -98,6 +98,8 @@ <string name="dlg_ok">OK</string> <string name="app_not_found_dlg_title">App not found</string> <string name="app_not_found_dlg_text"> The app wasn\'t found in the list of installed apps.</string> + <string name="user_is_not_allowed_dlg_title">Not allowed</string> + <string name="user_is_not_allowed_dlg_text">The current user is not allowed to perform this uninstallation.</string> <string name="uninstall_application_title">Uninstall app</string> <string name="uninstall_update_title">Uninstall update</string> <string name="uninstall_activity_text"><xliff:g id="activity_name">%1$s</xliff:g> is part of the following app:</string> |