Default compact folders

pull/194/merge
M66B 3 years ago
parent 9d2879a03c
commit 116fadfe88

@ -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);

Loading…
Cancel
Save