diff options
author | Greg Bullock <gregbullock@google.com> | 2016-06-28 17:28:37 +0200 |
---|---|---|
committer | Greg Bullock <gregbullock@google.com> | 2016-06-28 18:14:49 +0200 |
commit | 087b818dae4783d7757c0bac151d60acb7692e4f (patch) | |
tree | fffcfa880c1a16cabcdcd55240a2e5cca01d9391 | |
parent | 1a68eb2ed0497378aa39080e3ba54ddf5eff7214 (diff) | |
download | chips-087b818dae4783d7757c0bac151d60acb7692e4f.tar.gz |
Use getLocationOnScreen to position auto-complete dropdown.
On Android N, the dropdown position should be computed relative to
the window and not just the activity because in split-screen mode,
the compose activity may be in the bottom pane.
BUG=29610161
Change-Id: I98c2b3ab32e92cdfcd44d4d2c175573aee77cad4
-rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 2d6c042..0099ff1 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -611,7 +611,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements } else { // Set the dropdown height to be the remaining height from the anchor to the // bottom. - mDropdownAnchor.getLocationInWindow(mCoords); + mDropdownAnchor.getLocationOnScreen(mCoords); getWindowVisibleDisplayFrame(mRect); setDropDownHeight(mRect.bottom - mCoords[1] - mDropdownAnchor.getHeight() - getDropDownVerticalOffset()); |