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

Commit 61cfd4bc authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a crash with the top headsup entry

Because of an optimization introduced, the topheads
up entry could be null, leading to a Nullpointer.

Change-Id: Ibba73d652b0b4aac15cc62e57d1dfcf88dc0a647
Fixes: 70386428
Test: manual expand while hun is visible
parent cdf3bd03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ public class StackScrollAlgorithm {
                childState.height = Math.max(row.getIntrinsicHeight(), childState.height);
                childState.hidden = false;
                ExpandableViewState topState = resultState.getViewStateForView(topHeadsUpEntry);
                if (!isTopEntry && (!mIsExpanded
                if (topState != null && !isTopEntry && (!mIsExpanded
                        || unmodifiedEndLocation < topState.yTranslation + topState.height)) {
                    // Ensure that a headsUp doesn't vertically extend further than the heads-up at
                    // the top most z-position