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

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

Modifiying the rules that determine magnetic dismissibility

To avoid accidental dismissals, we also consider the magnitude and
direction of velocity to determine if a notification is dismissible
after it has been magnetically detached from its neighbors. When
detached, a notification snaps back when there is a fast enough fling in
the opposite direction relative to the detachment direction. In any
other case, the notification dismisses when let go.

Test: modified and added new Unit tests
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 405126597
Change-Id: Ic4c9074d2dc2e995c1b28b11529aa97395d1144e
parent 4df49144
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