android View not attached to window manager

后端 未结 13 2368
臣服心动
臣服心动 2020-11-27 10:29

I am having some of the following exceptions:

java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findV         


        
13条回答
  •  忘掉有多难
    2020-11-27 10:57

    Another option is not to start the async task until the dialog is attached to the window by overriding onAttachedToWindow() on the dialog, that way it is always dismissible.

提交回复
热议问题