summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMindy Pereira <mindyp@google.com>2011-08-17 10:37:59 -0700
committerThe Android Automerger <android-build@android.com>2011-08-17 13:47:02 -0700
commit5eafe7264c78ce298cba9e12896382a22c714f7e (patch)
treef9bd3a42bd533d33b80021bbbf06cbb8bbd4b0a2
parent6939128594ecad8b2bf5fc4a29a42abe67f3b226 (diff)
downloadandroid_frameworks_ex-5eafe7264c78ce298cba9e12896382a22c714f7e.tar.gz
android_frameworks_ex-5eafe7264c78ce298cba9e12896382a22c714f7e.tar.bz2
android_frameworks_ex-5eafe7264c78ce298cba9e12896382a22c714f7e.zip
Fix focus issues for chips fields.
Since its the validation part we don't want, just override that part. Let the calls that handle focus go through as planned otherwise. fixes b/5177339 Compose screen broken in Gmail Change-Id: If00069e975449bc338ad52356c44124664f1b909
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index feb5a07..e273456 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -284,15 +284,20 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
@Override
public void onFocusChanged(boolean hasFocus, int direction, Rect previous) {
+ super.onFocusChanged(hasFocus, direction, previous);
if (!hasFocus) {
shrink();
- dismissDropDown();
} else {
expand();
scrollLineIntoView(getLineCount());
}
}
+ @Override
+ public void performValidation() {
+ // Do nothing. Chips handles its own validation.
+ }
+
private void shrink() {
if (mSelectedChip != null) {
clearSelectedChip();