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

Commit e9a3ef94 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Dismissing with correct velocity when flinging and not detaching.

If the user flings a notification without detaching it, the detach
direction should be 0. In this case, the SwipeHelper should use an
unmodified velocity to run the dismiss animation. At the same time, the
internal direction estimator of MagneticRowManagerImpl should reset the
direction to 0 when called to reset()

Test: manual. Verified notifications dismiss in the correct direction
  when flinging right and left without magnetic detachtments.
Test: added Unit test
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 416012576
Change-Id: Ibac2d86499340e013c42dbf897e5eb72637c1041
parent 1cd751d8
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