diff options
| author | Gilles Debunne <debunne@google.com> | 2012-02-22 12:01:40 -0800 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2012-02-22 12:01:42 -0800 |
| commit | 322044abe4affc29999398663007c57f664bc4fa (patch) | |
| tree | 1b4b6b78d57b8475c607c3626f40c7bde362366e /core/java/android/widget/TextView.java | |
| parent | e97df97b6cb5e4bff8f9da9ecff7cddb7d04ff41 (diff) | |
| download | frameworks_base-322044abe4affc29999398663007c57f664bc4fa.zip frameworks_base-322044abe4affc29999398663007c57f664bc4fa.tar.gz frameworks_base-322044abe4affc29999398663007c57f664bc4fa.tar.bz2 | |
Added bottom padding in textview's focused rectangle
Bug 6017386
Focused rect in used in ViewRoot when a new view takes focus.
TextView bringPointIntoView defines an other rectangle as text is typed.
Make sure the latter is included in the former to avoid the jump when one
starts typing text.
Change-Id: I0177adc046c77a5fd9c1423c0069d5b9798dc0b9
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 1241c0f..dff2fec 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -5144,6 +5144,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener paddingTop += getVerticalOffset(false); } r.offset(paddingLeft, paddingTop); + int paddingBottom = getExtendedPaddingBottom(); + r.bottom += paddingBottom; } /** |
