summaryrefslogtreecommitdiffstats
path: root/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
diff options
context:
space:
mode:
authormindyp <mindyp@google.com>2012-11-14 11:59:27 -0800
committermindyp <mindyp@google.com>2012-11-14 12:04:03 -0800
commitfbe2d2113c0d00e7f7c7197a3727bb0728d220d8 (patch)
tree40e8d832c1438bd7e726f724903d1d0d6ef7638d /chips/src/com/android/ex/chips/BaseRecipientAdapter.java
parent99ea997e237f6941bed7bdfbc221ad78643650c5 (diff)
downloadandroid_frameworks_ex-fbe2d2113c0d00e7f7c7197a3727bb0728d220d8.tar.gz
android_frameworks_ex-fbe2d2113c0d00e7f7c7197a3727bb0728d220d8.tar.bz2
android_frameworks_ex-fbe2d2113c0d00e7f7c7197a3727bb0728d220d8.zip
Don't validate the recipient text each time
Instead, validate once. Saves ~10ms per chip creation Win. Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts and general speed improvements Change-Id: I6f3da136da23942c8bec25cee7038d475e7005e6
Diffstat (limited to 'chips/src/com/android/ex/chips/BaseRecipientAdapter.java')
-rw-r--r--chips/src/com/android/ex/chips/BaseRecipientAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
index c0cfa19..53f3625 100644
--- a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
+++ b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
@@ -646,7 +646,7 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter
entry.displayName,
entry.displayNameSource,
entry.destination, entry.destinationType, entry.destinationLabel,
- entry.contactId, entry.dataId, entry.thumbnailUriString));
+ entry.contactId, entry.dataId, entry.thumbnailUriString, true));
} else if (entryMap.containsKey(entry.contactId)) {
// We already have a section for the person.
final List<RecipientEntry> entryList = entryMap.get(entry.contactId);
@@ -654,14 +654,14 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter
entry.displayName,
entry.displayNameSource,
entry.destination, entry.destinationType, entry.destinationLabel,
- entry.contactId, entry.dataId, entry.thumbnailUriString));
+ entry.contactId, entry.dataId, entry.thumbnailUriString, true));
} else {
final List<RecipientEntry> entryList = new ArrayList<RecipientEntry>();
entryList.add(RecipientEntry.constructTopLevelEntry(
entry.displayName,
entry.displayNameSource,
entry.destination, entry.destinationType, entry.destinationLabel,
- entry.contactId, entry.dataId, entry.thumbnailUriString));
+ entry.contactId, entry.dataId, entry.thumbnailUriString, true));
entryMap.put(entry.contactId, entryList);
}
}