Ensure batch edit mode is ended on window focus loss

This is a translation of this open source contribution:
https://android-review.googlesource.com/38503

Change-Id: I4d3adf89d0752e6fd5ec2cdad3a54d4e764a1fe7
This commit is contained in:
Gilles Debunne
2012-06-26 14:47:07 -07:00
parent ef472603c8
commit c72fba82a6

View File

@@ -978,8 +978,8 @@ public class Editor {
mSuggestionsPopupWindow.onParentLostFocus();
}
// Don't leave us in the middle of a batch edit.
mTextView.onEndBatchEdit();
// Don't leave us in the middle of a batch edit. Same as in onFocusChanged
ensureEndedBatchEdit();
}
}