diff options
author | Jason Monk <jmonk@google.com> | 2015-06-11 14:10:02 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-11 14:10:03 +0000 |
commit | 08f247fe2e073a5ec62dc0469d83f514aab31c42 (patch) | |
tree | 3a2f2a869731e743de4e7fcd711d2f49aa443c88 /packages | |
parent | c110887c2ad9de1de5154ac67740c6a0860fa016 (diff) | |
parent | 6215478e567b9d12df8d701c2312e7bc4a3f7570 (diff) | |
download | frameworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.zip frameworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.tar.gz frameworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.tar.bz2 |
Merge "Fix rotation tile animation" into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java | 4 |
1 files changed, 4 insertions, 0 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 7c378f0..915867b 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java @@ -73,6 +73,10 @@ 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. + return; + } state.value = rotationLocked; final boolean portrait = mContext.getResources().getConfiguration().orientation != Configuration.ORIENTATION_LANDSCAPE; |