diff --git a/app/src/main/java/app/revanced/manager/ui/model/BundleInfo.kt b/app/src/main/java/app/revanced/manager/ui/model/BundleInfo.kt index efdb4a17..0cd3b739 100644 --- a/app/src/main/java/app/revanced/manager/ui/model/BundleInfo.kt +++ b/app/src/main/java/app/revanced/manager/ui/model/BundleInfo.kt @@ -11,6 +11,7 @@ import kotlinx.coroutines.flow.map */ data class BundleInfo( val name: String, + val version: String?, val uid: Int, val compatible: List, val incompatible: List, @@ -78,7 +79,7 @@ data class BundleInfo( targetList.add(it) } - BundleInfo(source.getName(), source.uid, compatible, incompatible, universal) + BundleInfo(source.getName(), source.currentVersion(), source.uid, compatible, incompatible, universal) } } diff --git a/app/src/main/java/app/revanced/manager/ui/screen/PatchesSelectorScreen.kt b/app/src/main/java/app/revanced/manager/ui/screen/PatchesSelectorScreen.kt index 094757d2..7548b8ad 100644 --- a/app/src/main/java/app/revanced/manager/ui/screen/PatchesSelectorScreen.kt +++ b/app/src/main/java/app/revanced/manager/ui/screen/PatchesSelectorScreen.kt @@ -405,7 +405,19 @@ fun PatchesSelectorScreen( ) } }, - text = { Text(bundle.name) }, + text = { + Column(horizontalAlignment = Alignment.CenterHorizontally) { + Text( + text = bundle.name, + style = MaterialTheme.typography.bodyMedium + ) + Text( + text = bundle.version!!, + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } + }, selectedContentColor = MaterialTheme.colorScheme.primary, unselectedContentColor = MaterialTheme.colorScheme.onSurfaceVariant )