diff options
| author | Hans Boehm <hboehm@google.com> | 2019-03-07 13:08:15 -0800 |
|---|---|---|
| committer | Hans Boehm <hboehm@google.com> | 2019-03-20 17:18:18 -0700 |
| commit | fd7a3cf9ced2c08eb6ef083cf265a522c46ef4b8 (patch) | |
| tree | d4b76b840c07fa1e70d16fff4bc14a8cddb30aa5 /core/java/android/widget/TextView.java | |
| parent | 8ced10ec234e5aa3379d6f0e06857e3cccaf2e0b (diff) | |
Clarify hasSelection description
It's unintuitive that hasSelection() can return false, while
getSelectionStart() and getSelectionEnd() return meaningful non -1
values.
Test: TreeHugger
Change-Id: Iea2157f4b3b2c13c74547ba31eb4131496f939cc
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 8a199275b123..080c0d23f426 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -9420,7 +9420,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } /** - * Return true iff there is a selection inside this text view. + * Return true iff there is a selection of nonzero length inside this text view. */ public boolean hasSelection() { final int selectionStart = getSelectionStart(); |
