Merge "Select the right pages to scrap" into oc-dev am: 890cb59003

am: 955aead48d

Change-Id: Ie7ea8573c00506a035a1eb61bdff7f66780e27ce
This commit is contained in:
Philip P. Moltmann
2017-06-14 15:03:42 +00:00
committed by android-build-merger

View File

@@ -426,7 +426,7 @@ public final class PageRangeUtils {
// be based off the start of the written ones instead of zero.
// The written pages are always non-null and not empty.
final int offset = -pagesWrittenToFile[0].getStart();
PageRangeUtils.offset(pagesInDocRequested, offset);
PageRangeUtils.offset(pagesInDocRequested.clone(), offset);
return pagesInDocRequested;
} else if (Arrays.equals(pagesInDocRequested, ALL_PAGES_RANGE)
&& isAllPages(pagesWrittenToFile, pageCount)) {