diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-08 22:35:25 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-06-08 22:35:25 -0700 |
commit | 3aabdeaceff8405406d90c329a6691552559556d (patch) | |
tree | 60cb14813acd7af7d6bda6983c5914627bc9dcd3 /packages/SystemUI/src/com/android/systemui/statusbar/policy | |
parent | 2d618e415fa0ed8a1e7ac8d0ffe98cebdf6c208b (diff) | |
parent | 5ba2e872fa684c0f1b992a95df00854b58f2cd8c (diff) | |
download | frameworks_base-3aabdeaceff8405406d90c329a6691552559556d.zip frameworks_base-3aabdeaceff8405406d90c329a6691552559556d.tar.gz frameworks_base-3aabdeaceff8405406d90c329a6691552559556d.tar.bz2 |
am 5ba2e872: Merge "Fix for not reporting correct "sw" in compat mode." into honeycomb-mr2
* commit '5ba2e872fa684c0f1b992a95df00854b58f2cd8c':
Fix for not reporting correct "sw" in compat mode.
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/policy')
-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 ); |