From cc9670f03a39b529b51e8e5bf068eddd21ab541f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Wed, 6 Nov 2024 21:55:55 +0800 Subject: [PATCH] feat: add faq redirect url --- app/src/main/kotlin/li/songe/gkd/MainActivity.kt | 2 +- app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/li/songe/gkd/MainActivity.kt b/app/src/main/kotlin/li/songe/gkd/MainActivity.kt index 1cf70dc..6948dab 100644 --- a/app/src/main/kotlin/li/songe/gkd/MainActivity.kt +++ b/app/src/main/kotlin/li/songe/gkd/MainActivity.kt @@ -236,7 +236,7 @@ private fun ShizukuErrorDialog(stateFlow: MutableStateFlow) { } else { TextButton(onClick = { stateFlow.value = false - app.openUri("https://shizuku.rikka.app/") + app.openUri("https://gkd.li?r=4") }) { Text(text = "去下载") } diff --git a/app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt b/app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt index c1cac5b..2e5672d 100644 --- a/app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt +++ b/app/src/main/kotlin/li/songe/gkd/ui/AuthA11yPage.kt @@ -239,6 +239,16 @@ fun AuthA11yPage() { .padding(4.dp) ) } + Spacer(modifier = Modifier.height(8.dp)) + Text( + modifier = Modifier + .clickable { + context.openUri("https://gkd.li/?r=3") + }, + text = "运行后授权失败?", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.primary, + ) } }, confirmButton = {