summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Bullock <gregbullock@google.com>2016-06-28 17:28:37 +0200
committerGreg Bullock <gregbullock@google.com>2016-06-28 18:14:49 +0200
commit087b818dae4783d7757c0bac151d60acb7692e4f (patch)
treefffcfa880c1a16cabcdcd55240a2e5cca01d9391
parent1a68eb2ed0497378aa39080e3ba54ddf5eff7214 (diff)
downloadchips-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.java2
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());