refactors changelog and version handling, fixes crash on startup due to version mismatch.

This commit is contained in:
octoshrimpy
2024-11-02 15:11:20 -04:00
parent b2c5aab7d5
commit 2d902150b1
8 changed files with 74 additions and 44 deletions
@@ -49,6 +49,11 @@ class ChangelogAdapter(private val context: Context) : QkAdapter<ChangelogAdapte
changes += changelog.fixed.map { change -> ChangelogItem(1, "• $change") }
changes += ChangelogItem(0, "")
}
if (changelog.removed.isNotEmpty()) {
changes += ChangelogItem(0, context.getString(R.string.changelog_removed))
changes += changelog.removed.map { change -> ChangelogItem(1, "• $change") }
changes += ChangelogItem(0, "")
}
data = changes
}