diff options
| author | 2018-03-23 13:53:27 -0700 | |
|---|---|---|
| committer | 2018-03-23 13:53:27 -0700 | |
| commit | 43f5cd75343daa495c8985275ec79ee864d701a1 (patch) | |
| tree | 0094bfb03e1839e6aa16ec35f6f5c10b0319226a | |
| parent | dc5677336c35c44e26592dfeefe160a4a9c4bbe0 (diff) | |
Revert the low battery warning title to previous version.
This CL removes the "Turn on Battery Saver" text from the title
since this is already added as an action to the notification.
Test: SysUI tests pass
Bug: 76205767
Change-Id: I7b7f612101c67df994e51dfa824c5af057e02f18
| -rw-r--r-- | packages/SystemUI/res/values/strings.xml | 4 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 3c8a69510f45..484b0ef93ec5 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -61,10 +61,6 @@ <!-- When the battery is low, this is displayed to the user in a dialog. The title of the low battery alert. [CHAR LIMIT=NONE]--> <string name="battery_low_title">Battery is low</string> - <!-- When the battery is low and hybrid notifications are enabled, this is displayed to the user in a dialog. - The title of the low battery alert. [CHAR LIMIT=NONE]--> - <string name="battery_low_title_hybrid">Battery is low. Turn on Battery Saver</string> - <!-- A message that appears when the battery level is getting low in a dialog. This is appended to the subtitle of the low battery alert. "percentage" is the percentage of battery remaining [CHAR LIMIT=none]--> diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java index 9a3a825b138c..d7cc4ab89739 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java @@ -193,7 +193,6 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { // override notification copy if hybrid notification enabled if (mEstimate != null) { - title = mContext.getString(R.string.battery_low_title_hybrid); contentText = getHybridContentString(percentage); } |