Separate sort order unified folders

This commit is contained in:
M66B 2021-11-22 08:57:17 +01:00
parent f2daedcf7d
commit edb7ab16ac
2 changed files with 12 additions and 1 deletions

View File

@ -543,6 +543,12 @@ public class ApplicationEx extends Application
repairFolders(context);
else if (version < 1772)
editor.remove("conversation_actions");
else if (version < 1781) {
if (prefs.contains("ascending_list")) {
boolean ascending = prefs.getBoolean("ascending_list", false);
editor.putBoolean("ascending_unified", ascending);
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
editor.remove("background_service");

View File

@ -6214,7 +6214,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
static String getSortOrder(Context context, AdapterMessage.ViewType viewType, String type) {
return (viewType == AdapterMessage.ViewType.THREAD ? "ascending_thread" : "ascending_list");
if (viewType == AdapterMessage.ViewType.THREAD)
return "ascending_thread";
else if (viewType == AdapterMessage.ViewType.UNIFIED)
return "ascending_unified";
else
return "ascending_list";
}
static String getFilter(Context context, String name, AdapterMessage.ViewType viewType, String type) {