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

Commit 89b17225 authored by Jim Miller's avatar Jim Miller
Browse files

Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing

parent 2eb47965
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2189,8 +2189,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }
    
    public boolean performHapticFeedbackLw(WindowState win, int effectId, boolean always) {
        if (!always && Settings.System.getInt(mContext.getContentResolver(),
                Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 0) {
        final boolean hapticsDisabled = Settings.System.getInt(mContext.getContentResolver(),
                Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 0;
        if (!always && (hapticsDisabled || mKeyguardMediator.isShowing())) {
            return false;
        }
        switch (effectId) {