From 451f3ff377ba6b9824f3f80a1a9fbfdde9f18215 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Wed, 14 Apr 2021 13:42:01 -0400 Subject: [PATCH] Fix notification background color This color isn't shown; merely used for color contrast calculations Test: manual Bug: 184982648 Change-Id: I6b2b49287f282fd748f075181cfa37217491b012 --- core/java/android/app/Notification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index a60f1ca3cdcd8..6d65b201861d0 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -6308,7 +6308,7 @@ public class Notification implements Parcelable * Gets the theme's background color */ private @ColorInt int getDefaultBackgroundColor() { - return obtainThemeColor(R.attr.colorBackground, + return obtainThemeColor(R.attr.colorSurface, mInNightMode ? Color.BLACK : Color.WHITE); }