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

Commit 5f057a99 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Store newGestureState before onConsumerAboutToBeSwitched clears it"...

Merge "Store newGestureState before onConsumerAboutToBeSwitched clears it" into ub-launcher3-rvc-dev am: 7551b619

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

Change-Id: If316db050aa0794fb43b892b424598c1ff4e7bbc
parents 7273d3c3 7551b619
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());