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 23:45:23 +00:00
|
|
|
const-string v0, "$this$toDrawable"
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p0, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
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
|
|
|
|
.end method
|