Merge "Cleaning up UI jank while quick switching" into tm-qpr-dev

This commit is contained in:
Randy Pfohl
2023-01-13 23:02:41 +00:00
committed by Android (Google) Code Review

View File

@@ -321,9 +321,9 @@ public class RotationTouchHelper implements DisplayInfoChangeListener {
if (enable && !mInOverview && !TestProtocol.sDisableSensorRotation) {
// Clear any previous state from sensor manager
mSensorRotation = mCurrentAppRotation;
mOrientationListener.enable();
UI_HELPER_EXECUTOR.execute(mOrientationListener::enable);
} else {
mOrientationListener.disable();
UI_HELPER_EXECUTOR.execute(mOrientationListener::disable);
}
}