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

Commit 5faed49e authored by Brandon Dayauon's avatar Brandon Dayauon Committed by Android (Google) Code Review
Browse files

Merge "Fix color contrast in All Apps text by setting the color to onSurfaceVariant" into main

parents 11e19c13 ff89c5c9
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -77,19 +77,15 @@ public class AppsDividerView extends View implements FloatingHeaderRow {
    public AppsDividerView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        boolean isMainColorDark = Themes.getAttrBoolean(context, R.attr.isMainColorDark);
        mDividerSize = new int[]{
                getResources().getDimensionPixelSize(R.dimen.all_apps_divider_width),
                getResources().getDimensionPixelSize(R.dimen.all_apps_divider_height)
        };

        mStrokeColor = ContextCompat.getColor(context, isMainColorDark
                ? R.color.all_apps_prediction_row_separator_dark
                : R.color.all_apps_prediction_row_separator);
        mStrokeColor = ContextCompat.getColor(context, R.color.material_color_outline_variant);

        mAllAppsLabelTextColor = ContextCompat.getColor(context, isMainColorDark
                ? R.color.all_apps_label_text_dark
                : R.color.all_apps_label_text);
        mAllAppsLabelTextColor = ContextCompat.getColor(context,
                R.color.material_color_on_surface_variant);

        mShowAllAppsLabel = !ALL_APPS_VISITED_COUNT.hasReachedMax(context);
    }