forked from mirror/monocles_chat
Show user count in channel discovery
This commit is contained in:
parent
3ad559daac
commit
2b2deb3f4f
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,7 @@ import eu.siacs.conversations.ui.XmppActivity;
|
|||
import eu.siacs.conversations.ui.util.AvatarWorkerTask;
|
||||
import eu.siacs.conversations.xmpp.Jid;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.Locale;
|
||||
|
||||
public class ChannelSearchResultAdapter extends ListAdapter<Room, ChannelSearchResultAdapter.ViewHolder> implements View.OnCreateContextMenuListener {
|
||||
|
@ -51,7 +52,8 @@ public class ChannelSearchResultAdapter extends ListAdapter<Room, ChannelSearchR
|
|||
@Override
|
||||
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) {
|
||||
final Room searchResult = getItem(position);
|
||||
viewHolder.binding.name.setText(searchResult.getName());
|
||||
final String user = '[' + String.valueOf(searchResult.nusers) + ']';
|
||||
viewHolder.binding.name.setText(MessageFormat.format("{0} {1}", searchResult.getName(), user));
|
||||
final String description = searchResult.getDescription();
|
||||
final String language = searchResult.getLanguage();
|
||||
if (TextUtils.isEmpty(description)) {
|
||||
|
|
Loading…
Reference in a new issue