mirror of https://github.com/M66B/FairEmail.git
Disable junk hint on click
This commit is contained in:
parent
116ff7f81a
commit
ee514efc5a
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue