AMP requires WebView

This commit is contained in:
M66B
2022-02-14 10:38:07 +01:00
parent cff26bfc69
commit 363d0ad89f
2 changed files with 10 additions and 1 deletions

View File

@@ -2821,7 +2821,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
!EntityMessage.SMIME_SIGNENCRYPT.equals(message.encrypt));
// Show AMP
ibAmp.setVisibility(args.getBoolean("has_amp") ? View.VISIBLE : View.GONE);
boolean has_amp = args.getBoolean("has_amp");
ibAmp.setVisibility(has_amp && Helper.hasWebView(context)
? View.VISIBLE : View.GONE);
// Show encrypt actions
ibVerify.setVisibility(verifyable ? View.VISIBLE : View.GONE);