diff options
author | Mindy Pereira <mindyp@google.com> | 2012-06-25 08:25:52 -0700 |
---|---|---|
committer | Mindy Pereira <mindyp@google.com> | 2012-06-25 08:25:52 -0700 |
commit | ba14c7b002c0ef9357bcaea64b5c5255183b1b52 (patch) | |
tree | 4ad805e335caadba6f4c2af7f1db94d4a89d9020 /chips/src/com/android | |
parent | 87a5af3ed31a18c66aa62154e66e3d841dc02a27 (diff) | |
download | android_frameworks_ex-ba14c7b002c0ef9357bcaea64b5c5255183b1b52.tar.gz android_frameworks_ex-ba14c7b002c0ef9357bcaea64b5c5255183b1b52.tar.bz2 android_frameworks_ex-ba14c7b002c0ef9357bcaea64b5c5255183b1b52.zip |
Don't scroll when we are clearing text.
Only scroll when the user adds text.
Fixes b/6696682 Compose email field is out of view after changing from Reply to Reply all for a message
Change-Id: I188f9be0b4993edab282256d647501b6734242f7
Diffstat (limited to 'chips/src/com/android')
-rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index bdc1a58..e1f4b37 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -2136,7 +2136,8 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements editable.delete(tokenStart, tokenEnd); getSpannable().removeSpan(repl[0]); } - } else { + } else if (count > before) { + // Only scroll when the user is adding text, not clearing text. scrollBottomIntoView(); } } |