File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
core/java/android/view/inputmethod Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,9 @@ public void handleMessage(Message msg) {
405405 }
406406 // Check focus again in case that "onWindowFocus" is called before
407407 // handling this message.
408- checkFocus (mHasBeenInactive );
408+ if (mServedView != null && mServedView .hasWindowFocus ()) {
409+ checkFocus (mHasBeenInactive );
410+ }
409411 }
410412 }
411413 return ;
@@ -1202,7 +1204,9 @@ private boolean checkFocusNoStartInput(boolean forceNewFocus) {
12021204 }
12031205 if (DEBUG ) Log .v (TAG , "checkFocus: view=" + mServedView
12041206 + " next=" + mNextServedView
1205- + " forceNewFocus=" + forceNewFocus );
1207+ + " forceNewFocus=" + forceNewFocus
1208+ + " package="
1209+ + (mServedView != null ? mServedView .getContext ().getPackageName () : "<none>" ));
12061210
12071211 if (mNextServedView == null ) {
12081212 finishInputLocked ();
You can’t perform that action at this time.
0 commit comments