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

Commit eeaa8ee6 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

a11y: disabling animation for task list swipes

Bug: 77632611
Test: Manual
Change-Id: Ibbfba5f3219d63a5604544eea33422ee91f54c01
parent d7fd83a8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -695,7 +695,11 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
    public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) {
        int page = indexToPage(indexOfChild(child));
        if (page != mCurrentPage || !mScroller.isFinished()) {
            if (immediate) {
                setCurrentPage(page);
            } else {
                snapToPage(page);
            }
            return true;
        }
        return false;