Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fixed displaying contacts without display name
Browse files Browse the repository at this point in the history
Refs #1660
  • Loading branch information
M66B committed May 15, 2014
1 parent 64bf770 commit 6abaa44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Changelog

**Next release**

* Fixed displaying contacts without display name ([issue](/../../issues/1660))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

**Version 2.0.22 STABLE**
Expand Down
5 changes: 2 additions & 3 deletions src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,8 @@ protected Object doInBackground(Object... params) {
while (cursor.moveToNext()) {
long id = cursor.getLong(cursor.getColumnIndex(ContactsContract.Contacts._ID));
String contact = cursor.getString(cursor.getColumnIndex(Phone.DISPLAY_NAME));
if (contact == null)
contact = "-";
mapContact.put(id, contact);
if (contact != null)
mapContact.put(id, contact);
}
} finally {
cursor.close();
Expand Down

0 comments on commit 6abaa44

Please sign in to comment.