On Recyclerview everything needs to be set explicitly

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-04-06 08:39:48 +02:00
parent 1884a5331f
commit ada5aeebe5
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -34,11 +34,6 @@ import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.emoji.widget.EmojiTextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.interfaces.DraweeController;
import com.facebook.drawee.view.SimpleDraweeView;
@ -50,6 +45,14 @@ import com.nextcloud.talk.models.json.chat.ChatMessage;
import com.nextcloud.talk.models.json.conversations.Conversation;
import com.nextcloud.talk.utils.ApiUtils;
import com.nextcloud.talk.utils.DisplayUtils;
import java.util.List;
import java.util.regex.Pattern;
import androidx.core.content.ContextCompat;
import androidx.emoji.widget.EmojiTextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import eu.davidea.flexibleadapter.FlexibleAdapter;
import eu.davidea.flexibleadapter.items.AbstractFlexibleItem;
import eu.davidea.flexibleadapter.items.IFilterable;
@ -57,9 +60,6 @@ import eu.davidea.flexibleadapter.items.IFlexible;
import eu.davidea.flexibleadapter.utils.FlexibleUtils;
import eu.davidea.viewholders.FlexibleViewHolder;
import java.util.List;
import java.util.regex.Pattern;
public class ConversationItem extends AbstractFlexibleItem<ConversationItem.ConversationItemViewHolder> implements
IFilterable<String> {
@ -146,6 +146,19 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
ContextCompat.getColor(context, R.color.conversation_unread_bubble_text));
}
} else {
holder.dialogName.setTypeface(
holder.dialogName.getTypeface(),
Typeface.NORMAL
);
holder.dialogDate.setTypeface(
holder.dialogDate.getTypeface(),
Typeface.NORMAL
);
holder.dialogLastMessage.setTypeface(
holder.dialogLastMessage.getTypeface(),
Typeface.NORMAL
);
holder.dialogUnreadBubble.setVisibility(View.GONE);
}