summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdnan <adnan@cyngn.com>2015-02-18 14:26:12 -0800
committerAdnan <adnan@cyngn.com>2015-02-18 14:26:12 -0800
commitad47f2397d206982c98324b20664294d5fc93c61 (patch)
treeb73f016cce2c7a416bb99d49dd4df0774a2eff89
parent418ac5ee222c2734af677d92cf318f2b033fd7bd (diff)
downloadandroid_frameworks_ex-cm-11.0.tar.gz
android_frameworks_ex-cm-11.0.tar.bz2
android_frameworks_ex-cm-11.0.zip
chips: Only dereference a selected chip if user wasn't still editing.stable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Scm-11.0
Change-Id: I748a984a76ec553c5de28c278074358d99336f52
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 0a1cdff..59e4566 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -2085,7 +2085,6 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
int start = getChipStart(chip);
int end = getChipEnd(chip);
Editable editable = getText();
- mSelectedChip = null;
if (start == -1 || end == -1) {
Log.w(TAG, "The chip doesn't exist or may be a chip a user was editing");
setSelection(editable.length());
@@ -2102,6 +2101,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
} catch (NullPointerException e) {
Log.e(TAG, e.getMessage(), e);
}
+ mSelectedChip = null;
}
setCursorVisible(true);
setSelection(editable.length());