From 4503c8dd714e1e40306d9356bf27b1f4925ea5f0 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 17 Jun 2011 12:36:14 -0700 Subject: 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 --- core/java/android/view/View.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index b0e651a655da..f2400d8ca3c6 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8736,6 +8736,10 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit } jumpDrawablesToCurrentState(); resolveLayoutDirection(); + if (isFocused()) { + InputMethodManager imm = InputMethodManager.peekInstance(); + imm.focusIn(this); + } } /** -- cgit v1.2.3-59-g8ed1b