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