summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2020-04-03 16:58:12 -0700
committer Selim Cinek <cinek@google.com> 2020-04-03 17:00:49 -0700
commitdcfa46c5cacd137c7e95e8b9a86e5bf348cef6e0 (patch)
treecf1b1e5fa38bd260f2ad37cc1ecbef2a020e15bb
parentba069aeea388c572fb787dd865b91545e7d5c545 (diff)
Fixed an issue where the conversation title was showing doubled
For conversations, it's not necessary anymore to extract the conversation title into the heads up layout. Fixes: 152655946 Test: add conversation group, observe no double text Change-Id: I99594ae9e503cf8589603899e0053793be96958a
-rw-r--r--core/java/android/app/Notification.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index f461a1708373..7a593498e967 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -7158,7 +7158,8 @@ public class Notification implements Parcelable
CharSequence conversationTitle = !TextUtils.isEmpty(super.mBigContentTitle)
? super.mBigContentTitle
: mConversationTitle;
- if (!TextUtils.isEmpty(conversationTitle) && !hasOnlyWhiteSpaceSenders()) {
+ if (mConversationType == CONVERSATION_TYPE_LEGACY
+ && !TextUtils.isEmpty(conversationTitle) && !hasOnlyWhiteSpaceSenders()) {
return conversationTitle;
}
return null;