Can't Repro
Status Update
Comments
st...@google.com <st...@google.com>
ha...@google.com <ha...@google.com> #2
Seems I don't have access to move this to component 1237242 which seems to be for UI automator, could you help move this issue to the correct component / triage? Thanks!
ha...@google.com <ha...@google.com> #3
Can you try with androidx.test.uiautomator:uiautomator:2.3.0-alpha01? There are some fling/gesture improvements which might have already fixed this.
ha...@google.com <ha...@google.com> #4
Just tested 2.3.0-alpha01 on my app (full compose) and it's the same maybe more than 50% of the fling(direction) are made as click.
Edit: in the logs fling(bounds=Rect(607, 1671 - 989, 1727),direction=RIGHT,speed=26250)
fling(bounds=Rect(61, 1908 - 1295, 2025),direction=UP,speed=26250)
fling(bounds=Rect(382, 303 - 871, 359),direction=UP,speed=26250)
Description
Component used: Wear-Compose Version used: 1.1.2
When using
Modifier.edgeSwipeToDismiss(state)
to include a swipe to dismiss atop a horizontal scroller, unexpected behavior will occur when you dismiss without anything in the back stack. A typical swipe to dismiss, without using the modifier, will not crash and will show you the Android OS as you swipe away your application. Using the modifier, it will crash and will not show you the Android OS as you swipe away your application.The error is:
java.lang.IllegalArgumentException: The WearNavigator backstack is empty, there is no navigation destination to display.