diff options
Diffstat (limited to 'TestCommon/src/com/android/contacts')
-rw-r--r-- | TestCommon/src/com/android/contacts/common/test/mocks/ContactsMockContext.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TestCommon/src/com/android/contacts/common/test/mocks/ContactsMockContext.java b/TestCommon/src/com/android/contacts/common/test/mocks/ContactsMockContext.java index 681e7f94..ebce6a0b 100644 --- a/TestCommon/src/com/android/contacts/common/test/mocks/ContactsMockContext.java +++ b/TestCommon/src/com/android/contacts/common/test/mocks/ContactsMockContext.java @@ -44,9 +44,11 @@ public class ContactsMockContext extends ContextWrapper { mContentResolver = new MockContentResolver(); mContactsProvider = new MockContentProvider(); mContentResolver.addProvider(ContactsContract.AUTHORITY, mContactsProvider); - mContactsProvider.attachInfo(this, new ProviderInfo()); + final ProviderInfo providerInfo = new ProviderInfo(); + providerInfo.authority = ContactsContract.AUTHORITY; + mContactsProvider.attachInfo(this, providerInfo); mSettingsProvider = new MockContentProvider(); - mSettingsProvider.attachInfo(this, new ProviderInfo()); + mSettingsProvider.attachInfo(this, providerInfo); mContentResolver.addProvider(Settings.AUTHORITY, mSettingsProvider); } |