googlesamples / easypermissions

Simplify Android M system permissions
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
9.87k stars 1.46k forks source link

AfterPermissionGranted #251

Closed weiweiForAndroid closed 6 years ago

weiweiForAndroid commented 6 years ago

version info :1.3.0

the @afterpermissionGranted method not callback

samtstern commented 6 years ago

@weiweiForAndroid this is not enough information to debug. Please show the code you wrote and where it is failing.

squeeish commented 6 years ago

After spending half an hour, I realised I forgot to add this to the end of the forwarded results to EasyPermissions.

@Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);

        // Forward results to EasyPermissions
        EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
    }
samtstern commented 6 years ago

Thanks for the note @squeeish

@weiweiForAndroid I am going to close this issue since there has been no new info provided. Please let me know if you're still stuck and want me to re-open it.