summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2016-02-28 21:40:13 +0100
committerGabriele M <moto.falcon.git@gmail.com>2016-02-28 22:19:32 +0100
commit4417d18292bf81fa013242919ae41a9fd5a008cf (patch)
tree9b904f1e1a6c837baba88ede5ef2d8eaa3d19c9f /src
parent8707141f18f83ec136ad8bf84c0bebee25938746 (diff)
downloadpackages_providers_ContactsProvider-4417d18292bf81fa013242919ae41a9fd5a008cf.zip
packages_providers_ContactsProvider-4417d18292bf81fa013242919ae41a9fd5a008cf.tar.gz
packages_providers_ContactsProvider-4417d18292bf81fa013242919ae41a9fd5a008cf.tar.bz2
Don't suspend aggregation for new contacts
New contacts are not merged with existing contacts until they are edited. Set the default aggregation mode to AGGREGATION_MODE_DEFAULT to have them merged right away. Change-Id: I18a5d32ca01daa2abc913843a094a82823cf61c3
Diffstat (limited to 'src')
-rw-r--r--src/com/android/providers/contacts/ContactsProvider2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index 3bc0d9f..d5c48a5 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -2831,7 +2831,7 @@ public class ContactsProvider2 extends AbstractContactsProvider
final long rawContactId = db.insert(Tables.RAW_CONTACTS, RawContacts.CONTACT_ID, values);
final int aggregationMode = getIntValue(values, RawContacts.AGGREGATION_MODE,
- RawContacts.AGGREGATION_MODE_SUSPENDED);
+ RawContacts.AGGREGATION_MODE_DEFAULT);
mAggregator.get().markNewForAggregation(rawContactId, aggregationMode);
// Trigger creation of a Contact based on this RawContact at the end of transaction.