48 lines
1.2 KiB
Smali
48 lines
1.2 KiB
Smali
.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
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
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
|
|
|
|
: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
|
|
.end method
|