Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2020-03-18 20:06:00 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
16291d19c042178eb06a67833788ba82b97397c6
16291d19
1 parent
c43a924a
Fix Android layoutPdf canceled result
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
printing/android/src/main/java/net/nfet/flutter/printing/PrintingJob.java
printing/android/src/main/java/net/nfet/flutter/printing/PrintingJob.java
View file @
16291d1
...
...
@@ -143,11 +143,14 @@ public class PrintingJob extends PrintDocumentAdapter {
:
printJob
.
getInfo
().
getState
();
if
(
state
==
PrintJobInfo
.
STATE_COMPLETED
)
{
printing
.
onCompleted
(
PrintingJob
.
this
,
true
,
""
);
printing
.
onCompleted
(
PrintingJob
.
this
,
true
,
null
);
wait
[
0
]
=
false
;
}
else
if
(
state
==
PrintJobInfo
.
STATE_CANCELED
||
state
==
PrintJobInfo
.
STATE_FAILED
)
{
printing
.
onCompleted
(
PrintingJob
.
this
,
false
,
"User canceled"
);
}
else
if
(
state
==
PrintJobInfo
.
STATE_CANCELED
)
{
printing
.
onCompleted
(
PrintingJob
.
this
,
false
,
null
);
wait
[
0
]
=
false
;
}
else
if
(
state
==
PrintJobInfo
.
STATE_FAILED
)
{
printing
.
onCompleted
(
PrintingJob
.
this
,
false
,
"Unable to print"
);
wait
[
0
]
=
false
;
}
}
...
...
Please
register
or
login
to post a comment