Merge "Cleaning up UI jank while quick switching" into tm-qpr-dev
This commit is contained in:
@@ -321,9 +321,9 @@ public class RotationTouchHelper implements DisplayInfoChangeListener {
|
|||||||
if (enable && !mInOverview && !TestProtocol.sDisableSensorRotation) {
|
if (enable && !mInOverview && !TestProtocol.sDisableSensorRotation) {
|
||||||
// Clear any previous state from sensor manager
|
// Clear any previous state from sensor manager
|
||||||
mSensorRotation = mCurrentAppRotation;
|
mSensorRotation = mCurrentAppRotation;
|
||||||
mOrientationListener.enable();
|
UI_HELPER_EXECUTOR.execute(mOrientationListener::enable);
|
||||||
} else {
|
} else {
|
||||||
mOrientationListener.disable();
|
UI_HELPER_EXECUTOR.execute(mOrientationListener::disable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user