20 lines
595 B
Java
20 lines
595 B
Java
package androidx.core.graphics.drawable;
|
|
|
|
import android.graphics.Color;
|
|
import android.graphics.drawable.ColorDrawable;
|
|
import androidx.annotation.ColorInt;
|
|
import androidx.annotation.RequiresApi;
|
|
import d0.z.d.m;
|
|
/* compiled from: ColorDrawable.kt */
|
|
public final class ColorDrawableKt {
|
|
public static final ColorDrawable toDrawable(@ColorInt int i) {
|
|
return new ColorDrawable(i);
|
|
}
|
|
|
|
@RequiresApi(26)
|
|
public static final ColorDrawable toDrawable(Color color) {
|
|
m.checkNotNullParameter(color, "<this>");
|
|
return new ColorDrawable(color.toArgb());
|
|
}
|
|
}
|