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

Commit 678e38e2 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Mechanical code clean-ups in MSG_UNBIND handler.

As a preparation to fix Bug 25373872, this CL does a mechanical
code clean-ups.  Literally there is no behavior change.

Bug: 24504456
Change-Id: I6e3062bda17e748a3c5f1450d6752239dd260520
parent 83e3563e
Loading
Loading
Loading
Loading
+10 −22
Original line number Diff line number Diff line
@@ -443,30 +443,18 @@ public final class InputMethodManager {
                    if (DEBUG) {
                        Log.i(TAG, "handleMessage: MSG_UNBIND " + sequence);
                    }
                    boolean startInput = false;
                    final boolean startInput;
                    synchronized (mH) {
                        if (mBindSequence == sequence) {
                            if (false) {
                                // XXX the server has already unbound!
                                if (mCurMethod != null && mCurrentTextBoxAttribute != null) {
                                    try {
                                        mCurMethod.finishInput();
                                    } catch (RemoteException e) {
                                        Log.w(TAG, "IME died: " + mCurId, e);
                                    }
                                }
                        if (mBindSequence != sequence) {
                            return;
                        }
                        clearBindingLocked();
                            
                        // If we were actively using the last input method, then
                        // we would like to re-connect to the next input method.
                        if (mServedView != null && mServedView.isFocused()) {
                            mServedConnecting = true;
                        }
                            if (mActive) {
                                startInput = true;
                            }
                        }
                        startInput = mActive;
                    }
                    if (startInput) {
                        startInputInner(null, 0, 0, 0);