summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-06-11 14:10:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-11 14:10:03 +0000
commit08f247fe2e073a5ec62dc0469d83f514aab31c42 (patch)
tree3a2f2a869731e743de4e7fcd711d2f49aa443c88
parentc110887c2ad9de1de5154ac67740c6a0860fa016 (diff)
parent6215478e567b9d12df8d701c2312e7bc4a3f7570 (diff)
downloadframeworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.zip
frameworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.tar.gz
frameworks_base-08f247fe2e073a5ec62dc0469d83f514aab31c42.tar.bz2
Merge "Fix rotation tile animation" into mnc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java4
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;