Merge changes I7dc8f5fd,Ia5262ca7 into rvc-dev am: 279238f3c2 am: 671d3aed9a

Change-Id: I258abe30eef2beefae001d204f75d154af8f2903
This commit is contained in:
Selim Cinek
2020-04-09 17:59:28 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 4 deletions

View File

@@ -7589,10 +7589,8 @@ public class Notification implements Parcelable
>= Build.VERSION_CODES.P;
boolean isOneToOne;
CharSequence nameReplacement = null;
Icon avatarReplacement = null;
if (!atLeastP) {
isOneToOne = TextUtils.isEmpty(conversationTitle);
avatarReplacement = mBuilder.mN.mLargeIcon;
if (hasOnlyWhiteSpaceSenders()) {
isOneToOne = true;
nameReplacement = conversationTitle;
@@ -7641,7 +7639,7 @@ public class Notification implements Parcelable
contentView.setBoolean(R.id.status_bar_latest_event_content, "setIsCollapsed",
isCollapsed);
contentView.setIcon(R.id.status_bar_latest_event_content, "setAvatarReplacement",
avatarReplacement);
mBuilder.mN.mLargeIcon);
contentView.setCharSequence(R.id.status_bar_latest_event_content, "setNameReplacement",
nameReplacement);
contentView.setBoolean(R.id.status_bar_latest_event_content, "setIsOneToOne",

View File

@@ -169,7 +169,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();