mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
fixed generation of muc pictures with copyonwrite user list
This commit is contained in:
parent
8a5f9f1488
commit
ad8c5b6874
@ -214,13 +214,17 @@ public class UIHelper {
|
||||
new String[] { conversation.getName(false) }, size,
|
||||
bgColor, fgColor);
|
||||
}
|
||||
String[] names = new String[members.size() + 1];
|
||||
names[0] = conversation.getMucOptions().getActualNick();
|
||||
for (int i = 0; i < members.size(); ++i) {
|
||||
names[i + 1] = members.get(i).getName();
|
||||
ArrayList<String> names = new ArrayList<String>();
|
||||
names.add(conversation.getMucOptions().getActualNick());
|
||||
for(User user : members) {
|
||||
names.add(user.getName());
|
||||
if (names.size() > 4 ) {
|
||||
break;
|
||||
}
|
||||
|
||||
return getUnknownContactPicture(names, size, bgColor, fgColor);
|
||||
}
|
||||
String[] mArrayNames = new String[names.size()];
|
||||
names.toArray(mArrayNames);
|
||||
return getUnknownContactPicture(mArrayNames, size, bgColor, fgColor);
|
||||
}
|
||||
|
||||
public static Bitmap getContactPicture(Conversation conversation,
|
||||
|
Loading…
Reference in New Issue
Block a user