Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Translucent animation flickering when checking for declined (with don't ask again checked) permission #207

Open
SimonLegros77 opened this issue Apr 19, 2018 · 0 comments

Comments

@SimonLegros77
Copy link

Expected behaviour

  • If permission is already declined when invoking Dexter.check(), startTransparentActivityIfNeeded() should not start DexterActivity. Thus preventing any kind of flicker and animation when opening/closing activities.

Actual behaviour

Steps to reproduce

  1. Ask a permission by calling the check() method of Dexter Library.
    Dexter.withActivity(this)
    .withPermission(Manifest.permission.READ_CONTACTS)
    .withListener(new PermissionListener()
    {
    @OverRide public void onPermissionGranted(PermissionGrantedResponse pResponse)
    {...}
    @OverRide public void onPermissionDenied(PermissionDeniedResponse pResponse)
    {...}
    @OverRide public void onPermissionRationaleShouldBeShown(PermissionRequest pPermission, PermissionToken pToken)
    {...}
    }).check();

  2. Cancel the permission asking dialog.

  3. Show again the dialog permission (will show the rationale) then press OK to show permission dialog.

  4. In permission dialog, check the "don't ask again" and decline the permission.

  5. After that, each time I ask the same permission, I see the translucent animation flickering before onPermissionDenied is called.

Version of the library

Dexter version 4.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant