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

Commit f6e14231 authored by wilsonshih's avatar wilsonshih
Browse files

Fixes Activity cannot receive ACTION_CANCEL after onBackStarted.

Upon the client-side receiving onBackStarted, isBackGestureInProgress
returns true, and subsequent motion events are consumed by DecorView.
Once the CANCEL event is handled, the gesture is marked as intercepted,
and subsequent motion events are ignored.

Flag: com.android.window.flags.intercept_motion_from_move_to_cancel
Bug: 404173501
Test: atest OnBackInvokedCallbackGestureTest
Test: manual test with sample app, verify the CANCEL event should be
dispatched to the target which receive DOWN.

Change-Id: I8654a9d277ee38bbc483b6190332abb8833bc510
parent 2a2f062d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment