From 8d69651fb6d9d507da442303a1c56d7924b15e25 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 15 Jun 2022 08:49:24 +0200 Subject: [PATCH] Force light when can darken --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 509aa0ae95..5fd5a8208b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -299,6 +299,7 @@ public class AdapterMessage extends RecyclerView.Adapter languages; private static boolean debug; private int level; + private boolean canDarken; private boolean webview_legacy; private boolean show_recent; @@ -2162,7 +2163,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0 || tos > 0) ? View.VISIBLE : View.GONE); ibTranslate.setVisibility(tools && !outbox && button_translate && DeepL.isAvailable(context) && message.content ? View.VISIBLE : View.GONE); - ibForceLight.setVisibility(tools && full && dark && button_force_light && message.content ? View.VISIBLE : View.GONE); + ibForceLight.setVisibility(tools && full && dark && canDarken && button_force_light && message.content ? View.VISIBLE : View.GONE); ibForceLight.setImageLevel(force_light ? 1 : 0); ibImportance.setVisibility(tools && button_importance && !outbox && seen ? View.VISIBLE : View.GONE); ibHide.setVisibility(tools && button_hide && !outbox ? View.VISIBLE : View.GONE); @@ -4877,7 +4878,6 @@ public class AdapterMessage extends RecyclerView.Adapter callback = new DiffUtil.ItemCallback() { @Override