diff --git a/quickstep/src/com/android/quickstep/RotationTouchHelper.java b/quickstep/src/com/android/quickstep/RotationTouchHelper.java index f8b69666fe..4c66dbb66d 100644 --- a/quickstep/src/com/android/quickstep/RotationTouchHelper.java +++ b/quickstep/src/com/android/quickstep/RotationTouchHelper.java @@ -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); } }