diff options
| author | Selim Cinek <cinek@google.com> | 2020-03-13 20:15:38 -0700 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2020-03-13 20:15:38 -0700 |
| commit | afc2058776c2ba2876bf72c2ad80ed6df7c031de (patch) | |
| tree | 587b8e233aec0d79e43fc5f67d6e0dea82ff58d7 /core/java/android/app/Notification.java | |
| parent | a91778a3e33356b0b32281d9dc42857aff6cfe2f (diff) | |
Fixed various paddings of the messaging layout
Previously the expand button could run into the header
And the content had no padding at the end.
Also, the content was incorrectly padded when collapsed.
Bug: 150905003
Test: add messagingLayout, observe UI
Change-Id: I3178b21dc8831f986a8249ee1e22aebffff75ef1
Diffstat (limited to 'core/java/android/app/Notification.java')
| -rw-r--r-- | core/java/android/app/Notification.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b54adbb0ea0f..cb9883b3f41d 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -7515,9 +7515,11 @@ public class Notification implements Parcelable p, bindResult); addExtras(mBuilder.mN.extras); - // also update the end margin if there is an image - contentView.setViewLayoutMarginEnd(R.id.notification_messaging, - bindResult.getIconMarginEnd()); + if (!CONVERSATION_LAYOUT_ENABLED) { + // also update the end margin if there is an image + contentView.setViewLayoutMarginEnd(R.id.notification_messaging, + bindResult.getIconMarginEnd()); + } contentView.setInt(R.id.status_bar_latest_event_content, "setLayoutColor", mBuilder.isColorized(p) ? mBuilder.getPrimaryTextColor(p) : mBuilder.resolveContrastColor(p)); |
