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:
parent
30ab6153ca
commit
a8f617faae
1 changed files with 3 additions and 1 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue