Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 310ddc31 authored by Ian Rogers's avatar Ian Rogers
Browse files

Fix NaN test.

Found by Error Prone.
Bug: 27723540

Change-Id: Ia4fc511a634e76508384c83dc74d6d01ab1bc839
parent 6f2f02e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -912,7 +912,7 @@ public final class PrintSpoolerService extends Service {
                            printJob.isCancelling()));
                            printJob.isCancelling()));


                    float progress = printJob.getProgress();
                    float progress = printJob.getProgress();
                    if (progress != Float.NaN) {
                    if (!Float.isNaN(progress)) {
                        serializer.attribute(null, ATTR_PROGRESS, String.valueOf(progress));
                        serializer.attribute(null, ATTR_PROGRESS, String.valueOf(progress));
                    }
                    }