Add stub version to apk comment

This commit is contained in:
vvb2060
2023-02-12 17:40:28 +08:00
committed by John Wu
parent a1a87c9956
commit 5520f0fbf7
5 changed files with 15 additions and 17 deletions
@@ -67,7 +67,6 @@ class HomeViewModel(
val managerInstalledVersion
get() = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})" +
Info.stub?.let { " (${it.version})" }.orEmpty() +
if (BuildConfig.DEBUG) " (D)" else ""
@get:Bindable
@@ -92,7 +91,7 @@ class HomeViewModel(
val isDebug = Config.updateChannel == Config.Value.DEBUG_CHANNEL
managerRemoteVersion =
("${magisk.version} (${magisk.versionCode}) (${stub.versionCode})" +
("${magisk.version} (${magisk.versionCode})" +
if (isDebug) " (D)" else "").asText()
} ?: run {
appState = State.INVALID