java.lang.IllegalArgumentException: View=PhoneWindow$DecorView{...} not attached to window manager
针对此问题本文主要是抛出解决方案,定义一个基类BaseDialog,其他Dialog继承此基类,BaseDialog代码如下:importandroid.app.Activity;importandroid.app.Dialog;importandroid.arch.lifecycle.Lifecycle;importandroid.arch.lifecycle.LifecycleObserver