diff --git a/app/src/main/java/io/legado/app/help/permission/RequestManager.kt b/app/src/main/java/io/legado/app/help/permission/RequestManager.kt index e7f0eca52..ba4a339da 100644 --- a/app/src/main/java/io/legado/app/help/permission/RequestManager.kt +++ b/app/src/main/java/io/legado/app/help/permission/RequestManager.kt @@ -39,7 +39,7 @@ internal object RequestManager : OnPermissionsResultCallback { it.push(request) } - if (isCurrentRequestInvalid) { + if (!it.empty() && isCurrentRequestInvalid) { this.request = it.pop() handler.post(requestRunnable) }