From db7006cb18a61b9a02015b53781542f0e7f4a84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sun, 14 Dec 2014 15:26:43 +0100 Subject: [PATCH] Fix type error --- src/android/BackgroundMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index f34fc99..8b9afe4 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -292,7 +292,7 @@ public class BackgroundMode extends CordovaPlugin { eventName = "failure"; } - String active = event == Event.ACTIVATE ? "true" : false; + String active = event == Event.ACTIVATE ? "true" : "false"; String flag = String.format("%s._isActive=%s;", JS_NAMESPACE, active);