mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
Bypass external rw check in the proper location
This commit is contained in:
@@ -24,12 +24,12 @@ class OpenChangelogEvent(val item: Repo) : ViewEventWithScope(), ContextExecutor
|
||||
}
|
||||
|
||||
class PermissionEvent(
|
||||
private val permissions: List<String>,
|
||||
private val permission: String,
|
||||
private val callback: (Boolean) -> Unit
|
||||
) : ViewEvent(), ActivityExecutor {
|
||||
|
||||
override fun invoke(activity: BaseUIActivity<*, *>) =
|
||||
activity.withPermissions(*permissions.toTypedArray()) {
|
||||
activity.withPermission(permission) {
|
||||
onSuccess {
|
||||
callback(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user