summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTingting Wang <tingtingw@google.com>2015-12-04 15:35:42 -0800
committerThe Android Automerger <android-build@google.com>2016-02-16 12:28:40 -0800
commitd1d67f9ab530e4862af024eeed76ddc178b4bbd4 (patch)
tree87efcad86837f6bebe108e8481f66d657abbef16
parentade78bd70affa0d5963a998152646f55dfe24bf5 (diff)
downloadpackages_providers_ContactsProvider-d1d67f9ab530e4862af024eeed76ddc178b4bbd4.zip
packages_providers_ContactsProvider-d1d67f9ab530e4862af024eeed76ddc178b4bbd4.tar.gz
packages_providers_ContactsProvider-d1d67f9ab530e4862af024eeed76ddc178b4bbd4.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 (cherry picked from commit 59af846139224607b667c61ee191bf363ef929ba)
-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;
}