Skip to content

Commit

Permalink
Automatic Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Aug 25, 2022
1 parent cfdeb70 commit 0015bcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Expand Up @@ -150,7 +150,7 @@ class ExtensionsScreenViewModel @Inject constructor(
.mapValues {
it.value
.sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER, Extension::name))
.map (ExtensionUI::ExtensionItem)
.map(ExtensionUI::ExtensionItem)
}
.toList()
.sortedWith(
Expand Down
Expand Up @@ -48,7 +48,6 @@ class SourceHomeScreenViewModel @Inject constructor(
it.lang in languages || it.id == Source.LOCAL_SOURCE_ID
}
.groupBy(Source::displayLang)

.mapValues {
it.value.sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER, Source::name))
.map(SourceUI::SourceItem)
Expand Down Expand Up @@ -115,5 +114,5 @@ class SourceHomeScreenViewModel @Inject constructor(

sealed class SourceUI {
data class Header(val header: String) : SourceUI()
data class SourceItem(val source: Source): SourceUI()
}
data class SourceItem(val source: Source) : SourceUI()
}
Expand Up @@ -163,7 +163,6 @@ fun WideSourcesMenu(
onSourceClicked = onAddSource
)
}

}
}
VerticalScrollbar(
Expand Down Expand Up @@ -214,6 +213,7 @@ fun WideSourceItem(
}
}
}

@Composable
fun ThinSourcesMenu(
sources: List<SourceUI>,
Expand Down Expand Up @@ -247,7 +247,6 @@ fun ThinSourcesMenu(
onSourceClicked = onAddSource
)
}

}
}
VerticalScrollbar(
Expand Down

0 comments on commit 0015bcc

Please sign in to comment.