mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
committed by
Nicholas Tinsley
parent
aa33fd44b8
commit
ec96b4e3aa
@@ -8,10 +8,11 @@ import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.badges.BadgeImageView;
|
||||
import org.thoughtcrime.securesms.components.AvatarImageView;
|
||||
import org.thoughtcrime.securesms.mms.GlideApp;
|
||||
import org.thoughtcrime.securesms.util.AvatarUtil;
|
||||
|
||||
import java.util.Collections;
|
||||
@@ -65,12 +66,12 @@ final class ReactionRecipientsAdapter extends RecyclerView.Adapter<ReactionRecip
|
||||
|
||||
if (reaction.getSender().isSelf()) {
|
||||
this.recipient.setText(R.string.ReactionsRecipientAdapter_you);
|
||||
this.avatar.setAvatar(GlideApp.with(avatar), null, false);
|
||||
this.avatar.setAvatar(Glide.with(avatar), null, false);
|
||||
this.badge.setBadge(null);
|
||||
AvatarUtil.loadIconIntoImageView(reaction.getSender(), avatar);
|
||||
} else {
|
||||
this.recipient.setText(reaction.getSender().getDisplayName(itemView.getContext()));
|
||||
this.avatar.setAvatar(GlideApp.with(avatar), reaction.getSender(), false);
|
||||
this.avatar.setAvatar(Glide.with(avatar), reaction.getSender(), false);
|
||||
this.badge.setBadgeFromRecipient(reaction.getSender());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user