Merge "Saving/restoring current page in AppsCustomize. (5050168)"

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2011-08-18 10:55:17 -07:00
commit ed718b18a9
4 files changed
+85 -4

No files matched your search

+1 -1
View File
@@ -1649,7 +1649,7 @@ public abstract class PagedView extends ViewGroup {
// Set a new page as the current page if necessary
if (currentPage > -1) {
setCurrentPage(currentPage);
setCurrentPage(Math.min(getPageCount() - 1, currentPage));
}
// Mark each of the pages as dirty