mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-27 07:49:28 +00:00
Removed useless code
This commit is contained in:
parent
9cc46c1557
commit
0e1be1f43d
@ -119,15 +119,7 @@ public class ConversationMessageAdapter extends RecyclerView.Adapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) {
|
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) {
|
||||||
switch (viewHolder.getItemViewType()){
|
((BaseMessageHolder) viewHolder).bind(position);
|
||||||
case VIEW_TYPE_MESSAGE_SENT:
|
|
||||||
((SentMessageHolder) viewHolder).bind(position);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case VIEW_TYPE_MESSAGE_RECEIVED:
|
|
||||||
((ReceivedMessageHolder) viewHolder).bind(position);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user