Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@OnNeverAskAgain called along with @NeedsPermission if we ask permission in onViewCreated() of Fragment #776

Open
satwinder07 opened this issue Sep 15, 2022 · 0 comments

Comments

@satwinder07
Copy link

satwinder07 commented Sep 15, 2022

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

  • It should not call @OnNeverAskAgain without any action along with @NeedsPermission

Actual

  • On fragment launch, both @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

Screen.Recording.2022-09-15.at.11.26.38.AM.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant