Fixing an issue where other pages were taking on the min width of the widget page.

Change-Id: I256d2dc918ca8760ee58c9cb430dd1c49c5ceea0
This commit is contained in:
Winson Chung committed 2011-03-18 11:32:26 -07:00
1 parent ac5f8b75ec
commit 34b23d5c8c
2 files changed
+7 -2

No files matched your search

@@ -1128,8 +1128,10 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
}
// Set a min page width for PagedView layout if we have more than a single page
if (enforceMinimumPagedWidths) {
setMinimumWidthOverride((childCount > 1) ? mMinPageWidth : 0);
if (enforceMinimumPagedWidths && childCount > 1) {
setMinimumWidthOverride(mMinPageWidth);
} else {
resetMinimumWidthOverride();
}
// Bound the current page index