mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Default compact folders
This commit is contained in:
@@ -298,8 +298,10 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
||||
Configuration config = getResources().getConfiguration();
|
||||
|
||||
// Default enable compact mode for smaller screens
|
||||
if (!config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_LARGE))
|
||||
if (!config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_LARGE)) {
|
||||
editor.putBoolean("compact", true);
|
||||
//editor.putBoolean("compact_folders", true);
|
||||
}
|
||||
|
||||
// Default disable landscape columns for small screens
|
||||
if (!config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_NORMAL)) {
|
||||
|
||||
@@ -574,6 +574,9 @@ public class ApplicationEx extends Application
|
||||
}
|
||||
|
||||
editor.remove("monospaced");
|
||||
} else if (version < 1837) {
|
||||
if (!prefs.contains("compact_folders"))
|
||||
editor.putBoolean("compact_folders", false);
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
|
||||
|
||||
@@ -145,7 +145,7 @@ public class FragmentFolders extends FragmentBase {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
cards = prefs.getBoolean("cards", true);
|
||||
dividers = prefs.getBoolean("dividers", true);
|
||||
compact = prefs.getBoolean("compact_folders", false);
|
||||
compact = prefs.getBoolean("compact_folders", true);
|
||||
show_hidden = false; // prefs.getBoolean("hidden_folders", false);
|
||||
show_flagged = prefs.getBoolean("flagged_folders", false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user