diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2009-09-30 16:04:14 -0700 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2009-09-30 16:04:36 -0700 |
commit | 4e8ced99f8bbb01abd610a6ca60afcabb6ffe737 (patch) | |
tree | 1b21f7aef0e9d688afd4643fad9631cf750c5388 /src | |
parent | d91272b48f97243533c6580981e12a4847b5783f (diff) | |
download | ContactsProvider-4e8ced99f8bbb01abd610a6ca60afcabb6ffe737.tar.gz |
[Issue 2156901] Fixing update of the "starred" flag on raw contacts
Change-Id: I737a6e1a428edaa16c108bbbf5d4a461035560d4
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/contacts/ContactAggregator.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/providers/contacts/ContactAggregator.java b/src/com/android/providers/contacts/ContactAggregator.java index 7e18fd9a..afecf411 100644 --- a/src/com/android/providers/contacts/ContactAggregator.java +++ b/src/com/android/providers/contacts/ContactAggregator.java @@ -1492,9 +1492,14 @@ public class ContactAggregator implements ContactAggregationScheduler.Aggregator /** * Execute {@link SQLiteStatement} that will update the - * {@link Contacts#STARRED} flag for the given {@link Contacts#_ID}. + * {@link Contacts#STARRED} flag for the given {@link RawContacts#_ID}. */ - protected void updateStarred(long contactId) { + protected void updateStarred(long rawContactId) { + long contactId = mDbHelper.getContactId(rawContactId); + if (contactId == 0) { + return; + } + mStarredUpdate.bindLong(1, contactId); mStarredUpdate.execute(); } |