detekt: cleanup code

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt
This commit is contained in:
Cuong Tran 2024-03-10 16:41:29 +07:00 committed by Cuong M. Tran
parent 30ab6153ca
commit a8f617faae
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -231,7 +231,9 @@ fun FeedAddSearchDialog(
confirmButton = {
TextButton(
onClick = { onClickAdd(source, selected?.let { savedSearches[it] }) },
// KMK -->
enabled = selected != null,
// KMK <--
) {
Text(text = stringResource(MR.strings.action_ok))
}
@ -244,7 +246,7 @@ fun <T> RadioSelector(
options: ImmutableList<T>,
selected: Int?,
optionStrings: ImmutableList<String> = remember { options.map { it.toString() }.toImmutableList() },
onSelectOption: (Int) -> Unit = {},
onSelectOption: (Int) -> Unit /* KMK --> */ = {} /* KMK <-- */,
) {
Column(Modifier.verticalScroll(rememberScrollState())) {
optionStrings.forEachIndexed { index, option ->