summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Bullock <gregbullock@google.com>2016-06-28 16:39:39 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-28 16:39:39 +0000
commit90d7bf1b71f1d463bb7082c646865cff732c0687 (patch)
tree8c4d08348fb2b78a644cb0db8f56f1f99c9b18c3
parent84dcfd8d3313779adc8a2b4f8e69de1f6a91d683 (diff)
parent087b818dae4783d7757c0bac151d60acb7692e4f (diff)
downloadchips-90d7bf1b71f1d463bb7082c646865cff732c0687.tar.gz
Use getLocationOnScreen to position auto-complete dropdown.
am: 087b818dae Change-Id: I64959013f692acd76f4d9c406afe1f3ab24df09c
-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 f7c6781..da9ef27 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -610,7 +610,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());