Fix contact name issue
Contacts don't have to have a display name Test: manual Fixes: 172903141 Change-Id: Iabbde4c5f527128c960334997910dba4536fe055
This commit is contained in:
@@ -447,9 +447,9 @@ public class ZenModeBackend {
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
do {
|
||||
String contact = cursor.getString(0);
|
||||
if (contact != null) {
|
||||
starredContacts.add(contact);
|
||||
}
|
||||
starredContacts.add(contact != null ? contact :
|
||||
mContext.getString(R.string.zen_mode_starred_contacts_empty_name));
|
||||
|
||||
} while (cursor.moveToNext());
|
||||
}
|
||||
return starredContacts;
|
||||
|
Reference in New Issue
Block a user