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

Commit 6f570749 authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Fix QS scrolling for RTL languages.

Change-Id: I9d5efb1f6f13bb8fbe6b9ffd9f4fa1eeaec572b2
Fixes: 80494552
Test: manual
parent 1a8ca4a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -189,8 +189,9 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
        // marquee. This will ensure that accessibility doesn't announce the TYPE_VIEW_SELECTED
        // event on any of the children.
        setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
        int currentItem = isLayoutRtl() ? mPages.size() - 1 - getCurrentItem() : getCurrentItem();
        for (int i = 0; i < mPages.size(); i++) {
            mPages.get(i).setSelected(i == getCurrentItem() ? selected : false);
            mPages.get(i).setSelected(i == currentItem ? selected : false);
        }
        setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
    }