diff options
-rw-r--r-- | src/com/android/providers/contacts/ContactAggregator.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/ContactAggregator.java b/src/com/android/providers/contacts/ContactAggregator.java index e7cecbf2..1e239a27 100644 --- a/src/com/android/providers/contacts/ContactAggregator.java +++ b/src/com/android/providers/contacts/ContactAggregator.java @@ -484,7 +484,11 @@ public class ContactAggregator { } // If there are no other raw contacts in the current aggregate, we might as well reuse it. - if (contactId == -1 && currentContactId != 0 && currentContactContentsCount == 0) { + // Also, if the aggregation mode is SUSPENDED, we must reuse the same aggregate. + if (contactId == -1 + && currentContactId != 0 + && (currentContactContentsCount == 0 + || aggregationMode == RawContacts.AGGREGATION_MODE_SUSPENDED)) { contactId = currentContactId; } |