diff options
author | Jason Monk <jmonk@google.com> | 2015-06-15 10:19:26 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-06-15 10:19:26 -0400 |
commit | 1634d182e141a737de447e86174810b95e174dee (patch) | |
tree | 2db44b9b38fd4d53f12c121c820c9c65b07a1bba /packages | |
parent | b3c8564314a4ce05b722e33409f2c15bcdac6666 (diff) | |
download | frameworks_base-1634d182e141a737de447e86174810b95e174dee.zip frameworks_base-1634d182e141a737de447e86174810b95e174dee.tar.gz frameworks_base-1634d182e141a737de447e86174810b95e174dee.tar.bz2 |
Fix invisible rotation tile
Make sure we set the state at least once.
Bug: 21837219
Change-Id: Iabd0524f0c09fd3f7b895007204ddf49af19ea98
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java | 4 |
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; |