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

Commit 460f457e authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "Re-start input when the IME is deactivated but window is focused"

parents 4d992dbe 31e4e149
Loading
Loading
Loading
Loading
+10 −3
Original line number Original line Diff line number Diff line
@@ -403,6 +403,9 @@ public final class InputMethodManager {
                                mIInputContext.finishComposingText();
                                mIInputContext.finishComposingText();
                            } catch (RemoteException e) {
                            } catch (RemoteException e) {
                            }
                            }
                            // Check focus again in case that "onWindowFocus" is called before
                            // handling this message.
                            checkFocus(mHasBeenInactive);
                        }
                        }
                    }
                    }
                    return;
                    return;
@@ -1173,13 +1176,17 @@ public final class InputMethodManager {
        }
        }
    }
    }


    private void checkFocus(boolean forceNewFocus) {
        if (checkFocusNoStartInput(forceNewFocus)) {
            startInputInner(null, 0, 0, 0);
        }
    }

    /**
    /**
     * @hide
     * @hide
     */
     */
    public void checkFocus() {
    public void checkFocus() {
        if (checkFocusNoStartInput(false)) {
        checkFocus(false);
            startInputInner(null, 0, 0, 0);
        }
    }
    }


    private boolean checkFocusNoStartInput(boolean forceNewFocus) {
    private boolean checkFocusNoStartInput(boolean forceNewFocus) {