Merge "Fix rotation tile animation" into mnc-dev

This commit is contained in:
Jason Monk
2015-06-11 14:10:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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;