summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2020-03-16 19:46:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-16 19:46:09 +0000
commit8a6c2bf38d59ecff54e6c376cb337d5fce2f2769 (patch)
tree827833aa35baae819a6806c4cc31a0764e69e67a /core/java/android/app/Notification.java
parent62ee4e97adbab08b3c24d0d42598a44474182701 (diff)
parentafc2058776c2ba2876bf72c2ad80ed6df7c031de (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.java8
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));