feat(android): сортировать весь список и добавить обратный порядок
Выбор порядка раньше действовал только на серверные альбомы: карточки устройства были закреплены сверху и не сортировались, а направления не было вовсе. - порядок применяется ко всему списку: карточки устройства и серверные упорядочиваются вместе единым компаратором - альбом устройства получает дату последнего изменения (самый свежий элемент, как при выборе обложки), поэтому «по времени изменения» осмыслен и для него - обратный порядок инвертирует выбранный ключ; карточка без даты остаётся последней в любом направлении - пара (ключ, направление) хранится в DataStore за узким портом AlbumSortPreference; меню сортировки получило переключатель «Обратный порядок» - README: раздел Album sorting обновлён
This commit is contained in:
@@ -188,6 +188,17 @@ server album shows `источник: <device albums>`.
|
||||
back from the server (space permitting); declining keeps previews only. Unlinking
|
||||
an album drops the local link and never deletes photos on the server.
|
||||
|
||||
## Album sorting
|
||||
|
||||
The album list can order every card by most recent change (the default), by title,
|
||||
or by the number of items, and the chosen key can be reversed from the same menu.
|
||||
Cards of device albums and server albums are ordered together, so one ordering rule
|
||||
covers the whole list; a device album's change date is the newest item it holds,
|
||||
which makes the default key meaningful for it as well. The choice — key and
|
||||
direction — is made from the sort control in the top bar and is remembered on the
|
||||
device in DataStore, alongside the other display settings; it is not synced, so each
|
||||
device keeps its own ordering.
|
||||
|
||||
## Testing
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user