summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlice Yang <alice@google.com>2013-03-04 19:54:00 -0800
committerAlice Yang <alice@google.com>2013-03-04 19:54:00 -0800
commit8ede04dbd5c09fa6a350e7af2aa49a0bde71725b (patch)
tree23338620916945352f65dfd8d8c61b1ae6ca4cec
parent2416ccd3f57e9eaf7ddda487b29964437514e389 (diff)
parentc4d46df70d525cb2289bd76fb0b0b12637dbbe23 (diff)
downloadandroid_frameworks_ex-8ede04dbd5c09fa6a350e7af2aa49a0bde71725b.tar.gz
android_frameworks_ex-8ede04dbd5c09fa6a350e7af2aa49a0bde71725b.tar.bz2
android_frameworks_ex-8ede04dbd5c09fa6a350e7af2aa49a0bde71725b.zip
resolved conflicts for merge of c4d46df7 to jb-mr2-dev
Change-Id: I8d4c64832f989c70ef432730ab584e3dc71ad004
-rw-r--r--chips/src/com/android/ex/chips/RecipientEditTextView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java
index 8fe6dbf..8b8b2d3 100644
--- a/chips/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java
@@ -2281,7 +2281,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
}
}
- public boolean lastCharacterIsCommitCharacter(CharSequence s) {
+ public boolean lastCharacterIsCommitCharacter(CharSequence s) {
char last;
int end = getSelectionEnd() == 0 ? 0 : getSelectionEnd() - 1;
int len = length() - 1;
@@ -2488,8 +2488,8 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements
new ArrayList<RecipientChip>();
for (final RecipientChip temp : recipients) {
RecipientEntry entry = null;
- if (RecipientEntry.isCreatedRecipient(temp.getEntry()
- .getContactId())
+ if (temp != null && RecipientEntry.isCreatedRecipient(
+ temp.getEntry().getContactId())
&& getSpannable().getSpanStart(temp) != -1) {
// Replace this.
entry = createValidatedEntry(