print returns boolean to inform about the result
This commit is contained in:
@@ -229,7 +229,10 @@ public class Printer extends CordovaPlugin {
|
||||
public void run() {
|
||||
for (;;) {
|
||||
if (job.isCancelled() || job.isCompleted() || job.isFailed()) {
|
||||
command.success();
|
||||
PluginResult res = new PluginResult(
|
||||
PluginResult.Status.OK, job.isCompleted());
|
||||
|
||||
command.sendPluginResult(res);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user