diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index 4d33eae01c..73be5beb2c 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -727,15 +727,16 @@ public abstract class PagedView extends ViewGrou pageScrollChanged = true; } - if (childCount == 0) { - return; - } - if (DEBUG) Log.d(TAG, "PagedView.onLayout()"); pageScrollChanged |= getPageScrolls(pageScrolls, true, SIMPLE_SCROLL_LOGIC); mPageScrolls = pageScrolls; + if (childCount == 0) { + onPageScrollsInitialized(); + return; + } + final LayoutTransition transition = getLayoutTransition(); // If the transition is running defer updating max scroll, as some empty pages could // still be present, and a max scroll change could cause sudden jumps in scroll.