Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
vi...@google.com <vi...@google.com> #2
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
vi...@google.com <vi...@google.com> #4
Thanks for the detailed bugreport. This has been fixed and shouldn't occur anymore on newer Android versions.
dm...@revolut.com <dm...@revolut.com> #5
Thank you for addressing this issue and confirming the resolution.
Description
Android 15: after calling Activity.recreate(), MotionEvent.ACTION_CANCEL stops being sent when initiating the Back Gesture instead application continue receive ACTION_MOVE and then ACTION_UP. Not reproducible in android <= 14
Details:
Prerequisites
- android emulator [ro.product.build.fingerprint]: [google/sdk_gphone64_arm64/emu64a:15/AE3A.240806.036/12592187:user/release-keys]
- or phone with android 15
- gesture navigation is enabled in system settings
- android:enableOnBackInvokedCallback="false" or not set in AndroidManifest > application
adb bugreport:
Reproduce with minimal sample project:
project created in AS jellyfish
targetSdk 34, compileSdk 35, default library versions after wizard
full project:
video:
steps
1) open BackGesture app
2) click 're-recreate activity' button
3) try to slowly invoke 'Back gesture' by swiping screen from left or right edge of screen and do not lift your finger
result actual
1) visuals for 'Back gesture' are displayed
2) 'touch counter' label goes up as long as your finger is moved
3) logcat with 'DELETEME' tag: ACTION_DOWN, new ACTION_MOVE are received until you rise finger, followed by ACTION_UP
result expected
1) visuals for 'Back gesture' are displayed
2) 'touch counter' label is goes up by few events, but stops almost immediately
3) logcat with 'DELETEME' tag: ACTION_DOWN, few ACTION_MOVE then ACTION_CANCEL
Reproduce with YouTube app:
video:
steps
1) open youtube app > You > Settings > General > Appearance
2) change theme to opposite to current one (Light <-> Dark)
3) return back to home
4) open any details screen for any channel
5) switch to second tab in ViewPager
6) try to slowly invoke 'Back gesture' by swiping screen from left or right edge of screen above "Home / Videos / Shorts... ViewPager" and do not lift your finger
result actual
1) visuals for 'Back gesture' are displayed
2) the ViewPager scroll responds to the finger position
3) optionally: bottom sheet is opened for video details
result expected
1) visuals for 'Back gesture' are displayed
2) the ViewPager isn't scrolling or affected in any way