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

Commit f92a1fdb authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where notifications shadows were blinking out

Bug: 22567770
Change-Id: I2d335241a287d0c64e659221994f19b7c13eccd3
parent 00ab3578
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -374,7 +374,11 @@ public abstract class ExpandableView extends FrameLayout {
    }

    private void updateClipping() {
        mClipRect.set(0, mClipTopOptimization, getWidth(), getActualHeight());
        int top = mClipTopOptimization;
        if (top >= getActualHeight()) {
            top = getActualHeight() - 1;
        }
        mClipRect.set(0, top, getWidth(), getActualHeight());
        setClipBounds(mClipRect);
    }

+3 −1
Original line number Diff line number Diff line
@@ -413,7 +413,9 @@ public class StackScrollAlgorithm {
        ExpandableNotificationRow topHeadsUpEntry = ambientState.getTopHeadsUpEntry();

        int childCount = algorithmState.visibleChildren.size();
        int numberOfElementsCompletelyIn = (int) algorithmState.itemsInTopStack;
        int numberOfElementsCompletelyIn = algorithmState.partialInTop == 1.0f
                ? algorithmState.lastTopStackIndex
                : (int) algorithmState.itemsInTopStack;
        for (int i = 0; i < childCount; i++) {
            ExpandableView child = algorithmState.visibleChildren.get(i);
            StackViewState childViewState = resultState.getViewStateForView(child);