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

Commit 27127e1b authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix dark mode progress bar background color

Fixes: 178062760
Test: visual inspection
Change-Id: I933fcc27aea8731f10a0910da68c1f0c6fe035d5
parent c50c326c
Loading
Loading
Loading
Loading
+7 −10
Original line number Original line Diff line number Diff line
@@ -5188,16 +5188,13 @@ public class Notification implements Parcelable
            final boolean ind = ex.getBoolean(EXTRA_PROGRESS_INDETERMINATE);
            final boolean ind = ex.getBoolean(EXTRA_PROGRESS_INDETERMINATE);
            if (!p.mHideProgress && (max != 0 || ind)) {
            if (!p.mHideProgress && (max != 0 || ind)) {
                contentView.setViewVisibility(com.android.internal.R.id.progress, View.VISIBLE);
                contentView.setViewVisibility(com.android.internal.R.id.progress, View.VISIBLE);
                contentView.setProgressBar(
                contentView.setProgressBar(R.id.progress, max, progress, ind);
                        R.id.progress, max, progress, ind);
                contentView.setProgressBackgroundTintList(R.id.progress,
                contentView.setProgressBackgroundTintList(
                        mContext.getColorStateList(R.color.notification_progress_background_color));
                        R.id.progress, ColorStateList.valueOf(mContext.getColor(
                if (mTintWithThemeAccent || getRawColor(p) != COLOR_DEFAULT) {
                                R.color.notification_progress_background_color)));
                    ColorStateList progressTint = ColorStateList.valueOf(getAccentColor(p));
                if (getRawColor(p) != COLOR_DEFAULT) {
                    contentView.setProgressTintList(R.id.progress, progressTint);
                    int color = getAccentColor(p);
                    contentView.setProgressIndeterminateTintList(R.id.progress, progressTint);
                    ColorStateList colorStateList = ColorStateList.valueOf(color);
                    contentView.setProgressTintList(R.id.progress, colorStateList);
                    contentView.setProgressIndeterminateTintList(R.id.progress, colorStateList);
                }
                }
                return true;
                return true;
            } else {
            } else {
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@


    <color name="notification_action_button_text_color">@color/notification_default_color</color>
    <color name="notification_action_button_text_color">@color/notification_default_color</color>


    <color name="notification_progress_background_color">@color/secondary_text_material_light</color>
    <color name="notification_progress_background_color">@color/notification_secondary_text_color_current</color>


    <color name="notification_action_list">#ffeeeeee</color>
    <color name="notification_action_list">#ffeeeeee</color>