Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

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

Open SimonLegros77 opened 6 years ago

SimonLegros77 commented 6 years ago

Expected behaviour

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