diff options
Diffstat (limited to 'src/com/android/providers')
-rw-r--r-- | src/com/android/providers/contacts/ContactsDatabaseHelper.java | 1 | ||||
-rw-r--r-- | src/com/android/providers/contacts/ContactsProvider2.java | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/ContactsDatabaseHelper.java b/src/com/android/providers/contacts/ContactsDatabaseHelper.java index f7847dd..4fefb79 100644 --- a/src/com/android/providers/contacts/ContactsDatabaseHelper.java +++ b/src/com/android/providers/contacts/ContactsDatabaseHelper.java @@ -2241,6 +2241,7 @@ import java.util.Locale; } if (upgradeSearchIndex) { + createSearchIndexTable(db); setProperty(db, SearchIndexManager.PROPERTY_SEARCH_INDEX_VERSION, "0"); } diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java index 3999431..0bbedb7 100644 --- a/src/com/android/providers/contacts/ContactsProvider2.java +++ b/src/com/android/providers/contacts/ContactsProvider2.java @@ -6965,6 +6965,16 @@ public class ContactsProvider2 extends SQLiteContentProvider implements OnAccoun return Directory.CONTENT_TYPE; case DIRECTORIES_ID: return Directory.CONTENT_ITEM_TYPE; + case STREAM_ITEMS: + return StreamItems.CONTENT_TYPE; + case STREAM_ITEMS_ID: + return StreamItems.CONTENT_ITEM_TYPE; + case STREAM_ITEMS_ID_PHOTOS: + return StreamItems.StreamItemPhotos.CONTENT_TYPE; + case STREAM_ITEMS_ID_PHOTOS_ID: + return StreamItems.StreamItemPhotos.CONTENT_ITEM_TYPE; + case STREAM_ITEMS_PHOTOS: + throw new UnsupportedOperationException("Not supported for write-only URI " + uri); default: return mLegacyApiSupport.getType(uri); } |