File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ else if (action.equals("show")) {
313
313
this .cordova .getActivity ().runOnUiThread (new Runnable () {
314
314
@ Override
315
315
public void run () {
316
- if (dialog != null ) {
316
+ if (dialog != null && ! cordova . getActivity (). isFinishing () ) {
317
317
dialog .show ();
318
318
}
319
319
}
@@ -326,7 +326,7 @@ else if (action.equals("hide")) {
326
326
this .cordova .getActivity ().runOnUiThread (new Runnable () {
327
327
@ Override
328
328
public void run () {
329
- if (dialog != null ) {
329
+ if (dialog != null && ! cordova . getActivity (). isFinishing () ) {
330
330
dialog .hide ();
331
331
}
332
332
}
@@ -537,7 +537,7 @@ public void run() {
537
537
childView .setWebViewClient (new WebViewClient () {
538
538
// NB: wait for about:blank before dismissing
539
539
public void onPageFinished (WebView view , String url ) {
540
- if (dialog != null ) {
540
+ if (dialog != null && ! cordova . getActivity (). isFinishing () ) {
541
541
dialog .dismiss ();
542
542
dialog = null ;
543
543
}
You can’t perform that action at this time.
0 commit comments