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
This commit is contained in:
Lucas Dupin
2020-12-15 08:49:26 -08:00
parent 475acd3f2b
commit 447eebd6d8

View File

@@ -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