Chips: show key availability

This commit is contained in:
M66B
2022-03-04 13:41:39 +01:00
parent dc37308af0
commit 5b6febf254
2 changed files with 53 additions and 4 deletions

View File

@@ -67,6 +67,10 @@ public class PgpHelper {
}
}
static boolean hasPgpKey(Context context, List<Address> recipients) {
return hasPgpKey(context, recipients, CONNECT_TIMEOUT);
}
static boolean hasPgpKey(Context context, List<Address> recipients, long timeout) {
if (recipients == null || recipients.size() == 0)
return false;