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

Commit 4503c8dd authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Inform the InputMethodManager that a focused view has been attached.

This enables new fragments or views that have a focused EditText to register
the view with the input method framework as the served view.

Change-Id: I260439223b56626f2e57bd778bbe5194ed44e361
parent b6a6d595
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -8736,6 +8736,10 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
        }
        jumpDrawablesToCurrentState();
        resolveLayoutDirection();
        if (isFocused()) {
            InputMethodManager imm = InputMethodManager.peekInstance();
            imm.focusIn(this);
        }
    }

    /**