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

Commit 647e5702 authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Add haptics to magnetic divider

Initializes MSDLPlayer in WMShellModule as a singleton to be used in Shell. (Can be cleaned up and replaced by a global import in GlobalModule -- currently being worked on by haptics team)

Adds logic to listen to segment changes in the MotionValue controller, and plays a small haptic click when attaching or detaching from a snap target.

Bug: 383631946
Flag: com.android.wm.shell.enable_magnetic_split_divider
Test: No changes with flag off. Plays haptics with flag on.
Change-Id: If0bdc46627afdc4f1794307333f10aba96210e3f
parent fb2a0e97
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