2020-05-17 12:40:10 +00:00
|
|
|
.class public final Landroidx/core/graphics/drawable/ColorDrawableKt;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ColorDrawable.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static final toDrawable(I)Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
.locals 1
|
|
|
|
.param p0 # I
|
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final toDrawable(Landroid/graphics/Color;)Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
.locals 1
|
|
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
|
|
value = 0x1a
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-eqz p0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Color;->toArgb()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
|
|
|
|
return-object v0
|
2020-09-16 21:45:36 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p0, "$this$toDrawable"
|
|
|
|
|
|
|
|
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
throw p0
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|