summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java')
-rw-r--r--src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java b/src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java
index cfbad32..c18c1d6 100644
--- a/src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java
+++ b/src/com/android/providers/contacts/aggregation/AbstractContactAggregator.java
@@ -602,7 +602,8 @@ public abstract class AbstractContactAggregator {
final int count;
final Cursor cursor = db.rawQuery("SELECT " + RawContacts._ID +
" FROM " + Tables.RAW_CONTACTS +
- " WHERE " + RawContactsColumns.AGGREGATION_NEEDED + "=1", null);
+ " WHERE " + RawContactsColumns.AGGREGATION_NEEDED + "=1 AND " +
+ RawContacts.DELETED + "=0", null);
try {
count = cursor.getCount();
cursor.moveToPosition(-1);