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 broadcast receiver support #256

Closed pedrovgs closed 4 years ago

pedrovgs commented 4 years ago

:pushpin: References

:tophat: What is the goal?

Do not crash if the context used to start dexter is the one assigned to a broadcast receiver.

:memo: How is it being implemented?

We've just changed a Dexter inner check in order to get this working.

:robot: How can it be tested?

Current code coverage ensures already implemented scenarios are working properly. I'm not adding any automated test to ensure the context from a receiver is working because the effort is not worth it.