Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f14b9b8e authored by Beth Thibodeau's avatar Beth Thibodeau Committed by android-build-merger
Browse files

Merge "Fix progress bar color in foreground notifications" into qt-dev

am: 6b8db619

Change-Id: I33c01bf4017764fee9b14095eb1da6ecfb6ab073
parents cdd1bb2f 6b8db619
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4886,7 +4886,8 @@ public class Notification implements Parcelable
                        R.id.progress, ColorStateList.valueOf(mContext.getColor(
                                R.color.notification_progress_background_color)));
                if (getRawColor(p) != COLOR_DEFAULT) {
                    ColorStateList colorStateList = ColorStateList.valueOf(resolveContrastColor(p));
                    int color = isColorized(p) ? getPrimaryTextColor(p) : resolveContrastColor(p);
                    ColorStateList colorStateList = ColorStateList.valueOf(color);
                    contentView.setProgressTintList(R.id.progress, colorStateList);
                    contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList);
                }