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

Commit 38c4368f authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[NotifRedesign] Use correct header for group animation

Fixes: 423440591
Flag: android.app.notifications_redesign_templates
Test: Manual. Post minimized notification pull shade down and up.
Change-Id: Ia90541217cc7f65c6b0d847734b0471d3a1239e6
parent 7649dfa9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1225,12 +1225,13 @@ public class NotificationChildrenContainer extends ViewGroup
                mHeaderViewState.applyToView(mGroupHeader);
            }

            if (notificationsRedesignTemplates()) {
            if (notificationsRedesignTemplates()
                    && mCurrentHeader instanceof NotificationHeaderView groupHeader) {
                if (mTopLineViewState != null) {
                    mTopLineViewState.animateTo(mGroupHeader.getTopLineView(), properties);
                    mTopLineViewState.animateTo(groupHeader.getTopLineView(), properties);
                }
                if (mExpandButtonViewState != null) {
                    mExpandButtonViewState.animateTo(mGroupHeader.getExpandButton(), properties);
                    mExpandButtonViewState.animateTo(groupHeader.getExpandButton(), properties);
                }
            }
        }