Auth no/none

pull/194/merge
M66B 3 years ago
parent 3bc256eff1
commit dd63a544b9

@ -1234,7 +1234,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean verified = (auths == 3 && (!check_tls || Boolean.TRUE.equals(message.tls)));
ibAuth.setImageLevel(auths + 1);
if (message.dkim == null && message.spf == null && message.dkim == null)
ibAuth.setImageLevel(1);
else
ibAuth.setImageLevel(auths + 2);
ibAuth.setImageTintList(ColorStateList.valueOf(
verified ? colorVerified : colorControlNormal));
ibAuth.setVisibility(auths > 0 || (check_tls && !outgoing) ? View.VISIBLE : View.GONE);

@ -7,12 +7,15 @@
android:drawable="@drawable/twotone_gpp_question_24"
android:maxLevel="1" />
<item
android:drawable="@drawable/twotone_gpp_maybe_24"
android:drawable="@drawable/twotone_gpp_bad_24"
android:maxLevel="2" />
<item
android:drawable="@drawable/twotone_gpp_maybe_24"
android:maxLevel="3" />
<item
android:drawable="@drawable/twotone_gpp_good_24"
android:drawable="@drawable/twotone_gpp_maybe_24"
android:maxLevel="4" />
<item
android:drawable="@drawable/twotone_gpp_good_24"
android:maxLevel="5" />
</level-list>

Loading…
Cancel
Save