From cc7fa833611f7294e737021269a46e6ecc19e69b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 23 Sep 2023 21:49:29 +0200 Subject: [PATCH] Added error reporting info button --- .../java/eu/faircode/email/FragmentOptionsMisc.java | 9 +++++++++ app/src/main/res/layout/fragment_options_misc.xml | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index b9205f9c2c..6cac17eaf1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -136,6 +136,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc private TextView tvAnnouncementsPrivacy; private SwitchCompat swCrashReports; private TextView tvUuid; + private ImageButton ibCrashReports; private Button btnReset; private SwitchCompat swCleanupAttachments; private Button btnCleanup; @@ -394,6 +395,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc tvAnnouncementsPrivacy = view.findViewById(R.id.tvAnnouncementsPrivacy); swCrashReports = view.findViewById(R.id.swCrashReports); tvUuid = view.findViewById(R.id.tvUuid); + ibCrashReports = view.findViewById(R.id.ibCrashReports); btnReset = view.findViewById(R.id.btnReset); swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments); btnCleanup = view.findViewById(R.id.btnCleanup); @@ -831,6 +833,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc } }); + ibCrashReports.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Helper.viewFAQ(v.getContext(), 104); + } + }); + btnReset.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml index c0dceb1720..f60860780b 100644 --- a/app/src/main/res/layout/fragment_options_misc.xml +++ b/app/src/main/res/layout/fragment_options_misc.xml @@ -477,6 +477,16 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/swCrashReports" /> + +