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

Commit d5b8d158 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez Committed by Android (Google) Code Review
Browse files

Merge "Avoid clipping when a notification is translating." into main

parents f3d0b226 661a3d1c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2803,6 +2803,13 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        if (mMenuRow != null && mMenuRow.getMenuView() != null) {
            mMenuRow.onParentTranslationUpdate(translationX);
        }
        // Clipping occurs for children of a NotificationChildrenContainer every time the container
        // needs to draw a child (see drawChild of the container class). Thus, we invalidate the
        // container so that the clip path used to clip the children can access the latest
        // translation of this child.
        if (getParent() instanceof NotificationChildrenContainer childrenContainer) {
            childrenContainer.invalidate();
        }
    }

    @Override