summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-03-21 00:46:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-21 00:46:13 +0000
commitfd8d9650acd0a628a83975b691bede97b007845c (patch)
treecba80390453d6c852218b5092ca21c8a06f1ba14 /core/java/android/app/Notification.java
parentaceabbf758f23098ca8393aba20f2a146e3f6e68 (diff)
parent928bb16c9fbcb8f05c2ba16c9e3517154f054c6b (diff)
Merge "Add importance ring around conversation badge" into rvc-dev
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index f6ab9af4b84f..985166e887c7 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -7583,6 +7583,7 @@ public class Notification implements Parcelable
isOneToOne = !isGroupConversation();
}
boolean isConversationLayout = mConversationType != CONVERSATION_TYPE_LEGACY;
+ boolean isImportantConversation = mConversationType == CONVERSATION_TYPE_IMPORTANT;
Icon largeIcon = isConversationLayout ? mShortcutIcon : mBuilder.mN.mLargeIcon;
TemplateBindResult bindResult = new TemplateBindResult();
StandardTemplateParams p = mBuilder.mParams.reset()
@@ -7625,6 +7626,10 @@ public class Notification implements Parcelable
isOneToOne);
contentView.setCharSequence(R.id.status_bar_latest_event_content,
"setConversationTitle", conversationTitle);
+ if (isConversationLayout) {
+ contentView.setBoolean(R.id.status_bar_latest_event_content,
+ "setIsImportantConversation", isImportantConversation);
+ }
contentView.setIcon(R.id.status_bar_latest_event_content, "setLargeIcon",
largeIcon);
contentView.setBundle(R.id.status_bar_latest_event_content, "setData",