mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
perf: 记录 shizuku 授权错误日志
This commit is contained in:
parent
ba4c60dcde
commit
7ad5917f71
|
@ -39,6 +39,7 @@ import androidx.compose.ui.unit.dp
|
|||
import androidx.compose.ui.window.Dialog
|
||||
import androidx.core.app.NotificationManagerCompat
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.blankj.utilcode.util.LogUtils
|
||||
import com.blankj.utilcode.util.ToastUtils
|
||||
import com.dylanc.activityresult.launcher.launchForResult
|
||||
import com.ramcosta.composedestinations.annotation.Destination
|
||||
|
@ -109,6 +110,7 @@ fun DebugPage() {
|
|||
try {
|
||||
Shizuku.requestPermission(Activity.RESULT_OK)
|
||||
} catch (e: Exception) {
|
||||
LogUtils.d("Shizuku授权错误", e)
|
||||
ToastUtils.showShort("Shizuku可能没有运行")
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user