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

Commit c330f7a9 authored by Michael Wright's avatar Michael Wright
Browse files

Don't vibrate on un-tuned devices when opening notification shade.

Bug: 65219268
Test: Manual
Change-Id: Ia661608931071102083cdecb56c7be6a123292e5
parent dc2b3be2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -404,8 +404,8 @@ public abstract class PanelView extends FrameLayout {
                false /* collapseWhenFinished */);
        notifyBarPanelExpansionChanged();
        if (mVibrateOnOpening && !isHapticFeedbackDisabled(mContext)) {
            AsyncTask.execute(
                    () -> mVibrator.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_TICK)));
            AsyncTask.execute(() ->
                    mVibrator.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_TICK, false)));
        }
    }