diff --git a/app/src/main/java/eu/faircode/email/FragmentOptions.java b/app/src/main/java/eu/faircode/email/FragmentOptions.java index 7d9ee07b60..15c6236017 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptions.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptions.java @@ -108,6 +108,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O private SwitchCompat swAuthentication; private SwitchCompat swParanoid; + private TextView tvParanoidHint; private SwitchCompat swEnglish; private SwitchCompat swUpdates; private SwitchCompat swDebug; @@ -190,6 +191,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O swAuthentication = view.findViewById(R.id.swAuthentication); swParanoid = view.findViewById(R.id.swParanoid); + tvParanoidHint = view.findViewById(R.id.tvParanoidHint); swEnglish = view.findViewById(R.id.swEnglish); swUpdates = view.findViewById(R.id.swUpdates); swDebug = view.findViewById(R.id.swDebug); @@ -270,6 +272,19 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O } }); + final Intent faq = new Intent(Intent.ACTION_VIEW); + faq.setData(Uri.parse(Helper.FAQ_URI + "#user-content-faq86")); + faq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + if (faq.resolveActivity(getContext().getPackageManager()) != null) { + tvParanoidHint.getPaint().setUnderlineText(true); + tvParanoidHint.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(faq); + } + }); + } + swEnglish.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { diff --git a/app/src/main/res/layout/fragment_options.xml b/app/src/main/res/layout/fragment_options.xml index 4ad72e173a..a78b4fbb35 100644 --- a/app/src/main/res/layout/fragment_options.xml +++ b/app/src/main/res/layout/fragment_options.xml @@ -883,6 +883,19 @@ app:layout_constraintTop_toBottomOf="@id/swAuthentication" app:switchPadding="12dp" /> + + Only available when message text was downloaded Instead of searching in the primary archive folder on the server This will restart the app + See the FAQ for details Select … Your name