summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2013-01-11 16:18:00 -0800
committerFabrice Di Meglio <fdimeglio@google.com>2013-01-11 16:49:30 -0800
commitc0cea0f519798889d93c2b01ad0319c5f1884e34 (patch)
tree0adc3d9df7d2354fc58a0a661380bb25c13bc79a /packages
parent16b9f07e3aa2aab3b61865fb5f7999c99c96aaaa (diff)
downloadframeworks_base-c0cea0f519798889d93c2b01ad0319c5f1884e34.zip
frameworks_base-c0cea0f519798889d93c2b01ad0319c5f1884e34.tar.gz
frameworks_base-c0cea0f519798889d93c2b01ad0319c5f1884e34.tar.bz2
Fix bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)
- mirror airplane mode off (GlobalActions), multi-users, adb connection icons - update refresh code Change-Id: I175dec33386c31d4de9028918a43eb6bcd9e9dfb
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 3227a34..01596dc 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -838,9 +838,14 @@ public class PhoneStatusBar extends BaseStatusBar {
}
public void refreshAllStatusBarIcons() {
- final int count = mStatusIcons.getChildCount();
+ refreshAllIconsForLayout(mStatusIcons);
+ refreshAllIconsForLayout(mNotificationIcons);
+ }
+
+ private void refreshAllIconsForLayout(LinearLayout ll) {
+ final int count = ll.getChildCount();
for (int n = 0; n < count; n++) {
- View child = mStatusIcons.getChildAt(n);
+ View child = ll.getChildAt(n);
if (child instanceof StatusBarIconView) {
((StatusBarIconView) child).updateDrawable();
}