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

Commit dad194eb authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

IME : Fix sym key regression

http://review.cyanogenmod.org/#/c/25787/2 caused the "dismiss" arrow
for ime's to execute back action as well. Reproducible via :

Open sms app->Open message thread->Tap message field->Tap downward arrow on navbar

Expected behaviour : Keyboard should be dismissed
Actual behaviour : Keyboard is dismissed and user is taken to previous screen.

Change-Id: I6ab65b00464fb6e00849d7fd6c8bd438b23ee76b
parent f603da9f
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1570,14 +1570,13 @@ public final class InputMethodManager {
        boolean handled = false;
        synchronized (mH) {
            if (DEBUG) Log.d(TAG, "dispatchKeyEvent");

            boolean symShowIME = context.getResources().getBoolean(
                    com.android.internal.R.bool.config_symKeyShowsImePicker);
            if (mCurMethod != null) {
                if (context.getResources().getBoolean(com.android.internal.R.bool.config_symKeyShowsImePicker)) {
                    if (key.getAction() == KeyEvent.ACTION_DOWN
                if (symShowIME && key.getAction() == KeyEvent.ACTION_DOWN
                        && key.getKeyCode() == KeyEvent.KEYCODE_SYM) {
                    showInputMethodPickerLocked();
                    handled = true;
                    }
                } else {
                    try {
                        if (DEBUG) Log.v(TAG, "DISPATCH KEY: " + mCurMethod);