QuickPermissions / QuickPermissions-Kotlin

The most easiest way to handle Android Runtime Permissions in Kotlin
Apache License 2.0
313 stars 35 forks source link

permissionsDeniedMethod is never called #6

Closed juancruzgs closed 5 years ago

juancruzgs commented 5 years ago

When handleRationale = false and handlePermanentlyDenied = false the method to handle denied permissions is never called. When I deny the permission in the Android dialog, my callback is never called.

This is my code:

val options = QuickPermissionsOptions(
    handleRationale = false,
    handlePermanentlyDenied = false,
    permissionsDeniedMethod = { 
        // This method is never called
    }
)

activity.runWithPermissions(Manifest.permission.ACCESS_FINE_LOCATION, options = options) {
    // Works Ok
}
kirtan403 commented 5 years ago

This issue is now fixed

kirtan403 commented 5 years ago

New version released with fix: https://github.com/QuickPermissions/QuickPermissions-Kotlin/releases/tag/0.4.0