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

Commit 93e9b456 authored by felkachang's avatar felkachang Committed by android-build-merger
Browse files

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

am: 8861d33d

Change-Id: I42aba38e24a3a9bb5c7084a07cf68ef191d07a75
parents d2d52d2c 8861d33d
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);
    }