Fix a crash in print spooler.

A recent bug fix exposed another one where we were not updating
the internal state of the remote print document after it finishes
updating. This resulted in a crash on every print.

bug:16966145

Change-Id: I398ff7976533241e3d4cb6cd27f69cdc25e67be9
This commit is contained in:
Svet Ganov
2014-09-12 19:25:27 -07:00
parent 2642357b82
commit 05ff998fd8

View File

@@ -107,11 +107,13 @@ public final class RemotePrintDocument {
mDocumentInfo.info.getPageCount());
}
// Notify we are done.
mState = STATE_UPDATED;
notifyUpdateCompleted();
}
}
} else {
// We always notify after a write.
mState = STATE_UPDATED;
notifyUpdateCompleted();
}
runPendingCommand();