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

Commit 25ab63e8 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed an issue where the background was visible while pulsing" into qt-dev am: bd32a804

am: f22112ba

Change-Id: Ib184e298894fe83d5a3d0172e5525f99ecdd77a7
parents d3d81a9f f22112ba
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -864,8 +864,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
        int backgroundRectTop = top;
        int backgroundRectTop = top;
        int lastSectionBottom =
        int lastSectionBottom =
                mSections[0].getCurrentBounds().bottom + animationYOffset;
                mSections[0].getCurrentBounds().bottom + animationYOffset;
        int previousLeft = left;
        int currentLeft = left;
        int previousRight = right;
        int currentRight = right;
        boolean first = true;
        boolean first = true;
        for (NotificationSection section : mSections) {
        for (NotificationSection section : mSections) {
            if (section.getFirstVisibleChild() == null) {
            if (section.getFirstVisibleChild() == null) {
@@ -878,23 +878,23 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
            // as separate roundrects, as the rounded corners right next to each other look
            // as separate roundrects, as the rounded corners right next to each other look
            // bad.
            // bad.
            if (sectionTop - lastSectionBottom > DISTANCE_BETWEEN_ADJACENT_SECTIONS_PX
            if (sectionTop - lastSectionBottom > DISTANCE_BETWEEN_ADJACENT_SECTIONS_PX
                    || (previousLeft != ownLeft && !first)) {
                    || ((currentLeft != ownLeft || currentRight != ownRight) && !first)) {
                canvas.drawRoundRect(ownLeft,
                canvas.drawRoundRect(currentLeft,
                        backgroundRectTop,
                        backgroundRectTop,
                        ownRight,
                        currentRight,
                        lastSectionBottom,
                        lastSectionBottom,
                        mCornerRadius, mCornerRadius, mBackgroundPaint);
                        mCornerRadius, mCornerRadius, mBackgroundPaint);
                backgroundRectTop = sectionTop;
                backgroundRectTop = sectionTop;
            }
            }
            previousLeft = ownLeft;
            currentLeft = ownLeft;
            previousRight = ownRight;
            currentRight = ownRight;
            lastSectionBottom =
            lastSectionBottom =
                    section.getCurrentBounds().bottom + animationYOffset;
                    section.getCurrentBounds().bottom + animationYOffset;
            first = false;
            first = false;
        }
        }
        canvas.drawRoundRect(previousLeft,
        canvas.drawRoundRect(currentLeft,
                backgroundRectTop,
                backgroundRectTop,
                previousRight,
                currentRight,
                lastSectionBottom,
                lastSectionBottom,
                mCornerRadius, mCornerRadius, mBackgroundPaint);
                mCornerRadius, mCornerRadius, mBackgroundPaint);
    }
    }