From c72fba82a68992fe5bec05e4415ae98deaa66ea3 Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Tue, 26 Jun 2012 14:47:07 -0700 Subject: [PATCH] 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 --- core/java/android/widget/Editor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index c29dd585ba1b6..19bd04a45e420 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -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(); } }