diff options
| author | Selim Cinek <cinek@google.com> | 2020-03-10 15:41:13 -0700 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2020-03-12 13:39:36 -0700 |
| commit | 2f7f7b8803e0aa0c4aadc62bf77b00cfde0f4946 (patch) | |
| tree | 2747f9c097d1d67f7a32cd93fb98d511c3d55e69 /core/java/android/app/Notification.java | |
| parent | 8baa70f276d75c059638c4a769b66830e72cc207 (diff) | |
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
Diffstat (limited to 'core/java/android/app/Notification.java')
| -rw-r--r-- | core/java/android/app/Notification.java | 2 |
1 files changed, 2 insertions, 0 deletions
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", |
