Make sure to invalidate fast index cache when
aggregation changes.
Bug 7249008
Change-Id: I6022dca2e56a6a4cdfcde4d936289881a40d1012
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index 1af934c..a225b4d 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -1563,6 +1563,7 @@
case BACKGROUND_TASK_UPGRADE_AGGREGATION_ALGORITHM: {
if (isAggregationUpgradeNeeded()) {
upgradeAggregationAlgorithmInBackground();
+ invalidateFastScrollingIndexCache();
}
break;
}
@@ -3836,6 +3837,7 @@
case AGGREGATION_EXCEPTIONS: {
count = updateAggregationException(db, values);
+ invalidateFastScrollingIndexCache();
break;
}