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

Fix a bug caused by "singleTask" #237

Closed findandroidviewbyid closed 4 years ago

findandroidviewbyid commented 4 years ago

if your activity is singleTask and you clicked "home" in this page ,you con't find permission box next time

  1. I clicked the home button in request permission page (DexterActivity)
  2. I clicked my app (I have a InitializeActivity and it is singleTask ,so DexterActivity is destroy)
  3. I request permission again ,but i con't see the "Permission box". No matter what, it’s always right set "rationaleAccepted and isShowingNativeDialog == false" .
pedrovgs commented 4 years ago

Thanks for sending this PR @findandroidviewbyid . However, a previous PR I've already merged already includes the same code changes so I'm not merging your branch.