summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Lin <linkevin@google.com>2014-12-02 23:47:45 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-02 23:47:45 +0000
commit2633ca91b7e5bcec29b2aaf80afa28451770aede (patch)
tree8f3ab6914611af4f1a842cc8328667a6fdec4516
parentf70087885a356a91c2bad17d8ed8402485767f90 (diff)
parent494bec8daac55c76707e140c71fb8783fb3a9323 (diff)
downloadandroid_frameworks_opt_chips-2633ca91b7e5bcec29b2aaf80afa28451770aede.tar.gz
android_frameworks_opt_chips-2633ca91b7e5bcec29b2aaf80afa28451770aede.tar.bz2
android_frameworks_opt_chips-2633ca91b7e5bcec29b2aaf80afa28451770aede.zip
am 494bec8d: Override setDropDownAnchor in RecipientEditTextView to update its cached anchor view if clients use setDropDownAnchor instead of declaring the anchor in the xml file.
* commit '494bec8daac55c76707e140c71fb8783fb3a9323': Override setDropDownAnchor in RecipientEditTextView to update its cached anchor view if clients use setDropDownAnchor instead of declaring the anchor in the xml file.
-rw-r--r--src/com/android/ex/chips/RecipientEditTextView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index f470264..c6bf29b 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -365,6 +365,14 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
}
@Override
+ public void setDropDownAnchor(int anchorId) {
+ super.setDropDownAnchor(anchorId);
+ if (anchorId != View.NO_ID) {
+ mDropdownAnchor = getRootView().findViewById(anchorId);
+ }
+ }
+
+ @Override
public boolean onEditorAction(TextView view, int action, KeyEvent keyEvent) {
if (action == EditorInfo.IME_ACTION_DONE) {
if (commitDefault()) {