Partly inline on{Pre,Post}WindowFocus()
This is mechanical refactoring. There must be no behavior change. Bug: 234882948 Test: presubmit Change-Id: I8cd9dfe858c3ae4e860742a3b771888aa5d8921d
This commit is contained in:
@@ -74,9 +74,10 @@ public final class ImeFocusController {
|
||||
}
|
||||
mHasImeFocus = hasImeFocus;
|
||||
if (mHasImeFocus) {
|
||||
onPreWindowFocus(true /* hasWindowFocus */, windowAttribute);
|
||||
onPostWindowFocus(mViewRootImpl.mView.findFocus(), true /* hasWindowFocus */,
|
||||
windowAttribute);
|
||||
getImmDelegate().onPreWindowGainedFocus(mViewRootImpl);
|
||||
final View focusedView = mViewRootImpl.mView.findFocus();
|
||||
View viewForWindowFocus = focusedView != null ? focusedView : mViewRootImpl.mView;
|
||||
getImmDelegate().onPostWindowGainedFocus(viewForWindowFocus, windowAttribute);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user