From 0d1ed2906793f1684b793597d315e33252c6ec53 Mon Sep 17 00:00:00 2001 From: TinyHai <1035908357@qq.com> Date: Sat, 1 Jun 2024 14:34:07 +0800 Subject: [PATCH] manager: fix update no response when changelog is empty --- .../app/src/main/java/me/weishu/kernelsu/ui/screen/Home.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 7f1d483f14bf..6ecf53a8974e 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 @@ -128,7 +128,9 @@ fun UpdateCard() { message = stringResource(id = R.string.new_version_available).format(newVersionCode), MaterialTheme.colorScheme.outlineVariant ) { - if (changelog.isNotEmpty()) { + if (changelog.isEmpty()) { + uriHandler.openUri(newVersionUrl) + } else { updateDialog.showConfirm( title = title, content = changelog,