Skip to content

Commit 53c6a34

Browse files
author
Christopher J. Brody
committed
android: remove trailing whitespace
1 parent 234611f commit 53c6a34

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/android/Notification.java

+14-14
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ Licensed to the Apache Software Foundation (ASF) under one
4343
/**
4444
* This class provides access to notifications on the device.
4545
*
46-
* Be aware that this implementation gets called on
46+
* Be aware that this implementation gets called on
4747
* navigator.notification.{alert|confirm|prompt}, and that there is a separate
4848
* implementation in org.apache.cordova.CordovaChromeClient that gets
4949
* called on a simple window.{alert|confirm|prompt}.
5050
*/
5151
public class Notification extends CordovaPlugin {
5252

5353
private static final String LOG_TAG = "Notification";
54-
54+
5555
public int confirmResult = -1;
5656
public ProgressDialog spinnerDialog = null;
5757
public ProgressDialog progressDialog = null;
@@ -78,7 +78,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
7878
* be returned in the event of an invalid action.
7979
*/
8080
if(this.cordova.getActivity().isFinishing()) return true;
81-
81+
8282
if (action.equals("beep")) {
8383
this.beep(args.getLong(0));
8484
}
@@ -282,13 +282,13 @@ public void onCancel(DialogInterface dialog)
282282
*/
283283
public synchronized void prompt(final String message, final String title, final JSONArray buttonLabels, final String defaultText, final CallbackContext callbackContext) {
284284
final CordovaInterface cordova = this.cordova;
285-
285+
286286
Runnable runnable = new Runnable() {
287287
public void run() {
288288
final EditText promptInput = new EditText(cordova.getActivity());
289-
290-
/* CB-11677 - By default, prompt input text color is set according current theme.
291-
But for some android versions is not visible (for example 5.1.1).
289+
290+
/* CB-11677 - By default, prompt input text color is set according current theme.
291+
But for some android versions is not visible (for example 5.1.1).
292292
android.R.color.primary_text_light will make text visible on all versions. */
293293
Resources resources = cordova.getActivity().getResources();
294294
int promptInputTextColor = resources.getColor(android.R.color.primary_text_light);
@@ -298,11 +298,11 @@ But for some android versions is not visible (for example 5.1.1).
298298
dlg.setMessage(message);
299299
dlg.setTitle(title);
300300
dlg.setCancelable(true);
301-
301+
302302
dlg.setView(promptInput);
303-
303+
304304
final JSONObject result = new JSONObject();
305-
305+
306306
// First button
307307
if (buttonLabels.length() > 0) {
308308
try {
@@ -312,7 +312,7 @@ public void onClick(DialogInterface dialog, int which) {
312312
dialog.dismiss();
313313
try {
314314
result.put("buttonIndex",1);
315-
result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
315+
result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
316316
} catch (JSONException e) {
317317
LOG.d(LOG_TAG,"JSONException on first button.", e);
318318
}
@@ -355,7 +355,7 @@ public void onClick(DialogInterface dialog, int which) {
355355
try {
356356
result.put("buttonIndex",3);
357357
result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
358-
} catch (JSONException e) {
358+
} catch (JSONException e) {
359359
LOG.d(LOG_TAG,"JSONException on third button.", e);
360360
}
361361
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, result));
@@ -478,7 +478,7 @@ public synchronized void progressStop() {
478478
this.progressDialog = null;
479479
}
480480
}
481-
481+
482482
@SuppressLint("NewApi")
483483
private AlertDialog.Builder createDialog(CordovaInterface cordova) {
484484
int currentapiVersion = android.os.Build.VERSION.SDK_INT;
@@ -498,7 +498,7 @@ private ProgressDialog createProgressDialog(CordovaInterface cordova) {
498498
return new ProgressDialog(cordova.getActivity());
499499
}
500500
}
501-
501+
502502
@SuppressLint("NewApi")
503503
private void changeTextDirection(Builder dlg){
504504
int currentapiVersion = android.os.Build.VERSION.SDK_INT;

0 commit comments

Comments
 (0)