From 0e1be1f43daa9607c2b717f7a9de0657cc6078b5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 30 Aug 2018 15:43:22 +0200 Subject: [PATCH] Removed useless code --- .../client/ui/adapters/ConversationMessageAdapter.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java index dc8385a..6355cf9 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java @@ -119,15 +119,7 @@ public class ConversationMessageAdapter extends RecyclerView.Adapter { @Override public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { - switch (viewHolder.getItemViewType()){ - case VIEW_TYPE_MESSAGE_SENT: - ((SentMessageHolder) viewHolder).bind(position); - break; - - case VIEW_TYPE_MESSAGE_RECEIVED: - ((ReceivedMessageHolder) viewHolder).bind(position); - break; - } + ((BaseMessageHolder) viewHolder).bind(position); } /**