OSDN Git Service

Always trigger a write if no pages are written
authorPhilip P. Moltmann <moltmann@google.com>
Thu, 14 Jul 2016 00:05:03 +0000 (17:05 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Thu, 14 Jul 2016 05:14:51 +0000 (05:14 +0000)
commitfde8ecc2eaa014b29dfb44be9a0ba1f033f96141
tree023074869b64adf2a5d32f721ef0198933fca375
parentacef1eb7c665d61a2699a51cba621a299a5487dd
Always trigger a write if no pages are written

If a previous write was canceled we can end up in the situation where
the layout reports "not changes since layout" but no pages have been
written.

In this case we have to trigger a write even if the layout reports that
nothing changed.

Fixes: 24110832
Change-Id: I4b3f69581e63f4084cd3712861288ded7d9c9249
packages/PrintSpooler/src/com/android/printspooler/model/RemotePrintDocument.java