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

Commit a784fc40 authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Freeup lock when IME is set inactive and unbound"

parents 5836ffd3 322ee9bf
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -655,6 +655,7 @@ public final class InputMethodManager {
                            } catch (RemoteException e) {
                            }
                        }
                    }
                    // Check focus again in case that "onWindowFocus" is called before
                    // handling this message.
                    if (mServedView != null && canStartInput(mServedView)) {
@@ -664,7 +665,6 @@ public final class InputMethodManager {
                            startInputInner(reason, null, 0, 0, 0);
                        }
                    }
                    }
                    return;
                }
                case MSG_SEND_INPUT_EVENT: {
@@ -1225,6 +1225,10 @@ public final class InputMethodManager {
     */
    void clearBindingLocked() {
        if (DEBUG) Log.v(TAG, "Clearing binding!");
        if (mWindowFocusGainFuture != null) {
            mWindowFocusGainFuture.cancel(false /* mayInterruptIfRunning */);
            mWindowFocusGainFuture = null;
        }
        clearConnectionLocked();
        setInputChannelLocked(null);
        mBindSequence = -1;