Merge "Fixed an issue where the largeIcon wouldn't be shown for non-shortcuts" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-21 03:06:25 +00:00
committed by Android (Google) Code Review

View File

@@ -7584,7 +7584,9 @@ public class Notification implements Parcelable
}
boolean isConversationLayout = mConversationType != CONVERSATION_TYPE_LEGACY;
boolean isImportantConversation = mConversationType == CONVERSATION_TYPE_IMPORTANT;
Icon largeIcon = isConversationLayout ? mShortcutIcon : mBuilder.mN.mLargeIcon;
Icon largeIcon = isConversationLayout && mShortcutIcon != null
? mShortcutIcon
: mBuilder.mN.mLargeIcon;
TemplateBindResult bindResult = new TemplateBindResult();
StandardTemplateParams p = mBuilder.mParams.reset()
.hasProgress(false)