Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e15329d2 authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing task misalignment" into ub-launcher3-edmonton

parents 68f13899 84b46f02
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -607,7 +607,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
        final int endIndex = mIsRtl ? -1 : childCount;
        final int delta = mIsRtl ? -1 : 1;

        final int verticalPadding = getPaddingTop() + getPaddingBottom();
        final int verticalCenter = (getPaddingTop() + getMeasuredHeight() + mInsets.top
                - mInsets.bottom - getPaddingBottom()) / 2;

        final int scrollOffsetLeft = mInsets.left + getPaddingLeft();
        boolean pageScrollChanged = false;
@@ -617,9 +618,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
                i += delta) {
            final View child = getPageAt(i);
            if (scrollLogic.shouldIncludeView(child)) {
                final int childTop = getPaddingTop() +
                        (getMeasuredHeight() - mInsets.bottom - verticalPadding
                                - child.getMeasuredHeight()) / 2;
                final int childTop = verticalCenter - child.getMeasuredHeight() / 2;
                final int childWidth = child.getMeasuredWidth();

                if (layoutChildren) {