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
This commit is contained in:
hadeslee 2014-03-21 12:06:23 +08:00 committed by Andrew Grieve
parent 9a00ccdacc
commit b715d20385

View File

@ -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;