diff options
author | Svet Ganov <svetoslavganov@google.com> | 2014-09-12 19:25:27 -0700 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2014-09-12 19:25:32 -0700 |
commit | 05ff998fd86eff15e91694bc205ea0af0de83284 (patch) | |
tree | 7bfbb086815b3f26d3ebb2626d46209997d38190 /packages/PrintSpooler/src | |
parent | 2642357b8223b417019cf072e59257d2c65c3292 (diff) | |
download | frameworks_base-05ff998fd86eff15e91694bc205ea0af0de83284.zip frameworks_base-05ff998fd86eff15e91694bc205ea0af0de83284.tar.gz frameworks_base-05ff998fd86eff15e91694bc205ea0af0de83284.tar.bz2 |
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
Diffstat (limited to 'packages/PrintSpooler/src')
-rw-r--r-- | packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java index 429437d..c53fcad 100644 --- a/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java +++ b/packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java @@ -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(); |