From b715d20385a3932dd687460f90db44610d833ad2 Mon Sep 17 00:00:00 2001 From: hadeslee Date: Fri, 21 Mar 2014 12:06:23 +0800 Subject: [PATCH] Remove incorrect usage of AlertDialog.Builder.create AlertDialog.Builder.show() will create an AlertDialog before it show. This is the source code snippet: /** * Creates a {@link AlertDialog} with the arguments supplied to this builder and * {@link Dialog#show()}'s the dialog. */ public AlertDialog show() { AlertDialog dialog = create(); dialog.show(); return dialog; } github: close #96 --- framework/src/org/apache/cordova/CordovaChromeClient.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java index 5977e00e..54c8948f 100755 --- a/framework/src/org/apache/cordova/CordovaChromeClient.java +++ b/framework/src/org/apache/cordova/CordovaChromeClient.java @@ -139,7 +139,6 @@ public class CordovaChromeClient extends WebChromeClient { return true; } }); - dlg.create(); dlg.show(); return true; } @@ -188,7 +187,6 @@ public class CordovaChromeClient extends WebChromeClient { return true; } }); - dlg.create(); dlg.show(); return true; } @@ -280,7 +278,6 @@ public class CordovaChromeClient extends WebChromeClient { res.cancel(); } }); - dlg.create(); dlg.show(); } return true;