mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +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
|
||||
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);
|
||||
} catch (Exception e) {
|
||||
fireEvent(Event.FAILURE, e.getMessage());
|
||||
fireEvent(Event.FAILURE, String.format("'%s'", e.getMessage()));
|
||||
}
|
||||
|
||||
isBind = true;
|
||||
|
Loading…
Reference in New Issue
Block a user