Error: WebView.destroy() called while still attached

后端 未结 5 564
一向
一向 2020-12-23 11:50

I am getting this error when the device changes orientation:

Error: WebView.destroy() called while still attached

With this code:



        
5条回答
  •  长情又很酷
    2020-12-23 12:13

     @Override
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        if (mWebView != null) {
            mWebView.destroy();
        }
    }
    

提交回复
热议问题