diff options
author | Scott Kennedy <skennedy@google.com> | 2013-11-21 14:31:33 -0800 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2014-02-05 21:33:37 -0800 |
commit | ae07c2be104a1f95426b697f3074bea72bc140e1 (patch) | |
tree | 0c86989672f1a2876f8a6a6ca41d6e0e179bb1b7 /chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java | |
parent | 95fedd51882128dea2152c3d1c7ff194f8e557bf (diff) | |
download | android_frameworks_ex-ae07c2be104a1f95426b697f3074bea72bc140e1.tar.gz android_frameworks_ex-ae07c2be104a1f95426b697f3074bea72bc140e1.tar.bz2 android_frameworks_ex-ae07c2be104a1f95426b697f3074bea72bc140e1.zip |
Fix directory lookups
The previous "fix" disabled the lookups.
Now we will do the lookups, with the proper lookup key and
directory id. We also do a much better job of showing directory
images.
Bug: 11693322
Bug: 12793279
Change-Id: I372711fd7b485f3183516fce2b11f9eff46a9b23
Diffstat (limited to 'chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java')
-rw-r--r-- | chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java b/chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java index ac8e897..533f53f 100644 --- a/chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java +++ b/chips/src/com/android/ex/chips/recipientchip/SimpleRecipientChip.java @@ -27,6 +27,10 @@ class SimpleRecipientChip implements BaseRecipientChip { private final long mContactId; + private final Long mDirectoryId; + + private final String mLookupKey; + private final long mDataId; private final RecipientEntry mEntry; @@ -39,6 +43,8 @@ class SimpleRecipientChip implements BaseRecipientChip { mDisplay = entry.getDisplayName(); mValue = entry.getDestination().trim(); mContactId = entry.getContactId(); + mDirectoryId = entry.getDirectoryId(); + mLookupKey = entry.getLookupKey(); mDataId = entry.getDataId(); mEntry = entry; } @@ -69,6 +75,16 @@ class SimpleRecipientChip implements BaseRecipientChip { } @Override + public Long getDirectoryId() { + return mDirectoryId; + } + + @Override + public String getLookupKey() { + return mLookupKey; + } + + @Override public long getDataId() { return mDataId; } @@ -93,11 +109,6 @@ class SimpleRecipientChip implements BaseRecipientChip { } @Override - public boolean isGalContact() { - return mEntry.isGalContact(); - } - - @Override public String toString() { return mDisplay + " <" + mValue + ">"; } |