Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618 Change-Id: I8d0a8f74ee677e5063c6ff84288bc7bd8e7a517c
This commit is contained in:
commit
fa5559ff64
1 file changed
+2
-1
+2
-1
@@ -480,8 +480,9 @@ public class TouchInteractionService extends Service implements PluginListener<O
|
|||||||
// Clone the previous gesture state since onConsumerAboutToBeSwitched might trigger
|
// Clone the previous gesture state since onConsumerAboutToBeSwitched might trigger
|
||||||
// onConsumerInactive and wipe the previous gesture state
|
// onConsumerInactive and wipe the previous gesture state
|
||||||
GestureState prevGestureState = new GestureState(mGestureState);
|
GestureState prevGestureState = new GestureState(mGestureState);
|
||||||
mGestureState = createGestureState(mGestureState);
|
GestureState newGestureState = createGestureState(mGestureState);
|
||||||
mConsumer.onConsumerAboutToBeSwitched();
|
mConsumer.onConsumerAboutToBeSwitched();
|
||||||
|
mGestureState = newGestureState;
|
||||||
mConsumer = newConsumer(prevGestureState, mGestureState, event);
|
mConsumer = newConsumer(prevGestureState, mGestureState, event);
|
||||||
|
|
||||||
ActiveGestureLog.INSTANCE.addLog("setInputConsumer: " + mConsumer.getName());
|
ActiveGestureLog.INSTANCE.addLog("setInputConsumer: " + mConsumer.getName());
|
||||||
|
|||||||
Reference in new issue
Block a user