Skip to content

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

@satwinder07

Description

@satwinder07

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions