diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsBehavior.java b/app/src/main/java/eu/faircode/email/FragmentOptionsBehavior.java
index 3628f8ad6a..87178073b8 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptionsBehavior.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptionsBehavior.java
@@ -96,10 +96,10 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
private Spinner spUndoTimeout;
private SwitchCompat swCollapseMultiple;
private SwitchCompat swAutoRead;
- private SwitchCompat swFlagSnoozed;
private SwitchCompat swAutoUnflag;
- private SwitchCompat swAutoImportant;
private SwitchCompat swResetImportance;
+ private SwitchCompat swFlagSnoozed;
+ private SwitchCompat swAutoImportant;
private SwitchCompat swResetSnooze;
private SwitchCompat swAutoBlockSender;
private SwitchCompat swSwipeReply;
@@ -167,10 +167,10 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
swCollapseMarked = view.findViewById(R.id.swCollapseMarked);
spUndoTimeout = view.findViewById(R.id.spUndoTimeout);
swAutoRead = view.findViewById(R.id.swAutoRead);
- swFlagSnoozed = view.findViewById(R.id.swFlagSnoozed);
swAutoUnflag = view.findViewById(R.id.swAutoUnflag);
- swAutoImportant = view.findViewById(R.id.swAutoImportant);
swResetImportance = view.findViewById(R.id.swResetImportance);
+ swFlagSnoozed = view.findViewById(R.id.swFlagSnoozed);
+ swAutoImportant = view.findViewById(R.id.swAutoImportant);
swResetSnooze = view.findViewById(R.id.swResetSnooze);
swAutoBlockSender = view.findViewById(R.id.swAutoBlockSender);
swSwipeReply = view.findViewById(R.id.swSwipeReply);
@@ -490,31 +490,31 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
}
});
- swFlagSnoozed.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ swAutoUnflag.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
- prefs.edit().putBoolean("flag_snoozed", checked).apply();
+ prefs.edit().putBoolean("autounflag", checked).apply();
}
});
- swAutoUnflag.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ swResetImportance.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
- prefs.edit().putBoolean("autounflag", checked).apply();
+ prefs.edit().putBoolean("reset_importance", checked).apply();
}
});
- swAutoImportant.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ swFlagSnoozed.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
- prefs.edit().putBoolean("auto_important", checked).apply();
+ prefs.edit().putBoolean("flag_snoozed", checked).apply();
}
});
- swResetImportance.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ swAutoImportant.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
- prefs.edit().putBoolean("reset_importance", checked).apply();
+ prefs.edit().putBoolean("auto_important", checked).apply();
}
});
@@ -648,10 +648,10 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
}
swAutoRead.setChecked(prefs.getBoolean("autoread", false));
- swFlagSnoozed.setChecked(prefs.getBoolean("flag_snoozed", false));
swAutoUnflag.setChecked(prefs.getBoolean("autounflag", false));
- swAutoImportant.setChecked(prefs.getBoolean("auto_important", false));
swResetImportance.setChecked(prefs.getBoolean("reset_importance", false));
+ swFlagSnoozed.setChecked(prefs.getBoolean("flag_snoozed", false));
+ swAutoImportant.setChecked(prefs.getBoolean("auto_important", false));
swResetSnooze.setChecked(prefs.getBoolean("reset_snooze", true));
swAutoBlockSender.setChecked(prefs.getBoolean("auto_block_sender", true));
swSwipeReply.setChecked(prefs.getBoolean("swipe_reply", false));
diff --git a/app/src/main/res/layout/fragment_options_behavior.xml b/app/src/main/res/layout/fragment_options_behavior.xml
index 6da21433ed..61f73e01e6 100644
--- a/app/src/main/res/layout/fragment_options_behavior.xml
+++ b/app/src/main/res/layout/fragment_options_behavior.xml
@@ -681,47 +681,84 @@
app:switchPadding="12dp" />
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5cf7e0e0a9..d6aba3903b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -649,10 +649,10 @@
Show quick actions when messages are selected
Always go back to the folder list from a message list
Automatically mark messages read on moving messages
- Automatically add star on snoozing messages
Automatically remove stars from messages on moving messages
- Automatically make starred messages important
Reset importance on moving messages
+ Automatically add star on snoozing messages
+ Automatically make starred messages important
Cancel snooze on moving messages
Automatically block the sender when reporting spam
Swipe expanded messages to the right to reply