diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-05-19 08:39:13 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2010-05-19 08:39:13 -0700 |
commit | faf9a78363b0c773b95c9b43263d788aee313054 (patch) | |
tree | bc8d9ef8493a1aa8968c14e5b1d70f8ed444db54 | |
parent | d6c0bb0f0f3827f1c336db20ac9dc0eb90cd46fa (diff) | |
parent | 7a029da6d607e0a96ac93e81edefb1d0d86039bf (diff) | |
download | frameworks_base-faf9a78363b0c773b95c9b43263d788aee313054.zip frameworks_base-faf9a78363b0c773b95c9b43263d788aee313054.tar.gz frameworks_base-faf9a78363b0c773b95c9b43263d788aee313054.tar.bz2 |
merge from open-source master
Change-Id: I970684d917ea2024871b45abe532c52bb45673c6
-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 64c9c99..950012c 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -4547,6 +4547,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) { |