diff options
| author | Alan Viverette <alanv@google.com> | 2016-04-27 16:31:33 -0400 |
|---|---|---|
| committer | Alan Viverette <alanv@google.com> | 2016-04-27 16:31:33 -0400 |
| commit | fea4013499aaa96dd0e2579988e2b2236dcd4025 (patch) | |
| tree | 18f52f90cd5435b296fbc36b7765110e4e57abaa /core/java | |
| parent | 9594487548d42ea13569bd15369382f7283c8d33 (diff) | |
Always account for divider height when calculating list height
List items are always positioned using the divider height, even if there
is no divider drawable, so we should account for that when calculating
list height.
Bug: 28402970
Change-Id: I14b8d3b04a369749ff4b7e6f1e6e003ac08f6b7f
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/ListView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java index bfc87f297d42..bb1ffcb2d5c6 100644 --- a/core/java/android/widget/ListView.java +++ b/core/java/android/widget/ListView.java @@ -1308,7 +1308,7 @@ public class ListView extends AbsListView { // Include the padding of the list int returnedHeight = mListPadding.top + mListPadding.bottom; - final int dividerHeight = ((mDividerHeight > 0) && mDivider != null) ? mDividerHeight : 0; + final int dividerHeight = mDividerHeight; // The previous height value that was less than maxHeight and contained // no partial children int prevHeightWithoutPartialChild = 0; |
