Fixed the deleted label exists on phone contact view list
Change the labels display condition of Customize view.
Display only labels that are groups.deleted=0.
Affected area:
Customize view in Contacts to display.
Bug: 68031832
Change-Id: Ic1a3427c46962c0947a33847e00ecb125e14fa89
diff --git a/src/com/android/contacts/list/CustomContactListFilterActivity.java b/src/com/android/contacts/list/CustomContactListFilterActivity.java
index 92087b3..9b0c896 100644
--- a/src/com/android/contacts/list/CustomContactListFilterActivity.java
+++ b/src/com/android/contacts/list/CustomContactListFilterActivity.java
@@ -171,7 +171,8 @@
if (account.dataSet != null) {
groupsUri.appendQueryParameter(Groups.DATA_SET, account.dataSet).build();
}
- final Cursor cursor = resolver.query(groupsUri.build(), null, null, null, null);
+ final Cursor cursor = resolver.query(groupsUri.build(), null,
+ Groups.DELETED + "=0", null, null);
if (cursor == null) {
continue;
}