Hide empty FFC groups for non Google accounts
OEM devices are creating system FFC groups that are not
being hidden because of a check for Google account. Relaxing
that check to allow account account type label to be hidden
if its an empty FFC.
Bug:30575974
Change-Id: I85b312bfb6a6904cd2236d2ee5cbe07d9a724ee6
diff --git a/src/com/android/contacts/group/GroupUtil.java b/src/com/android/contacts/group/GroupUtil.java
index 3e8cd61..b54126e 100644
--- a/src/com/android/contacts/group/GroupUtil.java
+++ b/src/com/android/contacts/group/GroupUtil.java
@@ -140,12 +140,11 @@
}
/**
- * Returns true if it's an empty and read-only group of a Google account and the system ID of
+ * Returns true if it's an empty and read-only group and the system ID of
* the group is one of "Friends", "Family" and "Coworkers".
*/
public static boolean isEmptyFFCGroup(GroupListItem groupListItem) {
- return GoogleAccountType.ACCOUNT_TYPE.equals(groupListItem.getAccountType())
- && groupListItem.isReadOnly()
+ return groupListItem.isReadOnly()
&& isSystemIdFFC(groupListItem.getSystemId())
&& (groupListItem.getMemberCount() <= 0);
}