@@ -71,13 +71,13 @@ public Notification() {
7171 * @return True when the action was valid, false otherwise.
7272 */
7373 public boolean execute (String action , JSONArray args , CallbackContext callbackContext ) throws JSONException {
74- /*
75- * Don't run any of these if the current activity is finishing
76- * in order to avoid android.view.WindowManager$BadTokenException
77- * crashing the app. Just return true here since false should only
78- * be returned in the event of an invalid action.
79- */
80- if (this .cordova .getActivity ().isFinishing ()) return true ;
74+ /*
75+ * Don't run any of these if the current activity is finishing
76+ * in order to avoid android.view.WindowManager$BadTokenException
77+ * crashing the app. Just return true here since false should only
78+ * be returned in the event of an invalid action.
79+ */
80+ if (this .cordova .getActivity ().isFinishing ()) return true ;
8181
8282 if (action .equals ("beep" )) {
8383 this .beep (args .getLong (0 ));
@@ -160,7 +160,7 @@ public void run() {
160160 * @param callbackContext The callback context
161161 */
162162 public synchronized void alert (final String message , final String title , final String buttonLabel , final CallbackContext callbackContext ) {
163- final CordovaInterface cordova = this .cordova ;
163+ final CordovaInterface cordova = this .cordova ;
164164
165165 Runnable runnable = new Runnable () {
166166 public void run () {
@@ -201,7 +201,7 @@ public void onCancel(DialogInterface dialog)
201201 * @param callbackContext The callback context.
202202 */
203203 public synchronized void confirm (final String message , final String title , final JSONArray buttonLabels , final CallbackContext callbackContext ) {
204- final CordovaInterface cordova = this .cordova ;
204+ final CordovaInterface cordova = this .cordova ;
205205
206206 Runnable runnable = new Runnable () {
207207 public void run () {
@@ -272,8 +272,8 @@ public void onCancel(DialogInterface dialog)
272272 * Builds and shows a native Android prompt dialog with given title, message, buttons.
273273 * This dialog only shows up to 3 buttons. Any labels after that will be ignored.
274274 * The following results are returned to the JavaScript callback identified by callbackId:
275- * buttonIndex Index number of the button selected
276- * input1 The text entered in the prompt dialog box
275+ * buttonIndex Index number of the button selected
276+ * input1 The text entered in the prompt dialog box
277277 *
278278 * @param message The message the dialog should display
279279 * @param title The title of the dialog
0 commit comments