Minor cleanup 2: Electric Boogaloo

- Reword pins on top setting
- Make "Latest" button style match old UI
- Sort sources by name
This commit is contained in:
arkon
2022-04-24 15:04:00 -04:00
parent 0ec9496d26
commit 08e63e5fab
7 changed files with 45 additions and 50 deletions

View File

@@ -44,7 +44,7 @@ class SourcePresenter(
}
}
private suspend fun collectLatestSources(sources: List<Source>) {
private fun collectLatestSources(sources: List<Source>) {
val map = TreeMap<String, MutableList<Source>> { d1, d2 ->
// Catalogues without a lang defined will be placed at the end
when {

View File

@@ -22,13 +22,12 @@ class SettingsBrowseController : SettingsController() {
titleRes = R.string.browse
preferenceCategory {
titleRes = R.string.pref_category_general
titleRes = R.string.label_sources
switchPreference {
bindTo(preferences.pinsOnTop())
titleRes = R.string.pref_move_on_top
summaryRes = R.string.pref_move_on_top_summary
defaultValue = true
bindTo(preferences.duplicatePinnedSources())
titleRes = R.string.pref_duplicate_pinned_sources
summaryRes = R.string.pref_duplicate_pinned_sources_summary
}
}