Fix NaN test.
Found by Error Prone. Bug: 27723540 Change-Id: Ia4fc511a634e76508384c83dc74d6d01ab1bc839
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user