From bf04fa134bf8ff4030fcc2ae541a4d10dac936be Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 29 May 2022 11:14:39 -0700 Subject: [PATCH] Indicate debug builds Close #5859 --- .../main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt index 2ba65f39b..f03e00f5a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt @@ -36,8 +36,6 @@ class HomeViewModel( val magiskTitleBarrierIds = intArrayOf(R.id.home_magisk_icon, R.id.home_magisk_title, R.id.home_magisk_button) - val magiskDetailBarrierIds = - intArrayOf(R.id.home_magisk_installed_version, R.id.home_device_details_ramdisk) val appTitleBarrierIds = intArrayOf(R.id.home_manager_icon, R.id.home_manager_title, R.id.home_manager_button) @@ -70,7 +68,8 @@ class HomeViewModel( val managerInstalledVersion get() = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})" + - Info.stub?.let { " (${it.version})" }.orEmpty() + Info.stub?.let { " (${it.version})" }.orEmpty() + + if (BuildConfig.DEBUG) " (D)" else "" @get:Bindable var stateManagerProgress = 0