diff --git a/app/src/main/kotlin/com/sanmer/mrepo/model/module/LocalModule.kt b/app/src/main/kotlin/com/sanmer/mrepo/model/module/LocalModule.kt index b6d522b3..d2fc033d 100644 --- a/app/src/main/kotlin/com/sanmer/mrepo/model/module/LocalModule.kt +++ b/app/src/main/kotlin/com/sanmer/mrepo/model/module/LocalModule.kt @@ -14,7 +14,7 @@ data class LocalModule( ) { var state by mutableStateOf(State.DISABLE) - val versionDisplay get() = if ("(${versionCode})" in version) { + val versionDisplay get() = if ("$versionCode" in version) { version } else { "$version (${versionCode})" diff --git a/app/src/main/kotlin/com/sanmer/mrepo/model/module/OnlineModule.kt b/app/src/main/kotlin/com/sanmer/mrepo/model/module/OnlineModule.kt index 9135e498..c9f081db 100644 --- a/app/src/main/kotlin/com/sanmer/mrepo/model/module/OnlineModule.kt +++ b/app/src/main/kotlin/com/sanmer/mrepo/model/module/OnlineModule.kt @@ -21,7 +21,7 @@ data class OnlineModule( "" } - val versionDisplay get() = if ("(${versionCode})" in version) { + val versionDisplay get() = if ("$versionCode" in version) { version } else { "$version (${versionCode})"