Commit a692d2b7 by Mustafa ALP Committed by GitHub

fix: #298 safe call Android view object (#299)

parent 5ba64894
......@@ -126,7 +126,7 @@ internal class MethodCallHandlerImpl(var context: Context) : MethodCallHandler {
fun resetToast() {
if (::mToast.isInitialized && mToast != null) {
if (mToast.view.visibility != View.VISIBLE) {
if (mToast.view?.visibility != View.VISIBLE) {
mToast
} else {
Handler().postDelayed(Runnable {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment