summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/ExtractEditText.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/inputmethodservice/ExtractEditText.java')
-rw-r--r--core/java/android/inputmethodservice/ExtractEditText.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/inputmethodservice/ExtractEditText.java b/core/java/android/inputmethodservice/ExtractEditText.java
index 8bc28760e745..24596c33c09b 100644
--- a/core/java/android/inputmethodservice/ExtractEditText.java
+++ b/core/java/android/inputmethodservice/ExtractEditText.java
@@ -105,8 +105,8 @@ public class ExtractEditText extends EditText {
@Override public boolean onTextContextMenuItem(int id) {
if (mIME != null && mIME.onExtractTextContextMenuItem(id)) {
// Mode was started on Extracted, needs to be stopped here.
- // Cut and paste will change the text, which stops selection mode.
- if (id == android.R.id.copy) stopTextActionMode();
+ // Cut will change the text, which stops selection mode.
+ if (id == android.R.id.copy || id == android.R.id.paste) stopTextActionMode();
return true;
}
return super.onTextContextMenuItem(id);