diff options
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index 5c61b0b..332f6e4 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -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 |