From 0761f46d092554cf5e909804cdce5a444c41ece3 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Fri, 11 Aug 2023 12:07:52 -0400 Subject: [PATCH] Change Notification expander to use 10% opaque foreground color Bug: 277285099 Test: post and cancel notifications; check history Change-Id: I55f533eed8ad39a7ab3886d064f0ee0bd7c3b666 --- .../notification/history/NotificationHistoryActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/notification/history/NotificationHistoryActivity.java b/src/com/android/settings/notification/history/NotificationHistoryActivity.java index b71d295f7f5..4808773f52e 100644 --- a/src/com/android/settings/notification/history/NotificationHistoryActivity.java +++ b/src/com/android/settings/notification/history/NotificationHistoryActivity.java @@ -50,6 +50,7 @@ import android.view.ViewOutlineProvider; import android.widget.ImageView; import android.widget.TextView; +import androidx.core.graphics.ColorUtils; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; @@ -176,7 +177,8 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity { com.android.internal.R.id.expand_button); int textColor = obtainThemeColor(android.R.attr.textColorPrimary); int backgroundColor = obtainThemeColor(android.R.attr.colorBackgroundFloating); - expand.setDefaultPillColor(backgroundColor); + int pillColor = ColorUtils.blendARGB(textColor, backgroundColor, 0.9f); + expand.setDefaultPillColor(pillColor); expand.setDefaultTextColor(textColor); expand.setExpanded(false); header.setStateDescription(container.getVisibility() == View.VISIBLE