mirror of
https://github.com/accelforce/Yuito
synced 2024-12-21 12:34:51 +01:00
Fix Crash (#1066)
* fix possible npe * Update ConversationViewHolder.java * revert unneded changes
This commit is contained in:
parent
1621c1e689
commit
bbd37c6cd4
@ -107,7 +107,9 @@ public class ConversationViewHolder extends StatusBaseViewHolder {
|
||||
private void setConversationName(List<ConversationAccountEntity> accounts) {
|
||||
Context context = conversationNameTextView.getContext();
|
||||
String conversationName;
|
||||
if(accounts.size() == 1) {
|
||||
if(accounts.size() == 0) {
|
||||
conversationName = " ";
|
||||
}else if(accounts.size() == 1) {
|
||||
conversationName = context.getString(R.string.conversation_1_recipients, accounts.get(0).getUsername());
|
||||
} else if(accounts.size() == 2) {
|
||||
conversationName = context.getString(R.string.conversation_2_recipients, accounts.get(0).getUsername(), accounts.get(1).getUsername());
|
||||
|
Loading…
Reference in New Issue
Block a user