mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-21 23:04:53 +00:00
Start service only if not already started
This commit is contained in:
parent
98f2544adb
commit
96663a36e8
@ -185,7 +185,7 @@ public class BackgroundMode extends CordovaPlugin {
|
||||
Intent intent = new Intent(
|
||||
context, ForegroundService.class);
|
||||
|
||||
if (isDisabled) {
|
||||
if (isDisabled || isBind) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user