Unset is -1 not Nan

Change-Id: I6e7fac4b9f1c3dc6cc88c786db856ddecf3f8538
This commit is contained in:
Philip P. Moltmann
2015-12-02 15:39:09 -08:00
parent 14b4836a42
commit a958fc336b

View File

@@ -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);
}
}