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

Commit 8861d33d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev

parents 6d1eca3c 6eb868a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -536,7 +536,8 @@ public class NotificationIconContainer extends AlphaOptimizedFrameLayout {
            return 0;
        }

        int translation = (int) (mLastVisibleIconState.xTranslation + mIconSize);
        int translation = (int) (isLayoutRtl() ? getWidth() - mLastVisibleIconState.xTranslation
                : mLastVisibleIconState.xTranslation + mIconSize);
        // There's a chance that last translation goes beyond the edge maybe
        return Math.min(getWidth(), translation);
    }