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

Commit ca066bcd authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Also call IMM#checkFocus() in IMM#hideSoftInputFromView()" into main

parents 721670be 257ecd25
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2461,6 +2461,7 @@ public final class InputMethodManager {
     * @hide
     * @hide
     */
     */
    public boolean hideSoftInputFromView(@NonNull View view, @HideFlags int flags) {
    public boolean hideSoftInputFromView(@NonNull View view, @HideFlags int flags) {
        checkFocus();
        final boolean isFocusedAndWindowFocused = view.hasWindowFocus() && view.isFocused();
        final boolean isFocusedAndWindowFocused = view.hasWindowFocus() && view.isFocused();
        synchronized (mH) {
        synchronized (mH) {
            final boolean hasServedByInputMethod = hasServedByInputMethodLocked(view);
            final boolean hasServedByInputMethod = hasServedByInputMethodLocked(view);