googlesamples / easypermissions

Simplify Android M system permissions
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
9.86k stars 1.46k forks source link

how can i remove rationale dialog? #296

Closed HarveyLeeChn closed 4 years ago

HarveyLeeChn commented 4 years ago

Basic Information

Device type: ____ OS version: ____ EasyPermissions version: ____

Describe the problem

What happened? What did you expect to happen?

Code and logs

// TODO(you): show the code that produces the problem,
//            and any relevant logs.
samtstern commented 4 years ago

@HarveyLeeChn you cannot. EasyPermissions is an opinionated library that implements the recommended flows. If you want custom flows you will have to use the base permissions API yourself.

BodhiSun commented 4 years ago

Hello ,when i looked at the EP(3.0.0) source code,I found requestPermissions(...) method which contains a toggle method 'shouldShowRationale()', i found it relies on Activity's(or Fragment) method,so when i override Activity's(or Fragment) 'shouldShowRequestPermissionRationale(...)' method and return false,The rationale dialog really skips;

xgeeek commented 4 years ago

Hello ,when i looked at the EP(3.0.0) source code,I found requestPermissions(...) method which contains a toggle method 'shouldShowRationale()', i found it relies on Activity's(or Fragment) method,so when i override Activity's(or Fragment) 'shouldShowRequestPermissionRationale(...)' method and return false,The rationale dialog really skips;

exactly