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

Commit d47daa32 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit Committed by Android (Google) Code Review
Browse files

Merge "Define Haptics for Rotary HapticFeedbackConstants"

parents 2538ec94 067669df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5518,6 +5518,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        switch (effectId) {
            case HapticFeedbackConstants.CONTEXT_CLICK:
            case HapticFeedbackConstants.GESTURE_END:
            case HapticFeedbackConstants.ROTARY_SCROLL_TICK:
                return VibrationEffect.get(VibrationEffect.EFFECT_TICK);
            case HapticFeedbackConstants.TEXT_HANDLE_MOVE:
                if (!mHapticTextHandleEnabled) {
@@ -5536,6 +5537,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            case HapticFeedbackConstants.EDGE_RELEASE:
            case HapticFeedbackConstants.CONFIRM:
            case HapticFeedbackConstants.GESTURE_START:
            case HapticFeedbackConstants.ROTARY_SCROLL_ITEM_FOCUS:
            case HapticFeedbackConstants.ROTARY_SCROLL_LIMIT:
                return VibrationEffect.get(VibrationEffect.EFFECT_CLICK);
            case HapticFeedbackConstants.LONG_PRESS:
            case HapticFeedbackConstants.LONG_PRESS_POWER_BUTTON: