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

Commit 792eb06f authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed the transformation of min priority notifications

The headertext wasn't animating to the title anymore because
the order of the low-priority call has changed in a refactor
We're now looking at the datasource directly instead of looking
at the row state avoiding the ordering issue

Fixes: 151253867
Test: add min priority notification, observe header transforms to title
Change-Id: I7dc8f5fdef4f1f449064e66bcc63a85f7e69a185
parent cd274d9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -161,7 +161,7 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper {
    @Override
    @Override
    public void onContentUpdated(ExpandableNotificationRow row) {
    public void onContentUpdated(ExpandableNotificationRow row) {
        super.onContentUpdated(row);
        super.onContentUpdated(row);
        mIsLowPriority = row.isLowPriority();
        mIsLowPriority = row.getEntry().isAmbient();
        mTransformLowPriorityTitle = !row.isChildInGroup() && !row.isSummaryWithChildren();
        mTransformLowPriorityTitle = !row.isChildInGroup() && !row.isSummaryWithChildren();
        ArraySet<View> previousViews = mTransformationHelper.getAllTransformingViews();
        ArraySet<View> previousViews = mTransformationHelper.getAllTransformingViews();