Dexter icon indicating copy to clipboard operation
Dexter copied to clipboard

REQUEST ALL in sample example not working as expected

Open cmeng-git opened this issue 7 years ago • 1 comments

Thanks for the excellent Dexter library. Trying to use it on aTalk; but observe the following when trying the SampleActivity downloaded from the master repository (v4.2.0) The Dexter is installed on Note 8.

Expected behaviour

Click on the RequestAll button launches the showPermissionRationale dialog as expected. It should then wait for user to click on the OK button before proceed to prompt user with the Permission Request dialog.

Actual behaviour

After the launch of the showPermissionRationale dialog. it immediately proceeds to show the Permission Request dialog without user clicks on the OK button; and obscures the showPermissionRationale dialog message until user has answered all the permission requests.This confuses the user.

I try to trace where the token.continuePermissionRequest(); is being executed even before the user click on the OK button but not successful.

Steps to reproduce

See above

Version of the library

version 4.2.0 master source

cmeng-git avatar Dec 25 '17 16:12 cmeng-git

@Laura-karumi please look at the issue. I also have the same problem on 8.0. Actually Background thread permission listener works as expected. But sample permission listener shouldshowretional dialog is messed up. Its asking for permission before I press ok button. Please do check.

monowar1993 avatar Mar 10 '18 08:03 monowar1993