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

Commit 801af23f authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

PhoneWindowManager: Improve home button wake haptic feedback handling

* This fixes an issue where haptic feedback is used
  when screen is off and home button wake is disabled.

Change-Id: I7ac4c00598cedf7f174dc99629f55dc7b74b0d2a
parent 39b10847
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -6743,8 +6743,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            }

            case KeyEvent.KEYCODE_HOME:
                if (down && !interactive && mHomeWakeScreen) {
                    isWakeKey = true;
                if (down && !interactive) {
                    isWakeKey = mHomeWakeScreen;
                    if (!isWakeKey) {
                        useHapticFeedback = false;
                    }
                }
                break;