am 08f247fe: Merge "Fix rotation tile animation" into mnc-dev
* commit '08f247fe2e073a5ec62dc0469d83f514aab31c42': Fix rotation tile animation
This commit is contained in:
@@ -73,6 +73,10 @@ public class RotationLockTile extends QSTile<QSTile.BooleanState> {
|
|||||||
: mController.isRotationLocked();
|
: mController.isRotationLocked();
|
||||||
final boolean userInitiated = arg != null ? ((UserBoolean) arg).userInitiated : false;
|
final boolean userInitiated = arg != null ? ((UserBoolean) arg).userInitiated : false;
|
||||||
state.visible = mController.isRotationLockAffordanceVisible();
|
state.visible = mController.isRotationLockAffordanceVisible();
|
||||||
|
if (state.value == rotationLocked) {
|
||||||
|
// No change, no need to update all the values.
|
||||||
|
return;
|
||||||
|
}
|
||||||
state.value = rotationLocked;
|
state.value = rotationLocked;
|
||||||
final boolean portrait = mContext.getResources().getConfiguration().orientation
|
final boolean portrait = mContext.getResources().getConfiguration().orientation
|
||||||
!= Configuration.ORIENTATION_LANDSCAPE;
|
!= Configuration.ORIENTATION_LANDSCAPE;
|
||||||
|
|||||||
Reference in New Issue
Block a user