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

Commit b52298dc authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "base: Remove duplicated key handling" into cm-11.0

parents ebb7b541 f7cd8a4e
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -2765,18 +2765,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        }

        // Specific device key handling
        if (mDeviceKeyHandler != null) {
            try {
                // The device only should consume known keys.
                if (mDeviceKeyHandler.handleKeyEvent(event)) {
                    return -1;
                }
            } catch (Exception e) {
                Slog.w(TAG, "Could not dispatch event to device key handler", e);
            }
        }

        // Let the application handle the key.
        return 0;
    }