Merge "Replace action button "Uninstall" with "Restart""

This commit is contained in:
Treehugger Robot
2020-02-20 08:15:54 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 3 deletions

View File

@@ -27,10 +27,11 @@
<string name="notification_action_cancel">Cancel</string> <string name="notification_action_cancel">Cancel</string>
<!-- Action on notification: Discard installation [CHAR LIMIT=16] --> <!-- Action on notification: Discard installation [CHAR LIMIT=16] -->
<string name="notification_action_discard">Discard</string> <string name="notification_action_discard">Discard</string>
<!-- Action on notification: Uninstall Dynamic System [CHAR LIMIT=16] -->
<string name="notification_action_uninstall">Uninstall</string>
<!-- Action on notification: Restart to Dynamic System [CHAR LIMIT=16] --> <!-- Action on notification: Restart to Dynamic System [CHAR LIMIT=16] -->
<string name="notification_action_reboot_to_dynsystem">Restart</string> <string name="notification_action_reboot_to_dynsystem">Restart</string>
<!-- Action on notification: Restart to original Android version [CHAR LIMIT=16] -->
<string name="notification_action_reboot_to_origin">Restart</string>
<!-- Toast when installed Dynamic System is discarded [CHAR LIMIT=64] --> <!-- Toast when installed Dynamic System is discarded [CHAR LIMIT=64] -->
<string name="toast_dynsystem_discarded">Discarded dynamic system</string> <string name="toast_dynsystem_discarded">Discarded dynamic system</string>

View File

@@ -462,7 +462,7 @@ public class DynamicSystemInstallationService extends Service
.setStyle(new Notification.BigTextStyle().bigText(msgInUse)); .setStyle(new Notification.BigTextStyle().bigText(msgInUse));
builder.addAction(new Notification.Action.Builder( 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()); createPendingIntent(ACTION_REBOOT_TO_NORMAL)).build());
break; break;