Use a fallback vibration effect for GESTURE_END
In the case where there is no hardware tuned effect, fallback to the generic implementation for EFFECT_TICK. Bug: 185418411 Test: manual Change-Id: I3c00d1db363bb11f8d18faa762589b1937c4370c
This commit is contained in:
committed by
Ed Savage-Jones
parent
964fccfefd
commit
b991091502
@@ -5257,6 +5257,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
long[] pattern;
|
||||
switch (effectId) {
|
||||
case HapticFeedbackConstants.CONTEXT_CLICK:
|
||||
case HapticFeedbackConstants.GESTURE_END:
|
||||
return VibrationEffect.get(VibrationEffect.EFFECT_TICK);
|
||||
case HapticFeedbackConstants.TEXT_HANDLE_MOVE:
|
||||
if (!mHapticTextHandleEnabled) {
|
||||
@@ -5269,7 +5270,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case HapticFeedbackConstants.VIRTUAL_KEY_RELEASE:
|
||||
case HapticFeedbackConstants.ENTRY_BUMP:
|
||||
case HapticFeedbackConstants.DRAG_CROSSING:
|
||||
case HapticFeedbackConstants.GESTURE_END:
|
||||
return VibrationEffect.get(VibrationEffect.EFFECT_TICK, false);
|
||||
case HapticFeedbackConstants.KEYBOARD_TAP: // == KEYBOARD_PRESS
|
||||
case HapticFeedbackConstants.VIRTUAL_KEY:
|
||||
|
||||
Reference in New Issue
Block a user