You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device type: Emulator (Pixel4 API 29)
OS version: Android 10
EasyPermissions version: 1.0.0
Question
When I was implementing the EasyPermissions feature in Fragment, I noticed that these callback functions were not being called, even though I implements EasyPermissions.RationaleCallbacks.
I investigated in the debugger and found the following
Execute EasyPermissions.requestPermissions, passing MainFragment as the host.
PermissionRequest.Builder(host.context) is called. host.context = MainActivity
MainActivity does not implement EasyPermissions.RationaleCallbacks, so onRationaleAccepted and onRationaleDenied will not be called.
Is this the correct behavior? Should EasyPermissions.RationaleCallbacks be implemented only in Activity?
When pass through the rationale dialog, onPermissionGranted in the fragment is not called ?
(Immediately allows the same permission from fragment, then onPermissionGranted in Fragment was called.)
Basic Information
Device type: Emulator (Pixel4 API 29)
OS version: Android 10
EasyPermissions version: 1.0.0
Question
When I was implementing the EasyPermissions feature in Fragment, I noticed that these callback functions were not being called, even though I implements EasyPermissions.RationaleCallbacks.
I investigated in the debugger and found the following
Execute EasyPermissions.requestPermissions, passing MainFragment as the host.
PermissionRequest.Builder(host.context) is called. host.context = MainActivity
MainActivity does not implement EasyPermissions.RationaleCallbacks, so onRationaleAccepted and onRationaleDenied will not be called.
Is this the correct behavior? Should EasyPermissions.RationaleCallbacks be implemented only in Activity?
Code
The source code has been uploaded to github.
https://github.com/Nunocky/EasyPermissionsStudy
The text was updated successfully, but these errors were encountered: