Skip to content

Commit

Permalink
perf: 记录 shizuku 授权错误日志
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 8, 2023
1 parent ba4c60d commit 7ad5917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/kotlin/li/songe/gkd/ui/DebugPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,6 +110,7 @@ fun DebugPage() {
try {
Shizuku.requestPermission(Activity.RESULT_OK)
} catch (e: Exception) {
LogUtils.d("Shizuku授权错误", e)
ToastUtils.showShort("Shizuku可能没有运行")
}
})
Expand Down

0 comments on commit 7ad5917

Please sign in to comment.