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

Commit 447eebd6 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Rename setTint to setColor

We're not tinting, we're actually drawing an alpha blended color on top

Test: Manual
Bug: 159712515
Change-Id: I12788b19ecf0d4a8e65056914bc0dafd16f417c9
parent 475acd3f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.graphics.drawable;

import android.annotation.ColorInt;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.content.Context;
@@ -92,9 +93,11 @@ public final class BackgroundBlurDrawable extends Drawable {
        canvas.drawRenderNode(mRenderNode);
    }

    @Override
    public void setTint(int tintColor) {
        mPaint.setColor(tintColor);
    /**
     * Color that will be alpha blended on top of the blur.
     */
    public void setColor(@ColorInt int color) {
        mPaint.setColor(color);
    }

    @Override