diff options
author | Gabriele M <moto.falcon.git@gmail.com> | 2016-02-28 21:40:13 +0100 |
---|---|---|
committer | Gabriele M <moto.falcon.git@gmail.com> | 2016-02-28 22:19:32 +0100 |
commit | 4417d18292bf81fa013242919ae41a9fd5a008cf (patch) | |
tree | 9b904f1e1a6c837baba88ede5ef2d8eaa3d19c9f | |
parent | 8707141f18f83ec136ad8bf84c0bebee25938746 (diff) | |
download | packages_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
-rw-r--r-- | src/com/android/providers/contacts/ContactsProvider2.java | 2 |
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. |