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

Commit f7cd8a4e authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

base: Remove duplicated key handling



Change-Id: Ifd8ecac2b3758f0c6a4dbaa39350831af0b145a0
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent c998951e
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;
    }