add KMK comment
This commit is contained in:
parent
e9807b2131
commit
fdefea9af2
3 changed files with 8 additions and 0 deletions
|
|
@ -41,11 +41,13 @@ fun BrowseSourceSimpleToolbar(
|
|||
actions = persistentListOf(
|
||||
AppBar.Action(
|
||||
title = stringResource(MR.strings.action_display_mode),
|
||||
// KMK -->
|
||||
icon = if (displayMode == LibraryDisplayMode.List) {
|
||||
Icons.AutoMirrored.Filled.ViewList
|
||||
} else {
|
||||
Icons.Filled.ViewModule
|
||||
},
|
||||
// KMK <--
|
||||
onClick = { selectingDisplayMode = true },
|
||||
),
|
||||
// KMK -->
|
||||
|
|
@ -57,6 +59,7 @@ fun BrowseSourceSimpleToolbar(
|
|||
expanded = selectingDisplayMode,
|
||||
onDismissRequest = { selectingDisplayMode = false },
|
||||
) {
|
||||
// KMK -->
|
||||
RadioMenuItem(
|
||||
text = { Text(text = stringResource(MR.strings.action_display_comfortable_grid)) },
|
||||
isChecked = displayMode == LibraryDisplayMode.ComfortableGrid,
|
||||
|
|
@ -78,6 +81,7 @@ fun BrowseSourceSimpleToolbar(
|
|||
selectingDisplayMode = false
|
||||
onDisplayModeChange(LibraryDisplayMode.List)
|
||||
}
|
||||
// KMK <--
|
||||
}
|
||||
},
|
||||
scrollBehavior = scrollBehavior,
|
||||
|
|
|
|||
|
|
@ -31,10 +31,12 @@ fun MangaInfoButtons(
|
|||
}
|
||||
}
|
||||
if (showRecommendsButton) {
|
||||
// KMK -->
|
||||
OutlinedButtonWithArrow(
|
||||
text = stringResource(SYMR.strings.az_recommends),
|
||||
onClick = onRecommendClicked,
|
||||
)
|
||||
// KMK <--
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ class GetApplicationRelease(
|
|||
}
|
||||
}
|
||||
|
||||
// KMK --.
|
||||
internal fun List<Release>.getLatest(): Release? {
|
||||
val checksumRegex = """---(\R|.)*Checksums(\R|.)*""".toRegex()
|
||||
|
||||
|
|
@ -158,3 +159,4 @@ internal fun List<Release>.getLatest(): Release? {
|
|||
}
|
||||
)
|
||||
}
|
||||
// KMK <--
|
||||
|
|
|
|||
Loading…
Reference in a new issue