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

Commit 8558b6c7 authored by Josep del Río's avatar Josep del Río
Browse files

Revert "Do not intercept LANGUAGE_SWITCH in the framework layer"

This reverts commit 773e4ebf.

Reason for revert: Needs to be marged in aosp

Change-Id: Ifb7992f3d79a520f146586a624e9d5b36c88a252
parent 773e4ebf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2999,6 +2999,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                if ((metaState & KeyEvent.META_META_MASK) == 0) {
                    return key_not_consumed;
                }
                // Share the same behavior with KEYCODE_LANGUAGE_SWITCH.
            case KeyEvent.KEYCODE_LANGUAGE_SWITCH:
                if (down && repeatCount == 0) {
                    int direction = (metaState & KeyEvent.META_SHIFT_MASK) != 0 ? -1 : 1;
                    mWindowManagerFuncs.switchKeyboardLayout(event.getDeviceId(), direction);