canelmas / let

Annotation based simple API flavored with AOP to handle new Android runtime permission model
Apache License 2.0
530 stars 40 forks source link

onPermissionDenied() never called #14

Closed liutingdu closed 8 years ago

liutingdu commented 8 years ago

I have @AskPermission in my fragment that implemented RuntimePermissionListener, something like this:

@AskPermission({CAMERA, WRITE_EXTERNAL_STORAGE}) private void startCamera() {
        //Display camera view
}

It works when the permissions got granted, but when I tried to handle denied situation, onPermissionDenied() never gets called . Just wonder when it calls onPermissionDenied()?

canelmas commented 8 years ago

Hi @liutingdu, are you certain that it's not the onShowPermissionRationale case instead of onPermissionDenied?

liutingdu commented 8 years ago

Yes, onShowPermissionRationale was called but onPermissionDenied wasn't. Sorry I'm not able to provide more details as I didn't test it again, I'll close this issue in this case. Thanks anyway!