summaryrefslogtreecommitdiffstats
path: root/core/java/android/inputmethodservice/ExtractEditText.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2011-07-12 16:36:33 -0700
committerGilles Debunne <debunne@google.com>2011-07-12 16:36:33 -0700
commit459ac63adae54bafff2391f1f60c607f5deece4a (patch)
tree0e4602ab896b2a8502615ce81d0553a720fa8720 /core/java/android/inputmethodservice/ExtractEditText.java
parent8c55a9a57e4f13ec420c3de7b3abfdcf454f6633 (diff)
downloadframeworks_base-459ac63adae54bafff2391f1f60c607f5deece4a.zip
frameworks_base-459ac63adae54bafff2391f1f60c607f5deece4a.tar.gz
frameworks_base-459ac63adae54bafff2391f1f60c607f5deece4a.tar.bz2
Bug 5014726: Paste works in ExtractedText
Change-Id: I3eb72001662cf9df0a94377f98ba22b19c490fa4
Diffstat (limited to 'core/java/android/inputmethodservice/ExtractEditText.java')
-rw-r--r--core/java/android/inputmethodservice/ExtractEditText.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/java/android/inputmethodservice/ExtractEditText.java b/core/java/android/inputmethodservice/ExtractEditText.java
index 3447e76..44e7e52 100644
--- a/core/java/android/inputmethodservice/ExtractEditText.java
+++ b/core/java/android/inputmethodservice/ExtractEditText.java
@@ -98,11 +98,8 @@ public class ExtractEditText extends EditText {
}
@Override public boolean onTextContextMenuItem(int id) {
- // Horrible hack: select word option has to be handled by original view to work.
- if (mIME != null && id != android.R.id.startSelectingText) {
- if (mIME.onExtractTextContextMenuItem(id)) {
- return true;
- }
+ if (mIME != null && mIME.onExtractTextContextMenuItem(id)) {
+ return true;
}
return super.onTextContextMenuItem(id);
}