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

Commit 2d29a3ad authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Remove duplicated startInputUncheckedLocked invocation

As CL[1] removed unused "debug.optimize_startinput" flag logic in
IMMS#startInputOrWindowGainedFocusInternalLocked, we can even remove
duplicated startInputUncheckedLocked invocation to simpfy the code
block of the input didn't start part.

Note that this CL is a mechanical code refactoring, it should not have
any behavior change.

[1]: Ie7b09f16e517c0550ac495a8a8c8ef20abb6938e

Bug: 171827834
Test: atest CtsInputMethodTestCases
Change-Id: I8fbb2c6ad4dfbd8388d1780375f53fd750ebd83e
parent 5f630223
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3647,12 +3647,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                        hideCurrentInputLocked(mCurFocusedWindow, 0, null,
                                SoftInputShowHideReason.HIDE_SAME_WINDOW_FOCUSED_WITHOUT_EDITOR);
                    }
                }
                res = startInputUncheckedLocked(cs, inputContext, missingMethods, attribute,
                        startInputFlags, startInputReason);
                } else {
                    res = startInputUncheckedLocked(cs, inputContext, missingMethods, attribute,
                            startInputFlags, startInputReason);
                }
            } else {
                res = InputBindResult.NULL_EDITOR_INFO;
            }