am df35aa45: Merge "Verify attached before showing a dialog" into jb-dev
* commit 'df35aa457ec275422b1695f6a3293aae35f99a22': Verify attached before showing a dialog
This commit is contained in:
@@ -8242,6 +8242,12 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
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)
|
final ListView listView = (ListView) LayoutInflater.from(mContext)
|
||||||
.inflate(com.android.internal.R.layout.select_dialog, null);
|
.inflate(com.android.internal.R.layout.select_dialog, null);
|
||||||
final MyArrayListAdapter adapter = new MyArrayListAdapter();
|
final MyArrayListAdapter adapter = new MyArrayListAdapter();
|
||||||
|
|||||||
Reference in New Issue
Block a user