mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-15 03:54:54 +00:00
Fix invalid string format
This commit is contained in:
parent
4b31ee3097
commit
d132215100
@ -78,7 +78,7 @@ public class BackgroundMode extends CordovaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onServiceDisconnected(ComponentName name) {
|
public void onServiceDisconnected(ComponentName name) {
|
||||||
fireEvent(Event.FAILURE, "service disconnected");
|
fireEvent(Event.FAILURE, "'service disconnected'");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ public class BackgroundMode extends CordovaPlugin {
|
|||||||
|
|
||||||
context.startService(intent);
|
context.startService(intent);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
fireEvent(Event.FAILURE, e.getMessage());
|
fireEvent(Event.FAILURE, String.format("'%s'", e.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
isBind = true;
|
isBind = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user