File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,14 @@ public void removeViewImmediate(View view) {
340340 View curView = root .getView ();
341341
342342 root .mAddNesting = 0 ;
343+
344+ if (view != null ) {
345+ InputMethodManager imm = InputMethodManager .getInstance (view .getContext ());
346+ if (imm != null ) {
347+ imm .windowDismissed (mViews [index ].getWindowToken ());
348+ }
349+ }
350+
343351 root .die (true );
344352 finishRemoveViewLocked (curView , index );
345353 if (curView == view ) {
Original file line number Diff line number Diff line change @@ -672,6 +672,7 @@ void clearConnectionLocked() {
672672 * Disconnect any existing input connection, clearing the served view.
673673 */
674674 void finishInputLocked () {
675+ mCurRootView = null ;
675676 mNextServedView = null ;
676677 if (mServedView != null ) {
677678 if (DEBUG ) Log .v (TAG , "FINISH INPUT: " + mServedView );
You can’t perform that action at this time.
0 commit comments