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

Commit 3107cfac authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug with low priotity notification coloring

When there where only low priority notifications, the topmost
notification was not colored correctly.

Bug: 16197778
Change-Id: I9fe8da79cfa78a3b94a3107c9e1af83b859a093e
parent 9f7c25eb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -171,7 +171,10 @@ public class StackScrollAlgorithm {
        for (int i = 0; i < childCount; i++) {
            View child = algorithmState.visibleChildren.get(i);
            StackScrollState.ViewState childViewState = resultState.getViewStateForView(child);
            childViewState.belowSpeedBump = speedBumpIndex != -1 && i > speedBumpIndex;

            // The speed bump can also be gone, so equality needs to be taken when comparing
            // indices.
            childViewState.belowSpeedBump = speedBumpIndex != -1 && i >= speedBumpIndex;
        }
    }