Does not go into settings
Opened this issue · 1 comments
KORuL commented
Method
private fun permissionsPermanentlyDenied (req: QuickPermissionsRequest) {
// this will be permanently
// denied. Handle it your way.
AlertDialog.Builder (this)
.setTitle ("Permissions Denied")
.setMessage (getString (R.string.permanentlyDeniedMessage_never))
.setPositiveButton ("App Settings") {dialog, which -> req.openAppSettings ()}
.setNegativeButton ("Cancel") {dialog, which -> req.cancel ()}
.setCancelable (false)
.show ()
}
Causes a crash, does not go into the settings on the Google Pixel 2 Android Q emulator
And if set permission some of WRITE_SETTINGS - it's immediately calls this mehod permissionsPermanentlyDenied
kirtan403 commented
Can you make sure the permission is declared in Manifest. I had an issue, where If I try to ask for a permission that is not declared in the manifest then it gives me the callback of that permission as "Permanently Denied".