Show auth info for verified sender

This commit is contained in:
M66B 2024-05-13 16:43:20 +02:00
parent 7659fde011
commit 01621724cd
1 changed files with 7 additions and 4 deletions

View File

@ -4456,7 +4456,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
else if (id == R.id.ibVerified)
onShowVerified(message);
else if (id == R.id.ibAuth)
onShowAuth(message);
onShowAuth(message, null);
else if (id == R.id.ibPriority)
onShowPriority(message);
else if (id == R.id.ibSensitivity)
@ -4910,12 +4910,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
private void onShowVerified(TupleMessageEx message) {
ToastEx.makeText(context, ibVerified.getContentDescription(), Toast.LENGTH_LONG).show();
onShowAuth(message, ibVerified.getContentDescription().toString());
}
private void onShowAuth(TupleMessageEx message) {
private void onShowAuth(TupleMessageEx message, String title) {
StringBuilder sb = new StringBuilder();
if (title != null)
sb.append(title).append('\n');
List<String> result = new ArrayList<>();
if (Boolean.FALSE.equals(message.dkim))
result.add("DKIM");
@ -7934,7 +7937,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
onToggleFlag(message);
return true;
} else if (action == R.id.ibAuth) {
onShowAuth(message);
onShowAuth(message, null);
return true;
} else if (action == R.id.ibSnoozed) {
onShowSnoozed(message);