Merge "Unset is -1 not Nan"

This commit is contained in:
Philip P. Moltmann
2015-12-03 00:01:42 +00:00
committed by Android (Google) Code Review

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