From 5b380af950681b766a6f4363b1407419c3258bf1 Mon Sep 17 00:00:00 2001 From: Po-Chien Hsueh Date: Thu, 20 Feb 2020 14:19:39 +0800 Subject: Replace action button "Uninstall" with "Restart" When DSU is running, restarting the device will not uninstall the installed system update. Bug: 149716233 Test: run DSU install Change-Id: If4e7b2f5f9123161ae85c0be80069aa600548c74 --- packages/DynamicSystemInstallationService/res/values/strings.xml | 5 +++-- .../src/com/android/dynsystem/DynamicSystemInstallationService.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/DynamicSystemInstallationService/res/values/strings.xml b/packages/DynamicSystemInstallationService/res/values/strings.xml index 25b7fc1b5ce2..e124be605cc7 100644 --- a/packages/DynamicSystemInstallationService/res/values/strings.xml +++ b/packages/DynamicSystemInstallationService/res/values/strings.xml @@ -27,10 +27,11 @@ Cancel Discard - - Uninstall Restart + + Restart + Discarded dynamic system diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java index 7affe8888628..37a77be52983 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java @@ -462,7 +462,7 @@ public class DynamicSystemInstallationService extends Service .setStyle(new Notification.BigTextStyle().bigText(msgInUse)); builder.addAction(new Notification.Action.Builder( - null, getString(R.string.notification_action_uninstall), + null, getString(R.string.notification_action_reboot_to_origin), createPendingIntent(ACTION_REBOOT_TO_NORMAL)).build()); break; -- cgit v1.2.3-59-g8ed1b