summaryrefslogtreecommitdiffstats
path: root/packages/PrintSpooler/src
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2014-09-12 19:25:27 -0700
committerSvet Ganov <svetoslavganov@google.com>2014-09-12 19:25:32 -0700
commit05ff998fd86eff15e91694bc205ea0af0de83284 (patch)
tree7bfbb086815b3f26d3ebb2626d46209997d38190 /packages/PrintSpooler/src
parent2642357b8223b417019cf072e59257d2c65c3292 (diff)
downloadframeworks_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.java2
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();