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
Loading
Please register or sign in to comment
