When we are asking for permission on Fragment launch inside onViewCreated() method. Both @OnNeverAskAgain and @NeedsPermissionare getting called immediately. and if we are asking permission on some button click then it is working fine.
Expected
It should not call @OnNeverAskAgain without any action along with @NeedsPermission
Actual
On fragment launch, both @OnNeverAskAgain and @NeedsPermissionare getting called immediately.
Environment
Which library version are you using?
Current Version
implementation 'com.github.permissions-dispatcher:permissionsdispatcher:4.9.2' kapt 'com.github.permissions-dispatcher:permissionsdispatcher-processor:4.9.2'
On which devices do you observe the issue?
One Plus 7 Android 11 , Samsung M30 and other
Overview
When we are asking for permission on Fragment launch inside onViewCreated() method. Both
@OnNeverAskAgain
and@NeedsPermission
are getting called immediately. and if we are asking permission on some button click then it is working fine.Expected
@OnNeverAskAgain
without any action along with@NeedsPermission
Actual
@OnNeverAskAgain
and@NeedsPermission
are getting called immediately.Environment
Which library version are you using? Current Version
implementation 'com.github.permissions-dispatcher:permissionsdispatcher:4.9.2' kapt 'com.github.permissions-dispatcher:permissionsdispatcher-processor:4.9.2'
On which devices do you observe the issue? One Plus 7 Android 11 , Samsung M30 and other
https://user-images.githubusercontent.com/25843884/190325927-54570126-6f24-4305-9c94-c59f034ca1e9.mov