Merge "Always trigger a write if no pages are written" into nyc-mr1-dev

This commit is contained in:
Philip P. Moltmann
2016-07-14 16:21:10 +00:00
committed by Android (Google) Code Review

View File

@@ -94,6 +94,7 @@ public final class RemotePrintDocument {
// but the content has changed.
if (mNextCommand == null) {
if (mUpdateSpec.pages != null && (mDocumentInfo.changed
|| mDocumentInfo.writtenPages == null
|| (mDocumentInfo.info.getPageCount()
!= PrintDocumentInfo.PAGE_COUNT_UNKNOWN
&& !PageRangeUtils.contains(mDocumentInfo.writtenPages,