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

Using performHapticFeedback on LockIconViewController

Moving towards new haptics API that triggers haptics directly from the UI thread.
The LockIconViewController can use the new performHapticFeedback method in the events of (DOWN)
HOVER_ENTER and (MOVE) HOVER_MOVE (via LongPress). The haptics for the HOVER_ENTER event use
the CONTEXT_CLICK constant. Consistent with the intended behavior and relation to the
UdfpsController, haptics for the case of a long press (due to HOVER_MOVE) use the LONG_PRESS
constant. The changes are controlled by a feature flag.

Test: Tests were added to the LockIconViewControllerTest class to verify
  the use of old and new vibration methods on the above events.
Bug: 245528624
Change-Id: I6ab402df7339df33b4ee54585478d75ff9ffac40
parent 0ac98182
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment