Skip to content

Commit

Permalink
Small design change to contacts view
Browse files Browse the repository at this point in the history
  • Loading branch information
markwinter committed Sep 17, 2014
1 parent 2c65c82 commit ab7f60f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,7 @@ public void updateContacts(Tuple<ArrayList<FriendInfo>,ArrayList<FriendRequest>>
if (friend_requests.length > 0) {
leftPaneAdapter.addItem(new LeftPaneItem(getResources().getString(R.string.contacts_delimiter_friends)));
}
String lastLetter = "";
for (int i = 0; i < friends_list.length; i++) {

if(!friends_list[i].friendName.substring(0,1).equalsIgnoreCase(lastLetter)) {
LeftPaneItem friends_header = new LeftPaneItem(friends_list[i].friendName.substring(0,1));
leftPaneAdapter.addItem(friends_header);
lastLetter = friends_list[i].friendName.substring(0,1);
}

LeftPaneItem friend = new LeftPaneItem(friends_list[i].friendKey, friends_list[i].friendName, friends_list[i].lastMessage, friends_list[i].isOnline, friends_list[i].getFriendStatusAsToxUserStatus(), friends_list[i].unreadCount, friends_list[i].lastMessageTimestamp);
leftPaneAdapter.addItem(friend);
}
Expand Down

0 comments on commit ab7f60f

Please sign in to comment.