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

Commit c53b7367 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE: Freeup lock when IME is set inactive and unbound" into qt-qpr1-dev

parents a79e16c8 ad0a4a22
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;