Static status methods (except bluetooth & motion)#156
Static status methods (except bluetooth & motion)#156retendo wants to merge 2 commits intonickoneill:masterfrom
Conversation
…on) without creating a permissionscope instance. this prevents crashes, when trying to get a status from a different thread than the main thread .
|
I also added jetbrains product files to the .gitignore. |
|
Hi @retendo, some questions about the motivation for this: How were you accessing this on a background thread where it was crashing? Does And please remove the jetbrains ignores. These should be in your global git ignore, not in the ignores for any project you use. |
|
There are a few reasons for static status checking methods:
|
|
Can you send over an example that crashes when off the main thread? I'm interested if this is our own issue or something particular to native permissions requests. I totally get where you're coming from in terms of what should and should not be a static. I'm just not sure that shoehorning it in like this is the right solution when (if we can not crash) can do it just as well without. |
Added the ability to get permission statuses (except bluetooth & motion) without creating a PermissionScope instance.
This prevents crashes, when trying to get a status from a different thread than the main thread, as it doesn't try to do any view stuff.