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

Commit e681aed1 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am f92a1fdb: Fixed a bug where notifications shadows were blinking out

* commit 'f92a1fdb':
  Fixed a bug where notifications shadows were blinking out
parents 3249330c f92a1fdb
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);