Merge "Set mNextServedView as null only when current served view lost focus" into rvc-dev am: 62748d0a66 am: 25bc08c735
Change-Id: I44f3fc8287cc605f350dc6ef6d32d557a169b3ee
This commit is contained in:
@@ -165,10 +165,16 @@ public final class ImeFocusController {
|
||||
if (!getImmDelegate().isCurrentRootView(view.getViewRootImpl())) {
|
||||
return;
|
||||
}
|
||||
if (mServedView == view || !view.hasImeFocus() || !view.hasWindowFocus()) {
|
||||
if (!view.hasImeFocus() || !view.hasWindowFocus()) {
|
||||
return;
|
||||
}
|
||||
mNextServedView = hasFocus ? view : null;
|
||||
if (DEBUG) Log.d(TAG, "onViewFocusChanged, view=" + view + ", mServedView=" + mServedView);
|
||||
|
||||
if (hasFocus) {
|
||||
mNextServedView = view;
|
||||
} else if (view == mServedView) {
|
||||
mNextServedView = null;
|
||||
}
|
||||
mViewRootImpl.dispatchCheckFocus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user