Merge "Add Null check for mView.findFocus() in ViewRootImpl" into rvc-qpr-dev
This commit is contained in:
@@ -3268,8 +3268,8 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
|
|
||||||
// Note: must be done after the focus change callbacks,
|
// Note: must be done after the focus change callbacks,
|
||||||
// so all of the view state is set up correctly.
|
// so all of the view state is set up correctly.
|
||||||
mImeFocusController.onPostWindowFocus(mView.findFocus(), hasWindowFocus,
|
mImeFocusController.onPostWindowFocus(mView != null ? mView.findFocus() : null,
|
||||||
mWindowAttributes);
|
hasWindowFocus, mWindowAttributes);
|
||||||
|
|
||||||
if (hasWindowFocus) {
|
if (hasWindowFocus) {
|
||||||
// Clear the forward bit. We can just do this directly, since
|
// Clear the forward bit. We can just do this directly, since
|
||||||
|
|||||||
Reference in New Issue
Block a user