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
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index b0e651a..f2400d8 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -8736,6 +8736,10 @@
         }
         jumpDrawablesToCurrentState();
         resolveLayoutDirection();
+        if (isFocused()) {
+            InputMethodManager imm = InputMethodManager.peekInstance();
+            imm.focusIn(this);
+        }
     }
 
     /**