From 6b18dbe3a1c860e403ee60bdc9a89b92227e89fb Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:16:44 +0800 Subject: [PATCH] manager: failure mode dummy demo --- .../java/me/weishu/kernelsu/ui/screen/Home.kt | 21 +++---------------- manager/app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt index 0fa3b34a8d4e..71ddc63d3e57 100644 --- a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt +++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt @@ -283,31 +283,16 @@ private fun StatusCard( } } - kernelVersion.isGKI() -> { - Icon(Icons.Outlined.Warning, stringResource(R.string.home_not_installed)) - Column(Modifier.padding(start = 20.dp)) { - Text( - text = stringResource(R.string.home_not_installed), - style = MaterialTheme.typography.titleMedium - ) - Spacer(Modifier.height(4.dp)) - Text( - text = stringResource(R.string.home_click_to_install), - style = MaterialTheme.typography.bodyMedium - ) - } - } - else -> { - Icon(Icons.Outlined.Block, stringResource(R.string.home_unsupported)) + Icon(Icons.Outlined.Block, stringResource(R.string.home_failure)) Column(Modifier.padding(start = 20.dp)) { Text( - text = stringResource(R.string.home_unsupported), + text = stringResource(R.string.home_failure), style = MaterialTheme.typography.titleMedium ) Spacer(Modifier.height(4.dp)) Text( - text = stringResource(R.string.home_unsupported_reason), + text = stringResource(R.string.home_failure_reason), style = MaterialTheme.typography.bodyMedium ) } diff --git a/manager/app/src/main/res/values/strings.xml b/manager/app/src/main/res/values/strings.xml index 85ce47da2d8a..ac9b19e4f5ea 100644 --- a/manager/app/src/main/res/values/strings.xml +++ b/manager/app/src/main/res/values/strings.xml @@ -10,6 +10,8 @@ Modules: %d Unsupported KernelSU only supports GKI kernels now + !kenrelsu || != size/hash + Failure! ask your kernel dev about it. Kernel Manager version Fingerprint