Page size not always adjusted

A user can select the pages to print by selecting a range from the
UI after which the selected pages appear in the preview list. Now
the user can further prune pages by clicking on them. If the number
of pages change to two or one the page position and size were not
adjusted. Now after the constraints of desected by clicking pages
are propafated the page size position is also computed.

bug:16297811

Change-Id: I62c0ae8ab5b1d91b120cbf9faa9653ef4ccbd97f
This commit is contained in:
Svetoslav
2014-07-14 13:31:19 -07:00
parent 8fbd0dc303
commit 17d734fee4

View File

@@ -389,6 +389,7 @@ public final class PageAdapter extends Adapter {
mSelectedPages = selectedPages;
mSelectedPageCount = PageRangeUtils.getNormalizedPageCount(
mSelectedPages, mDocumentPageCount);
updatePreviewAreaAndPageSize();
notifyDataSetChanged();
}
return mSelectedPages;