OSDN Git Service

PopupWindow: Don't ignore top decorations in getMaxAvailableHeight.
authorRobert Carr <racarr@google.com>
Wed, 7 Sep 2016 02:07:39 +0000 (19:07 -0700)
committerRobert Carr <racarr@google.com>
Fri, 9 Sep 2016 19:00:19 +0000 (12:00 -0700)
commit701d73084d13e3fac62a3ede9c6298abed58f66a
tree1f9c4a80ecc0426de913bf1f37dc3b4ab382237a
parent735b9eca0f52fd27646ac7187bcebc56273bb771
PopupWindow: Don't ignore top decorations in getMaxAvailableHeight.

getMaxAvailableHeight is ignoring the top insets, while
findDropDownPosition is not. This is causing getMaxAvailableHeight
to return a fits above position that findDropDownPosition will think
is too large.

Bug: 31048766
Change-Id: Ifa57cb4ebe0944c701a6f38b58d4f144d8b9199c
core/java/android/widget/PopupWindow.java