diff options
author | Romain Guy <romainguy@android.com> | 2010-05-19 00:01:55 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-05-19 00:01:55 -0700 |
commit | 7a029da6d607e0a96ac93e81edefb1d0d86039bf (patch) | |
tree | 999e7aada21a9a8cd778c6b48010ca9e5a04bb8b /core | |
parent | 2b9a49a30d2ce1176cbd90741897705bec32d0bd (diff) | |
parent | 970a138c9730b3763171d7dc297a6372388b569f (diff) | |
download | frameworks_base-7a029da6d607e0a96ac93e81edefb1d0d86039bf.zip frameworks_base-7a029da6d607e0a96ac93e81edefb1d0d86039bf.tar.gz frameworks_base-7a029da6d607e0a96ac93e81edefb1d0d86039bf.tar.bz2 |
Merge "Text disappears when selecting text in text editor."
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/TextView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 6418dad..ed2fc6b 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -4549,6 +4549,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener outText.text = TextUtils.substring(content, partialStartOffset, partialEndOffset); } + } else { + outText.partialStartOffset = 0; + outText.partialEndOffset = 0; + outText.text = ""; } outText.flags = 0; if (MetaKeyKeyListener.getMetaState(mText, MetaKeyKeyListener.META_SELECTING) != 0) { |