Fix NaN test.

Found by Error Prone.
Bug: 27723540

Change-Id: Ia4fc511a634e76508384c83dc74d6d01ab1bc839
This commit is contained in:
Ian Rogers
2016-05-27 13:50:05 -07:00
parent 6f2f02e4ae
commit 310ddc313f

View File

@@ -912,7 +912,7 @@ public final class PrintSpoolerService extends Service {
printJob.isCancelling()));
float progress = printJob.getProgress();
if (progress != Float.NaN) {
if (!Float.isNaN(progress)) {
serializer.attribute(null, ATTR_PROGRESS, String.valueOf(progress));
}