diff options
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 + ">"; } |