diff options
author | Christine Chen <christinech@google.com> | 2013-09-23 18:05:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-23 18:05:13 +0000 |
commit | 7971d44b516c6e8b548acab1c2b598d69bf613ea (patch) | |
tree | 688af4063386a6bdc9bdb6f3a29a8690851df674 /src | |
parent | 0b8fc4af478f997bfc8bcaa785c9529ad8b797c7 (diff) | |
parent | 7c1a3efb470d5dcd978f5a1b494687bedc29fa10 (diff) | |
download | packages_apps_ContactsCommon-7971d44b516c6e8b548acab1c2b598d69bf613ea.tar.gz packages_apps_ContactsCommon-7971d44b516c6e8b548acab1c2b598d69bf613ea.tar.bz2 packages_apps_ContactsCommon-7971d44b516c6e8b548acab1c2b598d69bf613ea.zip |
Merge "Adds starred field to ContactEntry" into klp-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/contacts/common/list/ContactEntry.java | 1 | ||||
-rw-r--r-- | src/com/android/contacts/common/list/ContactTileAdapter.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/list/ContactEntry.java b/src/com/android/contacts/common/list/ContactEntry.java index bd673fce..9331aed7 100644 --- a/src/com/android/contacts/common/list/ContactEntry.java +++ b/src/com/android/contacts/common/list/ContactEntry.java @@ -33,6 +33,7 @@ public class ContactEntry { public Drawable presenceIcon; public long id; public int pinned = PinnedPositions.UNPINNED; + public boolean isFavorite = false; public static final ContactEntry BLANK_ENTRY = new ContactEntry(); }
\ No newline at end of file diff --git a/src/com/android/contacts/common/list/ContactTileAdapter.java b/src/com/android/contacts/common/list/ContactTileAdapter.java index b3c35fd2..66467a32 100644 --- a/src/com/android/contacts/common/list/ContactTileAdapter.java +++ b/src/com/android/contacts/common/list/ContactTileAdapter.java @@ -258,6 +258,7 @@ public class ContactTileAdapter extends BaseAdapter { contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); contact.lookupKey = ContentUris.withAppendedId( Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id); + contact.isFavorite = cursor.getInt(mStarredIndex) > 0; // Set phone number and label if (mDisplayType == DisplayType.STREQUENT_PHONE_ONLY) { |