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

Commit 6ff1d13e authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Using a weighted average for direction estimation

This gives a higher weight to the most recent translations in the
internal translation buffer used to estimate the detaching direction. It
mitigates cases in which the esimtation is wrong after a sudden and
large translation opposite to the real detach direction.

Test: manual. Verified the dismiss direction is the same as the detach
  direction after sudden translations in the opposite direction.
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 414432406

Change-Id: I381d40966cb6c1f280c3acfa069151e1fb596524
parent f1e8a993
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