From 3f675af8e8fac8048218be14734faf7abca02acc Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Wed, 3 Oct 2018 19:54:41 -0400 Subject: [PATCH] android: convert tabs to spaces (and space after an if statement) --- src/android/Notification.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/android/Notification.java b/src/android/Notification.java index 4c188071..0a97af0a 100644 --- a/src/android/Notification.java +++ b/src/android/Notification.java @@ -71,13 +71,13 @@ public Notification() { * @return True when the action was valid, false otherwise. */ public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { - /* - * Don't run any of these if the current activity is finishing - * in order to avoid android.view.WindowManager$BadTokenException - * crashing the app. Just return true here since false should only - * be returned in the event of an invalid action. - */ - if(this.cordova.getActivity().isFinishing()) return true; + /* + * Don't run any of these if the current activity is finishing + * in order to avoid android.view.WindowManager$BadTokenException + * crashing the app. Just return true here since false should only + * be returned in the event of an invalid action. + */ + if (this.cordova.getActivity().isFinishing()) return true; if (action.equals("beep")) { this.beep(args.getLong(0)); @@ -160,7 +160,7 @@ public void run() { * @param callbackContext The callback context */ public synchronized void alert(final String message, final String title, final String buttonLabel, final CallbackContext callbackContext) { - final CordovaInterface cordova = this.cordova; + final CordovaInterface cordova = this.cordova; Runnable runnable = new Runnable() { public void run() { @@ -201,7 +201,7 @@ public void onCancel(DialogInterface dialog) * @param callbackContext The callback context. */ public synchronized void confirm(final String message, final String title, final JSONArray buttonLabels, final CallbackContext callbackContext) { - final CordovaInterface cordova = this.cordova; + final CordovaInterface cordova = this.cordova; Runnable runnable = new Runnable() { public void run() { @@ -272,8 +272,8 @@ public void onCancel(DialogInterface dialog) * Builds and shows a native Android prompt dialog with given title, message, buttons. * This dialog only shows up to 3 buttons. Any labels after that will be ignored. * The following results are returned to the JavaScript callback identified by callbackId: - * buttonIndex Index number of the button selected - * input1 The text entered in the prompt dialog box + * buttonIndex Index number of the button selected + * input1 The text entered in the prompt dialog box * * @param message The message the dialog should display * @param title The title of the dialog