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

Commit 27f47543 authored by Jeff DeCew's avatar Jeff DeCew Committed by Android (Google) Code Review
Browse files

Merge "Fix setTranslation NPE when shelf icon is null" into main

parents a547cf76 6a2b2cd4
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) {