From 98f2544adb17f7d12e54b9a6a7c679a3268f3c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 12 Nov 2014 22:28:25 +0100 Subject: [PATCH] Change visibility --- src/android/BackgroundMode.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 464e29e..fd4e22e 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -46,9 +46,8 @@ public class BackgroundMode extends CordovaPlugin { // Flag indicates if the service is bind private boolean isBind = false; - // Settings for the notification - static JSONObject settings = new JSONObject(); + protected static JSONObject settings = new JSONObject(); // Used to (un)bind the service to with the activity private final ServiceConnection connection = new ServiceConnection() { @@ -120,7 +119,6 @@ public class BackgroundMode extends CordovaPlugin { startService(); } - /** * Called when the activity will start interacting with the user. * @@ -134,6 +132,9 @@ public class BackgroundMode extends CordovaPlugin { stopService(); } + /** + * Called when the activity will be destroyed. + */ @Override public void onDestroy() { super.onDestroy();