|
|
|
@ -102,6 +102,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
private SwitchCompat swPhotoPicker;
|
|
|
|
|
private SwitchCompat swFlagSnoozed;
|
|
|
|
|
private SwitchCompat swFlagUnsnoozed;
|
|
|
|
|
private SwitchCompat swImportantUnsnoozed;
|
|
|
|
|
private SwitchCompat swAutoImportant;
|
|
|
|
|
private SwitchCompat swResetSnooze;
|
|
|
|
|
private SwitchCompat swAutoBlockSender;
|
|
|
|
@ -128,7 +129,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
"seen_delay",
|
|
|
|
|
"autoclose", "onclose", "autoclose_unseen", "autoclose_send", "collapse_marked",
|
|
|
|
|
"undo_timeout",
|
|
|
|
|
"autoread", "flag_snoozed", "flag_unsnoozed", "autounflag", "auto_important", "reset_importance",
|
|
|
|
|
"autoread", "flag_snoozed", "flag_unsnoozed", "autounflag", "important_unsnoozed", "auto_important", "reset_importance",
|
|
|
|
|
"reset_snooze", "auto_block_sender", "auto_hide_answer", "swipe_reply",
|
|
|
|
|
"move_thread_all", "move_thread_sent", "swipe_trash_all", "gmail_delete_all",
|
|
|
|
|
"default_folder"
|
|
|
|
@ -189,6 +190,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
swPhotoPicker = view.findViewById(R.id.swPhotoPicker);
|
|
|
|
|
swFlagSnoozed = view.findViewById(R.id.swFlagSnoozed);
|
|
|
|
|
swFlagUnsnoozed = view.findViewById(R.id.swFlagUnsnoozed);
|
|
|
|
|
swImportantUnsnoozed = view.findViewById(R.id.swImportantUnsnoozed);
|
|
|
|
|
swAutoImportant = view.findViewById(R.id.swAutoImportant);
|
|
|
|
|
swResetSnooze = view.findViewById(R.id.swResetSnooze);
|
|
|
|
|
swAutoBlockSender = view.findViewById(R.id.swAutoBlockSender);
|
|
|
|
@ -571,6 +573,13 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swImportantUnsnoozed.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("important_unsnoozed", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swAutoImportant.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -801,6 +810,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
|
|
|
|
|
swFlagSnoozed.setChecked(prefs.getBoolean("flag_snoozed", false));
|
|
|
|
|
swFlagUnsnoozed.setChecked(prefs.getBoolean("flag_unsnoozed", false));
|
|
|
|
|
swFlagUnsnoozed.setEnabled(swFlagSnoozed.isChecked());
|
|
|
|
|
swImportantUnsnoozed.setChecked(prefs.getBoolean("important_unsnoozed", false));
|
|
|
|
|
swAutoImportant.setChecked(prefs.getBoolean("auto_important", false));
|
|
|
|
|
swResetSnooze.setChecked(prefs.getBoolean("reset_snooze", true));
|
|
|
|
|
swAutoBlockSender.setChecked(prefs.getBoolean("auto_block_sender", true));
|
|
|
|
|