summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2014-09-09 09:35:55 -0400
committerJason Monk <jmonk@google.com>2014-09-09 10:47:25 -0400
commite2f4771a0105ad6a94ff759353ca00c3a5fba72a (patch)
tree5e8406340ba48b04f34643b80d1dd42ca47e0861 /packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
parent24e08d0692583fbb038ea26236d9700b9019f1f1 (diff)
downloadframeworks_base-e2f4771a0105ad6a94ff759353ca00c3a5fba72a.zip
frameworks_base-e2f4771a0105ad6a94ff759353ca00c3a5fba72a.tar.gz
frameworks_base-e2f4771a0105ad6a94ff759353ca00c3a5fba72a.tar.bz2
Update zen mode and qs strings on locale change
Bug: 17288370 Change-Id: Ic6191d5c16687cd760b4a0656d6ee4dbb4c53c45
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSPanel.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSPanel.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
index 6bfe0a4..6117b98 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanel.java
@@ -89,6 +89,7 @@ public class QSPanel extends ViewGroup {
mDetailContent = (ViewGroup) mDetail.findViewById(android.R.id.content);
mDetailSettingsButton = (TextView) mDetail.findViewById(android.R.id.button2);
mDetailDoneButton = (TextView) mDetail.findViewById(android.R.id.button1);
+ updateDetailText();
mDetail.setVisibility(GONE);
mDetail.setClickable(true);
mBrightnessView = LayoutInflater.from(context).inflate(
@@ -112,6 +113,11 @@ public class QSPanel extends ViewGroup {
});
}
+ private void updateDetailText() {
+ mDetailDoneButton.setText(R.string.quick_settings_done);
+ mDetailSettingsButton.setText(R.string.quick_settings_more_settings);
+ }
+
public void setBrightnessMirror(BrightnessMirrorController c) {
super.onFinishInflate();
ToggleSlider brightnessSlider = (ToggleSlider) findViewById(R.id.brightness_slider);
@@ -150,6 +156,7 @@ public class QSPanel extends ViewGroup {
if (mListening) {
refreshAllTiles();
}
+ updateDetailText();
}
@Override