Cleanup: remove trailing whitespace (#120)
diff --git a/src/android/Notification.java b/src/android/Notification.java
index f19bc88..08d6a92 100644
--- a/src/android/Notification.java
+++ b/src/android/Notification.java
@@ -43,7 +43,7 @@
/**
* This class provides access to notifications on the device.
*
- * Be aware that this implementation gets called on
+ * Be aware that this implementation gets called on
* navigator.notification.{alert|confirm|prompt}, and that there is a separate
* implementation in org.apache.cordova.CordovaChromeClient that gets
* called on a simple window.{alert|confirm|prompt}.
@@ -51,7 +51,7 @@
public class Notification extends CordovaPlugin {
private static final String LOG_TAG = "Notification";
-
+
public int confirmResult = -1;
public ProgressDialog spinnerDialog = null;
public ProgressDialog progressDialog = null;
@@ -78,7 +78,7 @@
* 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));
}
@@ -281,15 +281,15 @@
* @param callbackContext The callback context.
*/
public synchronized void prompt(final String message, final String title, final JSONArray buttonLabels, final String defaultText, final CallbackContext callbackContext) {
-
+
final CordovaInterface cordova = this.cordova;
-
+
Runnable runnable = new Runnable() {
public void run() {
final EditText promptInput = new EditText(cordova.getActivity());
-
- /* CB-11677 - By default, prompt input text color is set according current theme.
- But for some android versions is not visible (for example 5.1.1).
+
+ /* CB-11677 - By default, prompt input text color is set according current theme.
+ But for some android versions is not visible (for example 5.1.1).
android.R.color.primary_text_light will make text visible on all versions. */
Resources resources = cordova.getActivity().getResources();
int promptInputTextColor = resources.getColor(android.R.color.primary_text_light);
@@ -299,11 +299,11 @@
dlg.setMessage(message);
dlg.setTitle(title);
dlg.setCancelable(true);
-
+
dlg.setView(promptInput);
-
+
final JSONObject result = new JSONObject();
-
+
// First button
if (buttonLabels.length() > 0) {
try {
@@ -313,7 +313,7 @@
dialog.dismiss();
try {
result.put("buttonIndex",1);
- result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
+ result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
} catch (JSONException e) {
LOG.d(LOG_TAG,"JSONException on first button.", e);
}
@@ -356,7 +356,7 @@
try {
result.put("buttonIndex",3);
result.put("input1", promptInput.getText().toString().trim().length()==0 ? defaultText : promptInput.getText());
- } catch (JSONException e) {
+ } catch (JSONException e) {
LOG.d(LOG_TAG,"JSONException on third button.", e);
}
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, result));
@@ -479,7 +479,7 @@
this.progressDialog = null;
}
}
-
+
@SuppressLint("NewApi")
private AlertDialog.Builder createDialog(CordovaInterface cordova) {
int currentapiVersion = android.os.Build.VERSION.SDK_INT;
@@ -499,7 +499,7 @@
return new ProgressDialog(cordova.getActivity());
}
}
-
+
@SuppressLint("NewApi")
private void changeTextDirection(Builder dlg){
int currentapiVersion = android.os.Build.VERSION.SDK_INT;