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

Commit 1e4861ab authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Refine haptics and snap zones for magnetic split divider

- Refactors MagneticDividerUtils to utilize more advanced Kotlin and match the MotionValue API better.
- Haptic now only plays on attach, not detach.
- No longer plays a snap or haptic at the screen edge.
- Widens the snap zone to 56dp on each side.
- Softens the magnetic spring to 850/0.95.

Bug: 383631946
Flag: com.android.wm.shell.enable_magnetic_split_divider
Test: MagneticDividerUtilsTests
Change-Id: I0f34f5101b6a875b0c5f051fb121c029685e9c71
parent c0b13b32
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