Dovar66 / DToast

同学,你的系统Toast可能需要修复一下!Fix Your Android Toast!
563 stars 60 forks source link

Can't toast on a thread that has not called Looper.prepare() #11

Closed triplesky closed 5 years ago

triplesky commented 5 years ago

有没有遇到这个问题

triplesky commented 5 years ago

有没有遇到这个问题

Can't toast on a thread that has not called Looper.prepare()

...dtoast.inner.SystemToast.showInternal(Unknown Source:13)

Dovar66 commented 5 years ago

DToast跟原生Toast的使用是一样的,不应该直接在子线程中调用show()方法

Likeyong commented 5 years ago

在子线程调用Looper.prepare(); 之后还是不行,请问有解决办法吗