Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c5fa66d authored by randypfohl's avatar randypfohl Committed by Randy Pfohl
Browse files

Cleaning up UI jank while quick switching

Moving a few calls into the UI helper executor thread, as per the associated bug. duplicated the lines so the synchronous nature of clearing previous state wouldn't affect potential timings.

Test: local testing, rotating screen. quick switching apps.

Bug: 257470365
Change-Id: I59abad9ba51c0b19d467646752aa34ae7ef3ec1d
parent 3cd6cbe6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
        }
    }