From 3dd023f363f205292c2d869b82fa140cee020fce Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 16 Jul 2020 12:56:37 -0400 Subject: [PATCH] UX updates for notif history - no relative time - fix background color in dark theme - fix text alignment in RTL Test: manual Bug: 160061165 Bug: 160388261 Bug: 154795795 Change-Id: I7d4c5a5f81ce5b5ce43fdaa3ee99184906753a76 --- res/layout/notification_history_app_layout.xml | 3 ++- res/layout/notification_sbn_log_row.xml | 4 ++-- res/values-night/colors.xml | 1 + res/values/colors.xml | 1 + .../notification/history/NotificationHistoryViewHolder.java | 1 - 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/res/layout/notification_history_app_layout.xml b/res/layout/notification_history_app_layout.xml index 481253a10e9..aaca0fd9224 100644 --- a/res/layout/notification_history_app_layout.xml +++ b/res/layout/notification_history_app_layout.xml @@ -55,7 +55,8 @@ android:layout_height="wrap_content" android:layout_width="wrap_content" android:paddingStart="6dp" - android:layout_gravity="center_vertical" + android:layout_gravity="start|center_vertical" + android:textDirection="locale" android:paddingTop="8dp" android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"/> diff --git a/res/layout/notification_sbn_log_row.xml b/res/layout/notification_sbn_log_row.xml index 6156d261ebb..ee143b0079c 100644 --- a/res/layout/notification_sbn_log_row.xml +++ b/res/layout/notification_sbn_log_row.xml @@ -130,6 +130,6 @@ + android:layout_height="wrap_content" + android:background="?android:attr/listDivider" /> \ No newline at end of file diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml index 4ce02ee0e29..354da77fe14 100644 --- a/res/values-night/colors.xml +++ b/res/values-night/colors.xml @@ -27,6 +27,7 @@ @*android:color/material_grey_800 #AECBFA #5F6368 + #202124 ?android:attr/colorAccent @android:color/black diff --git a/res/values/colors.xml b/res/values/colors.xml index 322998c2be0..ff76016f239 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -129,6 +129,7 @@ #DADCE0 #1967D2 #FFFFFF + ?android:attr/colorBackgroundFloating @*android:color/accent_device_default_light diff --git a/src/com/android/settings/notification/history/NotificationHistoryViewHolder.java b/src/com/android/settings/notification/history/NotificationHistoryViewHolder.java index 4991548e2c7..da1ed118ca4 100644 --- a/src/com/android/settings/notification/history/NotificationHistoryViewHolder.java +++ b/src/com/android/settings/notification/history/NotificationHistoryViewHolder.java @@ -33,7 +33,6 @@ public class NotificationHistoryViewHolder extends RecyclerView.ViewHolder { NotificationHistoryViewHolder(View itemView) { super(itemView); mTime = itemView.findViewById(R.id.timestamp); - mTime.setShowRelativeTime(true); mTitle = itemView.findViewById(R.id.title); mSummary = itemView.findViewById(R.id.text); }