Skip to content

Commit

Permalink
room names fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaled Aldaoudieh committed Apr 4, 2021
1 parent f96e049 commit 1566f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ public void leaveChannel(){
pubnub.destroy();

uiHandler.post(() -> {
for(ChannelEventListener l:listeners)
l.onSelfLeft();
});
for(ChannelEventListener l:listeners)
l.onSelfLeft();
});


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private class ChannelViewHolder extends BindableViewHolder<Channel> implements V

public ChannelViewHolder(){
super(getActivity(), R.layout.channel_row);
topic=findViewById(R.id.topic_input);
topic=findViewById(R.id.topic);
speakers=findViewById(R.id.speakers);
numSpeakers=findViewById(R.id.num_speakers);
numMembers=findViewById(R.id.num_members);
Expand All @@ -338,7 +338,7 @@ public ChannelViewHolder(){

@Override
public void onBind(Channel item){
topic=findViewById(R.id.topic);
topic.setText(item.topic);
numMembers.setText(""+item.numAll);
numSpeakers.setText(""+item.numSpeakers);
speakers.setText(item.users.stream().map(user->user.isSpeaker ? (user.name+" 💬") : user.name).collect(Collectors.joining("\n")) );
Expand Down

0 comments on commit 1566f95

Please sign in to comment.