Downloaded games newest first on the desktop too; the games list counts a download as it goes
- Desktop: in a database from Lichess and Chess.com the «№» order is the time the games were played, the most recent first (as on the phone); a click turns it around. - chess-core GameEntry::played_at: the shared key (UTCDate+UTCTime, else Date). - Android: over a downloaded database's games list the number of games grows with its download (it stood still until the end), as on the list of databases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
44e8d5b763
commit
e8deec7b27
4 changed files with 67 additions and 10 deletions
|
|
@ -157,6 +157,10 @@ fun GamesScreen(db: String, onBack: () -> Unit, onGame: (place: Int, query: Stri
|
|||
Text(
|
||||
if (query.isNotEmpty() && found != null) {
|
||||
stringResource(R.string.found_of, groupDigits(found), groupDigits(n))
|
||||
} else if (download?.state?.running == true) {
|
||||
// The games come as the download goes, as on the list of
|
||||
// databases; the list itself is read again when it ends.
|
||||
stringResource(R.string.online_downloading, groupDigits((entry?.games ?: n) + download.state.added.toInt()))
|
||||
} else {
|
||||
pluralStringResource(R.plurals.games_count, n, groupDigits(n))
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue