Skip to content

Commit f6ff48b

Browse files
author
Christopher J. Brody
committed
android: remove trailing whitespace
1 parent 0057715 commit f6ff48b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/android/Notification.java

Lines changed: 12 additions & 12 deletions
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;
@@ -283,13 +283,13 @@ public void onCancel(DialogInterface dialog)
283283
public synchronized void prompt(final String message, final String title, final JSONArray buttonLabels, final String defaultText, final CallbackContext callbackContext) {
284284

285285
final CordovaInterface cordova = this.cordova;
286-
286+
287287
Runnable runnable = new Runnable() {
288288
public void run() {
289289
final EditText promptInput = new EditText(cordova.getActivity());
290-
291-
/* CB-11677 - By default, prompt input text color is set according current theme.
292-
But for some android versions is not visible (for example 5.1.1).
290+
291+
/* CB-11677 - By default, prompt input text color is set according current theme.
292+
But for some android versions is not visible (for example 5.1.1).
293293
android.R.color.primary_text_light will make text visible on all versions. */
294294
Resources resources = cordova.getActivity().getResources();
295295
int promptInputTextColor = resources.getColor(android.R.color.primary_text_light);
@@ -299,11 +299,11 @@ But for some android versions is not visible (for example 5.1.1).
299299
dlg.setMessage(message);
300300
dlg.setTitle(title);
301301
dlg.setCancelable(true);
302-
302+
303303
dlg.setView(promptInput);
304-
304+
305305
final JSONObject result = new JSONObject();
306-
306+
307307
// First button
308308
if (buttonLabels.length() > 0) {
309309
try {
@@ -356,7 +356,7 @@ public void onClick(DialogInterface dialog, int which) {
356356
try {
357357
result.put("buttonIndex",3);
358358
result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
359-
} catch (JSONException e) {
359+
} catch (JSONException e) {
360360
LOG.d(LOG_TAG,"JSONException on third button.", e);
361361
}
362362
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, result));
@@ -479,7 +479,7 @@ public synchronized void progressStop() {
479479
this.progressDialog = null;
480480
}
481481
}
482-
482+
483483
@SuppressLint("NewApi")
484484
private AlertDialog.Builder createDialog(CordovaInterface cordova) {
485485
int currentapiVersion = android.os.Build.VERSION.SDK_INT;
@@ -499,7 +499,7 @@ private ProgressDialog createProgressDialog(CordovaInterface cordova) {
499499
return new ProgressDialog(cordova.getActivity());
500500
}
501501
}
502-
502+
503503
@SuppressLint("NewApi")
504504
private void changeTextDirection(Builder dlg){
505505
int currentapiVersion = android.os.Build.VERSION.SDK_INT;

0 commit comments

Comments
 (0)