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

Commit 6a2b2cd4 authored by lyn's avatar lyn
Browse files

Fix setTranslation NPE when shelf icon is null

Fixes: 410844424
Test: manual
Flag: EXEMPT bug fix
Change-Id: I3d9f0f32a945ac31d8c199916dcc05934563e652
parent 46ec133f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2800,7 +2800,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
            // In order to keep the shelf in sync with this swiping, we're simply translating
            // it's icon by the same amount. The translation is already being used for the normal
            // positioning, so we can use the scrollX instead.
            getShelfIcon().setScrollX((int) -translationX);
            StatusBarIconView shelfIcon = getShelfIcon();
            if (shelfIcon != null) {
                shelfIcon.setScrollX((int) -translationX);
            }
        }

        if (mMenuRow != null && mMenuRow.getMenuView() != null) {