diff options
| author | Selim Cinek <cinek@google.com> | 2020-03-16 19:46:09 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-16 19:46:09 +0000 |
| commit | 8a6c2bf38d59ecff54e6c376cb337d5fce2f2769 (patch) | |
| tree | 827833aa35baae819a6806c4cc31a0764e69e67a /core/java/android/app/Notification.java | |
| parent | 62ee4e97adbab08b3c24d0d42598a44474182701 (diff) | |
| parent | afc2058776c2ba2876bf72c2ad80ed6df7c031de (diff) | |
Merge "Fixed various paddings of the messaging layout" into rvc-dev
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 061e5ff35f55..864af3d4ae4d 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -7526,9 +7526,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)); |
