Separate sort / unified

This commit is contained in:
M66B 2021-11-22 12:53:53 +01:00
parent a8745ba7e1
commit e0a9579b9c
2 changed files with 8 additions and 1 deletions

View File

@ -544,6 +544,10 @@ public class ApplicationEx extends Application
else if (version < 1772)
editor.remove("conversation_actions");
else if (version < 1781) {
if (prefs.contains("sort")) {
String sort = prefs.getString("sort", "time");
editor.putString("sort_unified", sort);
}
if (prefs.contains("ascending_list")) {
boolean ascending = prefs.getBoolean("ascending_list", false);
editor.putBoolean("ascending_unified", ascending);

View File

@ -6248,7 +6248,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
static String getSort(Context context, AdapterMessage.ViewType viewType, String type) {
return "sort";
if (viewType == AdapterMessage.ViewType.UNIFIED)
return "sort_unified";
else
return "sort";
}
static String getSortOrder(Context context, AdapterMessage.ViewType viewType, String type) {