From a5d14a67f8e37e30cec7832ab749731d36079dbd Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 10 May 2021 21:24:24 +0200 Subject: [PATCH] add mail icon for mail users Signed-off-by: Andy Scherzinger --- .../talk/adapters/items/UserItem.java | 3 +- .../main/res/drawable/ic_circular_mail.xml | 35 +++++++++++++++++++ drawable_resources/other/circular_mail.svg | 10 ++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/ic_circular_mail.xml create mode 100644 drawable_resources/other/circular_mail.svg diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java index c1dfe7bf1..e34ed1d4a 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/UserItem.java @@ -152,8 +152,7 @@ public class UserItem extends AbstractFlexibleItem if (participant.getActorType() == Participant.ActorType.GROUPS || "groups".equals(participant.getSource())) { holder.simpleDraweeView.setImageResource(R.drawable.ic_circular_group); } else if (participant.getActorType() == Participant.ActorType.EMAILS) { - // FIXME use an email icon - holder.simpleDraweeView.setImageResource(R.drawable.ic_circular_group); + holder.simpleDraweeView.setImageResource(R.drawable.ic_circular_mail); } else if (participant.getActorType() == Participant.ActorType.GUESTS || Participant.ParticipantType.GUEST.equals(participant.getType()) || Participant.ParticipantType.GUEST_MODERATOR.equals(participant.getType())) { diff --git a/app/src/main/res/drawable/ic_circular_mail.xml b/app/src/main/res/drawable/ic_circular_mail.xml new file mode 100644 index 000000000..969d98d6c --- /dev/null +++ b/app/src/main/res/drawable/ic_circular_mail.xml @@ -0,0 +1,35 @@ + + + + + + diff --git a/drawable_resources/other/circular_mail.svg b/drawable_resources/other/circular_mail.svg new file mode 100644 index 000000000..ad198b068 --- /dev/null +++ b/drawable_resources/other/circular_mail.svg @@ -0,0 +1,10 @@ + + + + + + + + + +