diff options
author | Danesh M <daneshm90@gmail.com> | 2015-07-24 10:54:38 -0700 |
---|---|---|
committer | Brint E. Kriebel <bekit@cyngn.com> | 2015-07-24 11:55:04 -0700 |
commit | c422ac4ae29375b9688b16cc1c28fe057c1f6ce1 (patch) | |
tree | 9fd03fa08ddafe1671e223e1d66d8375321f884f | |
parent | fb208f513b81d091eba5a6d3c2959269a704eeb5 (diff) | |
download | android_packages_apps_ContactsCommon-c422ac4ae29375b9688b16cc1c28fe057c1f6ce1.tar.gz android_packages_apps_ContactsCommon-c422ac4ae29375b9688b16cc1c28fe057c1f6ce1.tar.bz2 android_packages_apps_ContactsCommon-c422ac4ae29375b9688b16cc1c28fe057c1f6ce1.zip |
ContactsCommon : Add createStarredPhoneOnlyLoader
Change-Id: I6cdd51f5557ca435d189142fe4ee10b27035e963
(cherry picked from commit 456de50112400276bcb19deea4636fdb2338fbfb)
Ticket: DIALER-608
-rw-r--r-- | src/com/android/contacts/common/ContactTileLoaderFactory.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/ContactTileLoaderFactory.java b/src/com/android/contacts/common/ContactTileLoaderFactory.java index ee9a2bf1..6c1f0280 100644 --- a/src/com/android/contacts/common/ContactTileLoaderFactory.java +++ b/src/com/android/contacts/common/ContactTileLoaderFactory.java @@ -111,6 +111,12 @@ public final class ContactTileLoaderFactory { return new CursorLoader(context, builder.build(), COLUMNS_PHONE_ONLY, null, null, null); } + public static CursorLoader createStarredPhoneOnlyLoader(Context context) { + return new CursorLoader(context, Contacts.CONTENT_URI, COLUMNS, + Contacts.STARRED + "=? AND " + Contacts.HAS_PHONE_NUMBER + "=?", + new String[]{"1", "1"}, STARRED_ORDER); + } + public static CursorLoader createStarredLoader(Context context) { return new CursorLoader(context, Contacts.CONTENT_URI, COLUMNS, Contacts.STARRED + "=?", new String[]{"1"}, STARRED_ORDER); |