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

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

Fixed the visual appearance on heads-up notifications

Previously the wrong notifications were displayed on top
which could lead to heads-up notifications appearing
halfway.

Test: manual, add 2 heads-up see that the correct one is displayed
Change-Id: I723474e2fe1586e2011a9808f8b8c77a706a6070
Fixes: 36549554
parent aca84c0b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -495,12 +495,12 @@ public class StackScrollAlgorithm {
        int childCount = algorithmState.visibleChildren.size();
        float childrenOnTop = 0.0f;
        for (int i = childCount - 1; i >= 0; i--) {
            updateChildZValue(i, childrenOnTop,
            childrenOnTop = updateChildZValue(i, childrenOnTop,
                    resultState, algorithmState, ambientState);
        }
    }

    protected void updateChildZValue(int i, float childrenOnTop,
    protected float updateChildZValue(int i, float childrenOnTop,
            StackScrollState resultState, StackScrollAlgorithmState algorithmState,
            AmbientState ambientState) {
        ExpandableView child = algorithmState.visibleChildren.get(i);
@@ -538,6 +538,7 @@ public class StackScrollAlgorithm {
        } else {
            childViewState.zTranslation = baseZ;
        }
        return childrenOnTop;
    }

    public void setIsExpanded(boolean isExpanded) {