Unset is -1 not Nan
Change-Id: I6e7fac4b9f1c3dc6cc88c786db856ddecf3f8538
This commit is contained in:
@@ -1070,7 +1070,7 @@ public final class PrintSpoolerService extends Service {
|
||||
if (progressString != null) {
|
||||
float progress = Float.parseFloat(progressString);
|
||||
|
||||
if (progress != Float.NaN) {
|
||||
if (progress != -1) {
|
||||
printJob.setProgress(progress);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user