diff options
Diffstat (limited to 'core/java/android/view/inputmethod/InputMethodManager.java')
-rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index e9e4703..91fa211 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -222,11 +222,6 @@ public final class InputMethodManager { // ----------------------------------------------------------- /** - * This is the root view of the overall window that currently has input - * method focus. - */ - View mCurRootView; - /** * This is the view that should currently be served by an input method, * regardless of the state of setting that up. */ @@ -845,13 +840,6 @@ public final class InputMethodManager { void focusInLocked(View view) { if (DEBUG) Log.v(TAG, "focusIn: " + view); - - if (mCurRootView != view.getRootView()) { - // This is a request from a window that isn't in the window with - // IME focus, so ignore it. - return; - } - // Okay we have a new view that is being served. if (mServedView != view) { mCurrentTextBoxAttribute = null; @@ -925,7 +913,7 @@ public final class InputMethodManager { } /** - * Called by ViewRoot when its window gets input focus. + * Called by ViewRoot the first time it gets window focus. * @hide */ public void onWindowFocus(View rootView, View focusedView, int softInputMode, @@ -958,10 +946,9 @@ public final class InputMethodManager { } /** @hide */ - public void startGettingWindowFocus(View rootView) { + public void startGettingWindowFocus() { synchronized (mH) { mWindowFocusedView = null; - mCurRootView = rootView; } } @@ -1178,7 +1165,6 @@ public final class InputMethodManager { + " mBindSequence=" + mBindSequence + " mCurId=" + mCurId); p.println(" mCurMethod=" + mCurMethod); - p.println(" mCurRootView=" + mCurRootView); p.println(" mServedView=" + mServedView); p.println(" mLastServedView=" + mLastServedView); p.println(" mServedConnecting=" + mServedConnecting); |