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 request permission again after activity destroyed #220

Closed komitake closed 4 years ago

komitake commented 5 years ago

This pull request resolves following issue.

  1. request permission once by calling Dexter.check()
  2. remove the app from "recent task list" while system permission dialog is shown
  3. relaunch the app from launcher and call same Dexter.check() again

DexterActivity won't request permission at step.3

felipe-silvestre-morais commented 5 years ago

Could some admin merge this PR, please? This fixes a well-known issue in Dexter.

pedrovgs commented 4 years ago

Hi @felipe-silvestre-morais I'm trying to reproduce this bug after merging a branch updating the dependencies to Android X but following the steps you described I'm not able to reproduce it. Can you please check if you can reproduce the bug in the current master changeset and update the steps to reproduce? Maybe I'm missing something.