fixed generation of muc pictures with copyonwrite user list
This commit is contained in:
parent
fe46d36137
commit
bc24cf93ab
|
@ -214,13 +214,17 @@ public class UIHelper {
|
||||||
new String[] { conversation.getName(false) }, size,
|
new String[] { conversation.getName(false) }, size,
|
||||||
bgColor, fgColor);
|
bgColor, fgColor);
|
||||||
}
|
}
|
||||||
String[] names = new String[members.size() + 1];
|
ArrayList<String> names = new ArrayList<String>();
|
||||||
names[0] = conversation.getMucOptions().getActualNick();
|
names.add(conversation.getMucOptions().getActualNick());
|
||||||
for (int i = 0; i < members.size(); ++i) {
|
for(User user : members) {
|
||||||
names[i + 1] = members.get(i).getName();
|
names.add(user.getName());
|
||||||
|
if (names.size() > 4 ) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
String[] mArrayNames = new String[names.size()];
|
||||||
return getUnknownContactPicture(names, size, bgColor, fgColor);
|
names.toArray(mArrayNames);
|
||||||
|
return getUnknownContactPicture(mArrayNames, size, bgColor, fgColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Bitmap getContactPicture(Conversation conversation,
|
public static Bitmap getContactPicture(Conversation conversation,
|
||||||
|
|
Loading…
Reference in a new issue