diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 339910f..ea44045 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -158,10 +158,11 @@ public class BackgroundMode extends CordovaPlugin { /** * Update the settings and maybe the notification. * - * @param settings + * @param newSettings + * The new settings */ - private void setSettings(JSONObject settings) { - this.settings = settings; + private void setSettings(JSONObject newSettings) { + settings = newSettings; if (inBackground) { stopService();