History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ContactsTableUtil.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
da51adb4b99894666e7ea91fed0e8afc94162333 23-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fixed issue where some contacts are not added to delete log.

Contacts with multiple raw contacts were not being inserted into the delete
log when accounts are removed. This was due to the raw contacts being removed
in batch instead of one at a time. The logic to determine whether a contact
can be deleted was determining whether other raw contacts exist. This does
not work when all raw contacts are removed in a single batch.

Added logic to pre-select contacts that will be deleted.

Bug: 8696462
Change-Id: I95adccf9e6756bbf6ca9dd7d144c1d9ee8905631
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ContactsTableUtil.java
0cc5d1504803de51f8b421442e04ece87728af43 22-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fix sqlite error when too many bind variables.

Sqlite has a limit of 999 bind variables by default. Since there is no risk
of sql injection in this method, change to building sql by concatentation.

Bug: 8676489
Change-Id: I9bfea735bb14fd65c84eb4255825b7ad3f5fae71
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ContactsTableUtil.java
8ed367fdc0b086d54c489f68d555e2f0a4035f63 12-Mar-2013 Chiao Cheng <chiaocheng@google.com> Adding contacts delta api.

Updates and inserts can be detected through the use of a new timestamp
field in the contacts table.

Deletes can be detected by querying the new deleted_contacts table.

Bug: 8182147
Change-Id: I5c1e596f4e1aa58528afc29396f79cb4051e229c
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ContactsTableUtil.java