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

Commit 43a7706f authored by Shawn Lin's avatar Shawn Lin Committed by Android (Google) Code Review
Browse files

Merge "Fixed notification background shifted in landscape" into qt-dev

parents 00a71b4e 27716724
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -2484,9 +2484,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
     */
     */
    @ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
    @ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
    private void updateBackgroundBounds() {
    private void updateBackgroundBounds() {
        getLocationInWindow(mTempInt2);
        int left = mSidePaddings;
        int left = mTempInt2[0] + mSidePaddings;
        int right = getWidth() - mSidePaddings;
        int right = mTempInt2[0] + getWidth() - mSidePaddings;
        for (NotificationSection section : mSections) {
        for (NotificationSection section : mSections) {
            section.getBounds().left = left;
            section.getBounds().left = left;
            section.getBounds().right = right;
            section.getBounds().right = right;