diff --git a/FAQ.md b/FAQ.md
index 637a6eeb1b..da5a8f56a4 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -216,11 +216,12 @@ In the three dot overflow menu you can enable or disable or select:
In the display section of the advanced settings you can enable or disable:
-* *unified inbox*: to disable the unified inbox and to list the folders selected for the unified inbox instead
-* *conversation threading*: to disable conversation threading and to show individual messages instead
-* *show contact photos*: to hide contact photos
-* *show identicons*: to show generated contact avatars
-* *show message preview*: to show two lines of the message text
+* *Unified inbox*: to disable the unified inbox and to list the folders selected for the unified inbox instead
+* *Group by date*: show date header above messages with the same date
+* *Conversation threading*: to disable conversation threading and to show individual messages instead
+* *Show contact photos*: to hide contact photos
+* *Show identicons*: to show generated contact avatars
+* *Show message preview*: to show two lines of the message text
* *Show address details by default*: to collapse the addresses section by default
If the list of addresses is long, you can collapse the addresses section with the *less* icon at the top of the addresses section.
diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java
index d6bff49abe..2ed4e87d16 100644
--- a/app/src/main/java/eu/faircode/email/ActivityBase.java
+++ b/app/src/main/java/eu/faircode/email/ActivityBase.java
@@ -40,11 +40,6 @@ import androidx.fragment.app.Fragment;
abstract class ActivityBase extends AppCompatActivity implements SharedPreferences.OnSharedPreferenceChangeListener {
private boolean contacts;
- private static String[] SETTINGS_RESTART = new String[]{
- "unified", "threading", "avatars", "identicons", "preview", "addresses",
- "pull", "actionbar", "autoclose", "autonext", "confirm", "debug"
- };
-
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.i("Create " + this.getClass().getName() + " version=" + BuildConfig.VERSION_NAME);
@@ -115,7 +110,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
finish();
if (this.getClass().equals(ActivitySetup.class))
startActivity(getIntent());
- } else if (!this.getClass().equals(ActivitySetup.class) && Arrays.asList(SETTINGS_RESTART).contains(key))
+ } else if (!this.getClass().equals(ActivitySetup.class) &&
+ Arrays.asList(FragmentOptions.OPTIONS_RESTART).contains(key))
finish();
}
diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java
index 10e3482b36..43ea17382a 100644
--- a/app/src/main/java/eu/faircode/email/AdapterMessage.java
+++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java
@@ -118,9 +118,11 @@ public class AdapterMessage extends RecyclerView.Adapter
+
+
Browse messages on the server
Unified inbox
+ Group by date
Conversation threading
Show contact photos
Show identicons