Disable junk hint on click

This commit is contained in:
M66B 2022-09-05 09:09:52 +02:00
parent 116ff7f81a
commit ee514efc5a
2 changed files with 6 additions and 1 deletions

View File

@ -101,6 +101,7 @@ public class FragmentDialogJunk extends FragmentDialogBase {
boolean block_sender = prefs.getBoolean("block_sender", true);
boolean check_blocklist = prefs.getBoolean("check_blocklist", false);
boolean use_blocklist = prefs.getBoolean("use_blocklist", false);
boolean junk_hint = prefs.getBoolean("junk_hint", true);
boolean canBlock = false;
if (froms != null && froms.length > 0) {
@ -110,10 +111,13 @@ public class FragmentDialogJunk extends FragmentDialogBase {
// Wire controls
tvJunkHint.setVisibility(junk_hint ? View.VISIBLE : View.GONE);
tvJunkHint.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 92);
prefs.edit().putBoolean("junk_hint", false).apply();
tvJunkHint.setVisibility(View.GONE);
}
});

View File

@ -271,7 +271,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
"open_with_pkg", "open_with_tabs",
"gmail_checked", "outlook_checked",
"redmi_note",
"accept_space", "accept_unsupported"
"accept_space", "accept_unsupported",
"junk_hint"
};
@Override