@@ -71,13 +71,13 @@ public Notification() {
71
71
* @return True when the action was valid, false otherwise.
72
72
*/
73
73
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 ;
81
81
82
82
if (action .equals ("beep" )) {
83
83
this .beep (args .getLong (0 ));
@@ -160,7 +160,7 @@ public void run() {
160
160
* @param callbackContext The callback context
161
161
*/
162
162
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 ;
164
164
165
165
Runnable runnable = new Runnable () {
166
166
public void run () {
@@ -201,7 +201,7 @@ public void onCancel(DialogInterface dialog)
201
201
* @param callbackContext The callback context.
202
202
*/
203
203
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 ;
205
205
206
206
Runnable runnable = new Runnable () {
207
207
public void run () {
@@ -272,8 +272,8 @@ public void onCancel(DialogInterface dialog)
272
272
* Builds and shows a native Android prompt dialog with given title, message, buttons.
273
273
* This dialog only shows up to 3 buttons. Any labels after that will be ignored.
274
274
* 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
277
277
*
278
278
* @param message The message the dialog should display
279
279
* @param title The title of the dialog
0 commit comments