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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user