summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTingting Wang <tingtingw@google.com>2015-12-04 15:35:42 -0800
committerTingting Wang <tingtingw@google.com>2015-12-04 15:35:42 -0800
commit59af846139224607b667c61ee191bf363ef929ba (patch)
treeb3a76ae1e8134a7c2fb34eb87e4e8cad538b5fd5
parent793bd9aa874703e782f3c292c8427f790869f40f (diff)
downloadpackages_providers_ContactsProvider-59af846139224607b667c61ee191bf363ef929ba.zip
packages_providers_ContactsProvider-59af846139224607b667c61ee191bf363ef929ba.tar.gz
packages_providers_ContactsProvider-59af846139224607b667c61ee191bf363ef929ba.tar.bz2
Update directories when initializing ContactsProvider.
This is to fix a bug when reading exchange provider. Updating directories can fix it without factory reset or account changed. BUG 22398175 Change-Id: I36e05ff5f7bc83dc25ab165e5f5fb122bbe6c160
-rw-r--r--src/com/android/providers/contacts/ContactsProvider2.java1
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 7dc7e7e..8904dc1 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -1687,6 +1687,7 @@ public class ContactsProvider2 extends AbstractContactsProvider
initForDefaultLocale();
mReadAccessLatch.countDown();
mReadAccessLatch = null;
+ updateDirectoriesInBackground(true);
break;
}