You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
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
If I call check() on Dexter library for a permission that was already declined (With flag "don't ask again" checked), I see translucent animation flickering before "onPermissionDenied" is called.
It's only happening if had declined the permission. If user accept the permission, and then I call check() again, the onPermissionGranted is called without this flickering.
Expected behaviour
Actual behaviour
Steps to reproduce
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();
Cancel the permission asking dialog.
Show again the dialog permission (will show the rationale) then press OK to show permission dialog.
In permission dialog, check the "don't ask again" and decline the permission.
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
The text was updated successfully, but these errors were encountered: