mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-17 06:26:24 +08:00
feat: Sort bundles by patch count
This commit is contained in:
@ -19,13 +19,17 @@ fun BundleListScreen(
|
||||
selectedSources: SnapshotStateList<PatchBundleSource>,
|
||||
bundlesSelectable: Boolean,
|
||||
) {
|
||||
val sortedSources = sources.sortedBy {
|
||||
it.state.value.patchBundleOrNull()?.patches?.size
|
||||
}
|
||||
|
||||
LazyColumnWithScrollbar(
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Top,
|
||||
) {
|
||||
items(
|
||||
sources,
|
||||
sortedSources,
|
||||
key = { it.uid }
|
||||
) { source ->
|
||||
BundleItem(
|
||||
|
Reference in New Issue
Block a user