From a3169a86ae3be7e53dc006594bc9c449d5aef89e Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 19 Jul 2021 08:59:32 +0200 Subject: [PATCH] Show not authenticated --- .../eu/faircode/email/AdapterMessage.java | 12 +++++++--- app/src/main/res/drawable/authenticated.xml | 7 ++++-- .../res/drawable/twotone_shield_check_24.xml | 24 +++++++++++++++++++ .../res/drawable/twotone_shield_cross_24.xml | 24 +++++++++++++++++++ 4 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/drawable/twotone_shield_check_24.xml create mode 100644 app/src/main/res/drawable/twotone_shield_cross_24.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 1e26436ad6..0f620c3f06 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1046,8 +1046,8 @@ public class AdapterMessage extends RecyclerView.Adapter 0) { - ibAuth.setImageLevel(auths); + } else if (authentication_indicator) { + ibAuth.setImageLevel(auths + 1); ibAuth.setImageTintList(ColorStateList.valueOf(colorControlNormal)); ibAuth.setVisibility(View.VISIBLE); } else @@ -1566,7 +1566,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0) { + sb.insert(0, '\n'); + sb.insert(0, MessageHelper.formatAddresses( + message.from, MessageHelper.AddressFormat.EMAIL_ONLY, false)); + } + ToastEx.makeText(context, sb.toString(), Toast.LENGTH_LONG).show(); } diff --git a/app/src/main/res/drawable/authenticated.xml b/app/src/main/res/drawable/authenticated.xml index 7e384c0414..bf42703a60 100644 --- a/app/src/main/res/drawable/authenticated.xml +++ b/app/src/main/res/drawable/authenticated.xml @@ -4,12 +4,15 @@ android:drawable="@drawable/twotone_flag_24" android:maxLevel="0" /> + diff --git a/app/src/main/res/drawable/twotone_shield_check_24.xml b/app/src/main/res/drawable/twotone_shield_check_24.xml new file mode 100644 index 0000000000..434e18aa03 --- /dev/null +++ b/app/src/main/res/drawable/twotone_shield_check_24.xml @@ -0,0 +1,24 @@ + + + + + + + diff --git a/app/src/main/res/drawable/twotone_shield_cross_24.xml b/app/src/main/res/drawable/twotone_shield_cross_24.xml new file mode 100644 index 0000000000..c92fe2300d --- /dev/null +++ b/app/src/main/res/drawable/twotone_shield_cross_24.xml @@ -0,0 +1,24 @@ + + + + + + +