From 792eb06ff0e1c88f3abce738c39d79e65c0dddcb Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 8 Apr 2020 12:36:43 -0700 Subject: [PATCH] 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 --- .../notification/row/wrapper/NotificationHeaderViewWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java index 0c311b403c489..13d7a9b47c2f8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationHeaderViewWrapper.java @@ -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 previousViews = mTransformationHelper.getAllTransformingViews();