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

Skip to content
Commit 96cb6540 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Adding MSDL haptics to interactions with lockscreen shortcuts.

The KeyguardQuickAffordanceHapticViewModel is introduced to make use of
data flows about interactions with quick affordances. With these, the
view-model produces a Flow of haptic states, which can then be collected
to play the corresponding haptics using the MSDL player in SysUI.

Test: KeyguardQuickAffordanceHapticViewModelTest
Test: manual. Verified failure haptics when tapping on a shortcut.
Test: manual. Verified long-press haptics when launching from a
  shortcut.
Test: manual. Verified switch on haptics when long-pressing a shortcut
  turns a control on.
Test: manual. Verified switch off haptics when long-pressing a shortcut
  turns a control off.
Flag: com.android.systemui.msdl_feedback
Bug: 361320572

Change-Id: I9a4268251a4d5380cae3023ba23ccf30a6560ad5
parent 7415da58
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