activity中dialog造成has leaked window DecorView@b512931[] that was originally added here

mark一下

场景:在activity中创建了一个dialog,并给dialog中加了一个回调

出现的原因:dialog在回调的时候并没有dismiss

解决方法:回调完之后dismiss就好了

你可能感兴趣的:(activity中dialog造成has leaked window DecorView@b512931[] that was originally added here)