Closed pe-johndpope closed 1 year ago
Thanks for the contribution @pe-johndpope -- this change would certainly prevent crashes from being reported, but some more work needs to be done to track down the root cause of the issue and fix it.
Currently, this PR will just disable the snackbar on devices that otherwise would have loudly crashed. That may be acceptable in cases where the snackbar says something simple like "done", but in other cases, app developers are relying on users being able to press an action button inside of the snackbar such as "accept" or "next", and this silent disabling may make them even more confused than a crash.
I will follow up on #192 with some help + a question for you. Thanks for your debugging work so far!
superceded by #198 -- thanks again @pe-johndpope!
fix for crash when there's no superview. (Haven't tested this yet. should work fine as the exception from present will bubble up and be caught)
Fixes #192