We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3cdfcdc + dfceaf2 commit 23a2ce1Copy full SHA for 23a2ce1
core/java/android/webkit/WebCoreThreadWatchdog.java
@@ -16,6 +16,7 @@
16
17
package android.webkit;
18
19
+import android.app.Activity;
20
import android.app.AlertDialog;
21
import android.content.Context;
22
import android.content.DialogInterface;
@@ -146,6 +147,7 @@ public void handleMessage(Message msg) {
146
147
break;
148
149
case TIMED_OUT:
150
+ if ((mContext == null) || !(mContext instanceof Activity)) return;
151
new AlertDialog.Builder(mContext)
152
.setMessage(com.android.internal.R.string.webpage_unresponsive)
153
.setPositiveButton(com.android.internal.R.string.force_close,
0 commit comments