Ascending order for date-based sorting in queue (#7683)

This commit is contained in:
dominikfill 2025-03-06 17:30:26 +01:00 committed by GitHub
parent 1ac7c6f728
commit 7fd9323da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -567,9 +567,13 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte
@Override
protected void onAddItem(int title, SortOrder ascending, SortOrder descending, boolean ascendingIsDefault) {
if (ascending != SortOrder.EPISODE_FILENAME_A_Z && ascending != SortOrder.SIZE_SMALL_LARGE) {
super.onAddItem(title, ascending, descending, ascendingIsDefault);
if (ascending == SortOrder.EPISODE_FILENAME_A_Z || ascending == SortOrder.SIZE_SMALL_LARGE) {
return;
}
if (ascending == SortOrder.DATE_OLD_NEW || ascending == SortOrder.SMART_SHUFFLE_OLD_NEW) {
ascendingIsDefault = true;
}
super.onAddItem(title, ascending, descending, ascendingIsDefault);
}
@Override