Start service only if not already started

This commit is contained in:
Sebastián Katzer 2014-11-12 22:40:31 +01:00
parent 98f2544adb
commit 96663a36e8

View File

@ -185,7 +185,7 @@ public class BackgroundMode extends CordovaPlugin {
Intent intent = new Intent(
context, ForegroundService.class);
if (isDisabled) {
if (isDisabled || isBind) {
return;
}