perf: 记录 shizuku 授权错误日志

This commit is contained in:
lisonge 2023-12-08 23:55:44 +08:00
parent ba4c60dcde
commit 7ad5917f71

View File

@ -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可能没有运行")
}
})