diff options
author | Yorke Lee <yorkelee@google.com> | 2014-08-08 15:56:17 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-08-08 15:56:17 -0700 |
commit | fe1156f671fadb4dc2302634793f5fbf18423ce7 (patch) | |
tree | 6ae4c162db17dacce5f72eb7b96a0687f091ab84 /src | |
parent | 9701936fadaf55ef773dd07015b35f99fd5f8a91 (diff) | |
download | packages_providers_ContactsProvider-fe1156f671fadb4dc2302634793f5fbf18423ce7.zip packages_providers_ContactsProvider-fe1156f671fadb4dc2302634793f5fbf18423ce7.tar.gz packages_providers_ContactsProvider-fe1156f671fadb4dc2302634793f5fbf18423ce7.tar.bz2 |
Add authority for ProfileProvider to fix CP2 NPE at startup
Bug: 16901202
Change-Id: Id47e979a8509fd5b9436970e5150e320390c7bd5
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/contacts/ContactsProvider2.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java index 948fd9a..049df45 100644 --- a/src/com/android/providers/contacts/ContactsProvider2.java +++ b/src/com/android/providers/contacts/ContactsProvider2.java @@ -1496,6 +1496,7 @@ public class ContactsProvider2 extends AbstractContactsProvider ProviderInfo profileInfo = new ProviderInfo(); profileInfo.readPermission = "android.permission.READ_PROFILE"; profileInfo.writePermission = "android.permission.WRITE_PROFILE"; + profileInfo.authority = ContactsContract.AUTHORITY; mProfileProvider.attachInfo(getContext(), profileInfo); mProfileHelper = mProfileProvider.getDatabaseHelper(getContext()); |