summaryrefslogtreecommitdiff
path: root/src/com/android/customization/widget/NoTintDrawableWrapper.java
blob: dd02f9a8c1c0794136568b68634104cf6283f5c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.android.customization.widget;

import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableWrapper;

import androidx.annotation.Nullable;

/**
 * {@link DrawableWrapper} that no-ops {@link #setTint(int)} and
 * {@link #setTintList(ColorStateList)}, leaving the original {@link Drawable} tint intact.
 */
public class NoTintDrawableWrapper extends DrawableWrapper {
    public NoTintDrawableWrapper(Drawable drawable) {
        super(drawable);
    }

    @Override
    public void setTint(int tintColor) {}

    @Override
    public void setTintList(@Nullable ColorStateList tint) {}
}