diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-08 21:51:44 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-06-08 22:26:33 -0700 |
commit | 48a7651823030ed3c0f4c084b423430044425fea (patch) | |
tree | 593a12e4aa51d8bff8fdb7cf34f3afca9f7e8a99 /packages | |
parent | 021408910af170268cb486910d4dd5a7d838c2bb (diff) | |
download | frameworks_base-48a7651823030ed3c0f4c084b423430044425fea.zip frameworks_base-48a7651823030ed3c0f4c084b423430044425fea.tar.gz frameworks_base-48a7651823030ed3c0f4c084b423430044425fea.tar.bz2 |
Fix for not reporting correct "sw" in compat mode.
Change-Id: Ia225c94b36ccc3589d417aafd5680247678eddfd
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/CompatModeButton.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/CompatModeButton.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/CompatModeButton.java index 9b44f78..c3052e8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/CompatModeButton.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/CompatModeButton.java @@ -54,8 +54,9 @@ public class CompatModeButton extends ImageView implements View.OnClickListener } public void refresh() { - setVisibility( - (mAM.getFrontActivityScreenCompatMode() == ActivityManager.COMPAT_MODE_NEVER) + int mode = mAM.getFrontActivityScreenCompatMode(); + setVisibility((mode == ActivityManager.COMPAT_MODE_NEVER + || mode == ActivityManager.COMPAT_MODE_ALWAYS) ? View.GONE : View.VISIBLE ); |