From 243dfcabfe3b8e3348508c7d2e5a29cc51ef1a1b Mon Sep 17 00:00:00 2001 From: TinyHai <34483077+TinyHai@users.noreply.github.com> Date: Wed, 5 Jun 2024 01:14:40 +0800 Subject: [PATCH] manager: fix update no response when changelog is empty (#1786) --- .../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,