From 2f7f7b8803e0aa0c4aadc62bf77b00cfde0f4946 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 10 Mar 2020 15:41:13 -0700 Subject: Fixed various conversation layout appearences Previously the layout would break if the developer specified empty names or no avatars. Similarly if a developer specified a conversationtitle in a one to one chat, it would break badly as well. Bug: 150905003 Test: create various edge case chats and observe the layout Change-Id: If904c85e6d582b4735eb928d66749a7863fbbc06 --- core/java/android/app/Notification.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java/android/app/Notification.java') diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index d48e5533321c..b54adbb0ea0f 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -7536,6 +7536,8 @@ public class Notification implements Parcelable nameReplacement); contentView.setBoolean(R.id.status_bar_latest_event_content, "setIsOneToOne", isOneToOne); + contentView.setCharSequence(R.id.status_bar_latest_event_content, + "setConversationTitle", conversationTitle); contentView.setIcon(R.id.status_bar_latest_event_content, "setLargeIcon", mBuilder.mN.mLargeIcon); contentView.setBundle(R.id.status_bar_latest_event_content, "setData", -- cgit v1.2.3