Assigned
Status Update
Comments
il...@google.com <il...@google.com> #2
Please include a sample project that reproduces your issue.
ga...@google.com <ga...@google.com> #3
Here is the sample project.
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Description
Component used: activity-compose -
PredictiveBackHandler
Right now, when getting the progress events, you can tell the
touchX
andtouchY
and the progress, but you’d need to manually track the velocity to understand the velocity with which a gesture is performed.I’d like this velocity to be able to use
animateDecay
, oranimateTo()
onAnimatable
, to be able to smoothly finish the animation from where it left off. To do this, I’ve addedVelocityTracker
, but the BackEvent doesn’t containuptimeMillis
, leading me to useSystem.currentTimeMillis
, which could be inaccurate if an event comes in a different order.