OSDN Git Service

[QS] Update string name in prep for freeze
authorRohan Shah <shahrk@google.com>
Fri, 23 Mar 2018 20:16:11 +0000 (13:16 -0700)
committerRohan Shah <shahrk@google.com>
Fri, 23 Mar 2018 20:17:55 +0000 (13:17 -0700)
Renaming the night light's "until <time>" string in case the translation
pipeline would re-register it after the freeze.

This is prepping for a change for the DnD secondary label.

Test: Visually/compiles
Bug: 70799372
Change-Id: I83608ce4dbf96c558b05191fc79f69325281e5b9

packages/SystemUI/res/values/strings.xml
packages/SystemUI/src/com/android/systemui/qs/tiles/NightDisplayTile.java

index 3c8a695..4e4f5b3 100644 (file)
     <string name="quick_settings_night_secondary_label_until_sunrise">Until sunrise</string>
     <!-- QuickSettings: Secondary text for when the Night Light will be enabled at some user-selected time. [CHAR LIMIT=20] -->
     <string name="quick_settings_night_secondary_label_on_at">On at <xliff:g id="time" example="10 pm">%s</xliff:g></string>
-    <!-- QuickSettings: Secondary text for when the Night Light will be on until some user-selected time. [CHAR LIMIT=20] -->
-    <string name="quick_settings_night_secondary_label_until">Until <xliff:g id="time" example="7 am">%s</xliff:g></string>
+    <!-- QuickSettings: Secondary text for when the Night Light or some other tile will be on until some user-selected time. [CHAR LIMIT=20] -->
+    <string name="quick_settings_secondary_label_until">Until <xliff:g id="time" example="7 am">%s</xliff:g></string>
 
     <!-- QuickSettings: NFC tile [CHAR LIMIT=NONE] -->
     <string name="quick_settings_nfc_label">NFC</string>
index 5aace97..63be4b7 100644 (file)
@@ -133,7 +133,7 @@ public class NightDisplayTile extends QSTileImpl<BooleanState>
 
                 if (isNightLightActivated) {
                     toggleTime = mController.getCustomEndTime();
-                    toggleTimeStringRes = R.string.quick_settings_night_secondary_label_until;
+                    toggleTimeStringRes = R.string.quick_settings_secondary_label_until;
                 } else {
                     toggleTime = mController.getCustomStartTime();
                     toggleTimeStringRes = R.string.quick_settings_night_secondary_label_on_at;