From 51425313dbcbdf2eac39ccc94e8143247323c19e Mon Sep 17 00:00:00 2001 From: Gus Prevas Date: Thu, 15 Nov 2018 15:16:14 -0500 Subject: [PATCH] Swaps position of expand button and bell icon. This change puts the expand caret at the end of the notification header if the new interruption model is turned on, and moves the bell icon on noisy notifications from the end of the header to directly after the header text. Test: manually Change-Id: I2a97f80920598f5f99f2d9c3b14d58858e1de1bb --- .../android/view/NotificationHeaderView.java | 5 ----- .../layout/notification_template_header.xml | 22 +++++++++---------- .../NotificationHeaderViewWrapper.java | 4 +++- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/core/java/android/view/NotificationHeaderView.java b/core/java/android/view/NotificationHeaderView.java index fa30221d2a30d..4a5ccdff0dd33 100644 --- a/core/java/android/view/NotificationHeaderView.java +++ b/core/java/android/view/NotificationHeaderView.java @@ -218,11 +218,6 @@ public class NotificationHeaderView extends ViewGroup { layoutRight = end - paddingEnd; end = layoutLeft = layoutRight - child.getMeasuredWidth(); } - if (child == mAudiblyAlertedIcon) { - int paddingEnd = mContentEndMargin; - layoutRight = end - paddingEnd; - end = layoutLeft = layoutRight - child.getMeasuredWidth(); - } if (getLayoutDirection() == LAYOUT_DIRECTION_RTL) { int ltrLeft = layoutLeft; layoutLeft = getWidth() - layoutRight; diff --git a/core/res/res/layout/notification_template_header.xml b/core/res/res/layout/notification_template_header.xml index 4ee97316083f9..433ae399c88cd 100644 --- a/core/res/res/layout/notification_template_header.xml +++ b/core/res/res/layout/notification_template_header.xml @@ -115,17 +115,6 @@ android:visibility="gone" android:contentDescription="@string/expand_button_content_description_collapsed" /> - +