# HG changeset patch # User nikita@localhost # Date 1245953527 -7200 # Node ID 5427deeda4e0ce3dcc264b9e56dca63e4db623f6 # Parent 0af8e2bbb107426931c0ebd16ba13acb63c08a89 bug des blanks contacts diff -r 0af8e2bbb107 -r 5427deeda4e0 AndroidManifest.xml --- a/AndroidManifest.xml Thu Jun 25 10:02:44 2009 +0200 +++ b/AndroidManifest.xml Thu Jun 25 20:12:07 2009 +0200 @@ -35,6 +35,6 @@ - + diff -r 0af8e2bbb107 -r 5427deeda4e0 src/com/beem/project/beem/ui/ContactList.java --- a/src/com/beem/project/beem/ui/ContactList.java Thu Jun 25 10:02:44 2009 +0200 +++ b/src/com/beem/project/beem/ui/ContactList.java Thu Jun 25 20:12:07 2009 +0200 @@ -357,13 +357,18 @@ break; default: imageDrawable = getResources().getDrawable(R.drawable.error); - break; + break; } imgV.setImageDrawable(imageDrawable); - - if (v != null) { - v.setText(curContact.getName()); + + String mContactName = curContact.getName(); + if ("".equals(mContactName)) { + mContactName = curContact.getJID(); + mContactName = StringUtils.parseName(mContactName); + if ("".equals(mContactName)) + mContactName = curContact.getJID(); } + v.setText(mContactName); v = (TextView) view.findViewById(R.id.contactlistmsgperso); if (v != null) {