summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/qs
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-06-15 14:26:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-15 14:26:38 +0000
commit7d79bea4a92760559f61cfbe412cd8470b84c9fc (patch)
tree6dac7edc69e18684cb8e71a8341bc358ab0bdc25 /packages/SystemUI/src/com/android/systemui/qs
parent5d8c276bb91788441ec9a98717017eb01f1b348f (diff)
parent1634d182e141a737de447e86174810b95e174dee (diff)
downloadframeworks_base-7d79bea4a92760559f61cfbe412cd8470b84c9fc.zip
frameworks_base-7d79bea4a92760559f61cfbe412cd8470b84c9fc.tar.gz
frameworks_base-7d79bea4a92760559f61cfbe412cd8470b84c9fc.tar.bz2
Merge "Fix invisible rotation tile" into mnc-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java
index 915867b..6d2c8c0 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java
@@ -73,8 +73,8 @@ public class RotationLockTile extends QSTile<QSTile.BooleanState> {
: mController.isRotationLocked();
final boolean userInitiated = arg != null ? ((UserBoolean) arg).userInitiated : false;
state.visible = mController.isRotationLockAffordanceVisible();
- if (state.value == rotationLocked) {
- // No change, no need to update all the values.
+ if (state.value == rotationLocked && state.contentDescription != null) {
+ // No change and initialized, no need to update all the values.
return;
}
state.value = rotationLocked;