Merge "Unset is -1 not Nan"
This commit is contained in:
committed by
Android (Google) Code Review
commit
d366011d65
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user