Merge "Clear IMM references when window dismissed." into jb-dev
This commit is contained in:
@@ -340,6 +340,14 @@ public class WindowManagerImpl implements WindowManager {
|
||||
View curView = root.getView();
|
||||
|
||||
root.mAddNesting = 0;
|
||||
|
||||
if (view != null) {
|
||||
InputMethodManager imm = InputMethodManager.getInstance(view.getContext());
|
||||
if (imm != null) {
|
||||
imm.windowDismissed(mViews[index].getWindowToken());
|
||||
}
|
||||
}
|
||||
|
||||
root.die(true);
|
||||
finishRemoveViewLocked(curView, index);
|
||||
if (curView == view) {
|
||||
|
||||
@@ -672,6 +672,7 @@ public final class InputMethodManager {
|
||||
* Disconnect any existing input connection, clearing the served view.
|
||||
*/
|
||||
void finishInputLocked() {
|
||||
mCurRootView = null;
|
||||
mNextServedView = null;
|
||||
if (mServedView != null) {
|
||||
if (DEBUG) Log.v(TAG, "FINISH INPUT: " + mServedView);
|
||||
|
||||
Reference in New Issue
Block a user