summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-06-08 21:51:44 -0700
committerDianne Hackborn <hackbod@google.com>2011-06-08 22:26:33 -0700
commit48a7651823030ed3c0f4c084b423430044425fea (patch)
tree593a12e4aa51d8bff8fdb7cf34f3afca9f7e8a99 /packages
parent021408910af170268cb486910d4dd5a7d838c2bb (diff)
downloadframeworks_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.java5
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
);