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

Commit 04a9bc4a authored by Vadim Tryshev's avatar Vadim Tryshev Committed by Android (Google) Code Review
Browse files

Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED...

Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event." into ub-launcher3-burnaby
parents eabf77ca 7066c123
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -623,6 +623,11 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
            if (mCurrentPage != getNextPage()) {
                AccessibilityEvent ev =
                        AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED);
                ev.setScrollable(true);
                ev.setScrollX(getScrollX());
                ev.setScrollY(getScrollY());
                ev.setMaxScrollX(mMaxScrollX);
                ev.setMaxScrollY(0);

                sendAccessibilityEventUnchecked(ev);
            }
@@ -2349,7 +2354,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
    @Override
    public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
        super.onInitializeAccessibilityEvent(event);
        event.setScrollable(true);
        event.setScrollable(getPageCount() > 1);
    }

    @Override