Skip to content

Commit

Permalink
Add support for profile raw entities URI.
Browse files Browse the repository at this point in the history
Bug 5274218

Change-Id: Ic5b0b5ace48dfaea81190b8262c622179f20f617
  • Loading branch information
Dave Santoro committed Sep 8, 2011
1 parent 13291f1 commit 3202ae2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/android/providers/contacts/ContactsProvider2.java
Expand Up @@ -342,6 +342,7 @@ public class ContactsProvider2 extends SQLiteContentProvider implements OnAccoun
private static final int PROFILE_RAW_CONTACTS_ID_DATA = 19007;
private static final int PROFILE_RAW_CONTACTS_ID_ENTITIES = 19008;
private static final int PROFILE_STATUS_UPDATES = 19009;
private static final int PROFILE_RAW_CONTACT_ENTITIES = 19010;

private static final int DATA_USAGE_FEEDBACK_ID = 20001;

Expand Down Expand Up @@ -1174,6 +1175,8 @@ interface RawContactsQuery {
PROFILE_RAW_CONTACTS_ID_ENTITIES);
matcher.addURI(ContactsContract.AUTHORITY, "profile/status_updates",
PROFILE_STATUS_UPDATES);
matcher.addURI(ContactsContract.AUTHORITY, "profile/raw_contact_entities",
PROFILE_RAW_CONTACT_ENTITIES);

matcher.addURI(ContactsContract.AUTHORITY, "stream_items", STREAM_ITEMS);
matcher.addURI(ContactsContract.AUTHORITY, "stream_items/photo", STREAM_ITEMS_PHOTOS);
Expand Down Expand Up @@ -5707,7 +5710,8 @@ protected Cursor queryLocal(Uri uri, String[] projection, String selection,
selectionArgs = insertSelectionArg(selectionArgs, uri.getLastPathSegment());
break;

case RAW_CONTACT_ENTITIES: {
case RAW_CONTACT_ENTITIES:
case PROFILE_RAW_CONTACT_ENTITIES: {
setTablesAndProjectionMapForRawEntities(qb, uri);
break;
}
Expand Down

0 comments on commit 3202ae2

Please sign in to comment.