From c3cf7e892cd7285b9ed8ba5ce3dd43db2490bb19 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 30 Dec 2024 12:31:20 +0100 Subject: [PATCH] Refactoring --- .../eu/faircode/email/AdapterMessage.java | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 7db8a226aa..6f4f562d8b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -255,7 +255,6 @@ public class AdapterMessage extends RecyclerView.Adapter position = properties.getPosition(message.id); Log.i("Bind size=" + size + " height=" + height); - ibFull.setEnabled(hasWebView); - ibFull.setImageTintList(ColorStateList.valueOf(hasWebView ? colorAccent : colorSeparator)); + ibFull.setEnabled(Helper.hasWebView(context)); + ibFull.setImageTintList(ColorStateList.valueOf(Helper.hasWebView(context) ? colorAccent : colorSeparator)); ibFull.setImageResource(show_full ? R.drawable.twotone_fullscreen_exit_24 : R.drawable.twotone_fullscreen_24); ibFull.setContentDescription(context.getString(show_full ? R.string.title_legend_show_reformatted @@ -3520,7 +3519,7 @@ public class AdapterMessage extends RecyclerView.Adapter