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

Commit b2676f22 authored by Tony Wickham's avatar Tony Wickham Committed by Automerger Merge Worker
Browse files

Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3 am: fa5559ff

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I3a0fd6a4af4c210a1b91635f438b310a68e7a39d
parents 633f0ca0 fa5559ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -480,8 +480,9 @@ public class TouchInteractionService extends Service implements PluginListener<O
                // Clone the previous gesture state since onConsumerAboutToBeSwitched might trigger
                // onConsumerInactive and wipe the previous gesture state
                GestureState prevGestureState = new GestureState(mGestureState);
                mGestureState = createGestureState(mGestureState);
                GestureState newGestureState = createGestureState(mGestureState);
                mConsumer.onConsumerAboutToBeSwitched();
                mGestureState = newGestureState;
                mConsumer = newConsumer(prevGestureState, mGestureState, event);

                ActiveGestureLog.INSTANCE.addLog("setInputConsumer: " + mConsumer.getName());