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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user