Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4717b8b authored by John Reck's avatar John Reck
Browse files

Verify attached before showing a dialog

 Bug: 6372828

Change-Id: I7f3360ab8a0cdcaf20829e6e2c9181c7af73586e
parent d7247c76
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8243,6 +8243,12 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc

        @Override
        public void run() {
            if (mWebViewCore == null
                    || getWebView().getWindowToken() == null
                    || getWebView().getViewRootImpl() == null) {
                // We've been detached and/or destroyed since this was posted
                return;
            }
            final ListView listView = (ListView) LayoutInflater.from(mContext)
                    .inflate(com.android.internal.R.layout.select_dialog, null);
            final MyArrayListAdapter adapter = new MyArrayListAdapter();