From 0ba7583140ea8b1741fa402b51d65acc45d29f77 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 12 Jul 2024 13:21:08 +0200 Subject: [PATCH] Added favicon info button --- .../eu/faircode/email/FragmentOptionsDisplay.java | 9 +++++++++ .../main/res/layout/fragment_options_display.xml | 15 ++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 6df22d5015..0377647b34 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -127,6 +127,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer private TextView tvFaviconsHint; private SwitchCompat swFaviconsPartial; private SwitchCompat swFaviconsManifest; + private ImageButton ibFavicons; private SwitchCompat swDdg; private TextView tvDdgPrivacy; private SwitchCompat swFaviconsDmarc; @@ -309,6 +310,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer tvFaviconsHint = view.findViewById(R.id.tvFaviconsHint); swFaviconsPartial = view.findViewById(R.id.swFaviconsPartial); swFaviconsManifest = view.findViewById(R.id.swFaviconsManifest); + ibFavicons = view.findViewById(R.id.ibFavicons); swDdg = view.findViewById(R.id.swDdg); tvDdgPrivacy = view.findViewById(R.id.tvDdgPrivacy); swFaviconsDmarc = view.findViewById(R.id.swFaviconsDmarc); @@ -922,6 +924,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer } }); + ibFavicons.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Helper.viewFAQ(view.getContext(), 154); + } + }); + swDdg.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { diff --git a/app/src/main/res/layout/fragment_options_display.xml b/app/src/main/res/layout/fragment_options_display.xml index 9e235a5322..0bcd41bcd7 100644 --- a/app/src/main/res/layout/fragment_options_display.xml +++ b/app/src/main/res/layout/fragment_options_display.xml @@ -1142,6 +1142,19 @@ app:layout_constraintTop_toBottomOf="@id/swFaviconsPartial" app:switchPadding="12dp" /> + +