Loading core/java/android/view/inputmethod/InputMethodManager.java +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1306,19 +1306,15 @@ public final class InputMethodManager { if (DEBUG) Log.v(TAG, "focusOut: " + view if (DEBUG) Log.v(TAG, "focusOut: " + view + " mServedView=" + mServedView + " mServedView=" + mServedView + " winFocus=" + view.hasWindowFocus()); + " winFocus=" + view.hasWindowFocus()); if (mServedView != view) { // CAVEAT: We have ignored focusOut event in Android L MR-1 and prior. Need special // The following code would auto-hide the IME if we end up // care when changing the logic here because there are so many cases to be taken into // with no more views with focus. This can happen, however, // consideration, e.g., WindowManager.LayoutParams.SOFT_INPUT_* flags. // whenever we go into touch mode, so it ends up hiding if (mServedView == view && view.hasWindowFocus()) { // at times when we don't really want it to. For now it // seems better to just turn it all off. if (false && view.hasWindowFocus()) { mNextServedView = null; mNextServedView = null; scheduleCheckFocusLocked(view); scheduleCheckFocusLocked(view); } } } } } } } static void scheduleCheckFocusLocked(View view) { static void scheduleCheckFocusLocked(View view) { ViewRootImpl viewRootImpl = view.getViewRootImpl(); ViewRootImpl viewRootImpl = view.getViewRootImpl(); Loading Loading
core/java/android/view/inputmethod/InputMethodManager.java +6 −10 Original line number Original line Diff line number Diff line Loading @@ -1306,19 +1306,15 @@ public final class InputMethodManager { if (DEBUG) Log.v(TAG, "focusOut: " + view if (DEBUG) Log.v(TAG, "focusOut: " + view + " mServedView=" + mServedView + " mServedView=" + mServedView + " winFocus=" + view.hasWindowFocus()); + " winFocus=" + view.hasWindowFocus()); if (mServedView != view) { // CAVEAT: We have ignored focusOut event in Android L MR-1 and prior. Need special // The following code would auto-hide the IME if we end up // care when changing the logic here because there are so many cases to be taken into // with no more views with focus. This can happen, however, // consideration, e.g., WindowManager.LayoutParams.SOFT_INPUT_* flags. // whenever we go into touch mode, so it ends up hiding if (mServedView == view && view.hasWindowFocus()) { // at times when we don't really want it to. For now it // seems better to just turn it all off. if (false && view.hasWindowFocus()) { mNextServedView = null; mNextServedView = null; scheduleCheckFocusLocked(view); scheduleCheckFocusLocked(view); } } } } } } } static void scheduleCheckFocusLocked(View view) { static void scheduleCheckFocusLocked(View view) { ViewRootImpl viewRootImpl = view.getViewRootImpl(); ViewRootImpl viewRootImpl = view.getViewRootImpl(); Loading