Several small fixes (#1455)

## Description
- Fix crash on license info page for release builds (#1437)
- Fix configuring which ratings to show by default (#1407)
- When re-ordering nav drawer items, ensure the one that was just moved
is always visible (#886 )
- Fix app losing focus when switching between list layout types (#1428)
- If the version doesn't have any additional commits, don't show the git
hash info (ie `v0.6.4-0-gabc1234` shows as `v0.6.4`)
- Adds tests for Version comparisons & toString

### Related issues
See above

### Testing
Emulator

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-05-25 13:27:04 -04:00 • committed by GitHub
parent cb853b2db8
commit ebcc2f324a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 128 additions and 6 deletions

View file

@ -70,7 +70,7 @@ data class Version(
private fun compareNumCommits(version: Version): Int = (this.numCommits ?: 0) - (version.numCommits ?: 0)
override fun toString(): String =
if (numCommits != null && hash != null) {
if (numCommits != null && numCommits > 0 && hash != null) {
"v$major.$minor.$patch-$numCommits-g$hash"
} else {
"v$major.$minor.$patch"