Added batch manage keywords button

This commit is contained in:
M66B
2024-11-08 10:56:31 +01:00
parent 88791994c1
commit ab8ae3761e
4 changed files with 58 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ public class FragmentDialogQuickActions extends FragmentDialogBase {
final CheckBox cbDelete = dview.findViewById(R.id.cbDelete);
final CheckBox cbJunk = dview.findViewById(R.id.cbJunk);
final CheckBox cbInbox = dview.findViewById(R.id.cbInbox);
final CheckBox cbKeywords = dview.findViewById(R.id.cbKeywords);
final CheckBox cbClear = dview.findViewById(R.id.cbClear);
cbSummarize.setVisibility(AI.isAvailable(context) ? View.VISIBLE : View.GONE);
@@ -86,6 +87,7 @@ public class FragmentDialogQuickActions extends FragmentDialogBase {
cbDelete.setChecked(prefs.getBoolean("more_delete", false));
cbJunk.setChecked(prefs.getBoolean("more_junk", true));
cbInbox.setChecked(prefs.getBoolean("more_inbox", true));
cbKeywords.setChecked(prefs.getBoolean("more_keywords", false));
cbClear.setChecked(prefs.getBoolean("more_clear", true));
return new AlertDialog.Builder(getContext())
@@ -111,6 +113,7 @@ public class FragmentDialogQuickActions extends FragmentDialogBase {
editor.putBoolean("more_delete", cbDelete.isChecked());
editor.putBoolean("more_junk", cbJunk.isChecked());
editor.putBoolean("more_inbox", cbInbox.isChecked());
editor.putBoolean("more_keywords", cbKeywords.isChecked());
editor.putBoolean("more_clear", cbClear.isChecked());
editor.apply();
sendResult(Activity.RESULT_OK);