Use theme color instead of fixed one
Notifications don't have fixed background anymore, their colors are themed based on a dynamic system palette. Test: manual Bug: 173561906 Bug: 173561901 Change-Id: Id0a41e04fe3e27d2ae59ab5c61a174211278c4a7
This commit is contained in:
@@ -52,6 +52,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.android.internal.logging.UiEventLogger;
|
||||
import com.android.internal.util.ContrastColorUtil;
|
||||
import com.android.settings.R;
|
||||
import com.android.settingslib.Utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -79,8 +80,8 @@ public class NotificationSbnAdapter extends
|
||||
mPm = pm;
|
||||
mUserBadgeCache = new HashMap<>();
|
||||
mValues = new ArrayList<>();
|
||||
mBackgroundColor = mContext.getColor(
|
||||
com.android.internal.R.color.notification_material_background_color);
|
||||
mBackgroundColor = Utils.getColorAttrDefaultColor(context,
|
||||
android.R.attr.colorBackground);
|
||||
Configuration currentConfig = mContext.getResources().getConfiguration();
|
||||
mInNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK)
|
||||
== Configuration.UI_MODE_NIGHT_YES;
|
||||
|
Reference in New Issue
Block a user