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
This commit is contained in:
Selim Cinek
2020-04-08 12:36:43 -07:00
parent cd274d9e5d
commit 792eb06ff0

View File

@@ -161,7 +161,7 @@ public class NotificationHeaderViewWrapper extends NotificationViewWrapper {
@Override
public void onContentUpdated(ExpandableNotificationRow row) {
super.onContentUpdated(row);
mIsLowPriority = row.isLowPriority();
mIsLowPriority = row.getEntry().isAmbient();
mTransformLowPriorityTitle = !row.isChildInGroup() && !row.isSummaryWithChildren();
ArraySet<View> previousViews = mTransformationHelper.getAllTransformingViews();