vincent-series / smart-show

615 stars 80 forks source link

Unable to add window -- token android.os.BinderProxy@XXXXXX is not valid; is your activity running? #14

Open MMMMMLiang opened 5 years ago

MMMMMLiang commented 5 years ago

dialog.show()异常,点击notification显示dialog后退出activity并重新打开再次点击notification,dialog不显示并抛出异常: Unable to add window -- token android.os.BinderProxy@XXXXXX is not valid; is your activity running? 图: image 似乎是activity destroy时并没有destroy dialog?

vincent-series commented 5 years ago

抱歉,抱歉,我刚看了一下,最新版本也没删除测试代码。之所以badToken,测试activity上保存notification的Dialog是静态对象,我为了测badtoken时用的。我修复一下。

vincent-series commented 5 years ago

demo已修改,谢谢。