apkfuckery/com.discord/smali/e/f/a/b.smali

181 lines
3.4 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public Le/f/a/b;
2019-12-06 03:29:40 +00:00
.super Landroid/widget/BaseAdapter;
.source "PaletteAdapter.java"
# interfaces
2020-04-27 20:53:11 +00:00
.implements Le/f/a/a$c;
2019-12-06 03:29:40 +00:00
# static fields
.field public static j:F = 30.0f
.field public static k:[I
# instance fields
.field public final d:Landroid/content/Context;
.field public final e:F
.field public final f:[I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end field
.field public g:I
.annotation build Landroidx/annotation/ColorInt;
.end annotation
.end field
2020-04-27 20:53:11 +00:00
.field public h:Le/f/a/a;
2019-12-06 03:29:40 +00:00
.field public i:Lcom/angarron/colorpicker/OnColorSelectedListener;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/4 v0, 0x6
new-array v0, v0, [I
fill-array-data v0, :array_0
2020-04-27 20:53:11 +00:00
sput-object v0, Le/f/a/b;->k:[I
2019-12-06 03:29:40 +00:00
return-void
nop
:array_0
.array-data 4
0x1060016
0x1060017
0x1060012
0x1060013
0x1060014
0x1060015
.end array-data
.end method
2020-04-27 20:53:11 +00:00
.method public synthetic constructor <init>(Landroid/content/Context;[IIFLe/f/a/b$a;)V
2019-12-06 03:29:40 +00:00
.locals 0
invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V
2020-04-27 20:53:11 +00:00
iput-object p1, p0, Le/f/a/b;->d:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput-object p2, p0, Le/f/a/b;->f:[I
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput p3, p0, Le/f/a/b;->g:I
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput p4, p0, Le/f/a/b;->e:F
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
.method public getCount()I
.locals 1
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/f/a/b;->f:[I
2019-12-06 03:29:40 +00:00
array-length v0, v0
return v0
.end method
.method public getItem(I)Ljava/lang/Object;
.locals 1
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/f/a/b;->f:[I
2019-12-06 03:29:40 +00:00
aget p1, v0, p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
return-object p1
.end method
.method public getItemId(I)J
.locals 2
const-wide/16 v0, 0x0
return-wide v0
.end method
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.locals 3
if-nez p2, :cond_2
2020-04-27 20:53:11 +00:00
iget-object p2, p0, Le/f/a/b;->f:[I
2019-12-06 03:29:40 +00:00
aget p2, p2, p1
2020-04-27 20:53:11 +00:00
iget p3, p0, Le/f/a/b;->g:I
2019-12-06 03:29:40 +00:00
const/4 v0, 0x1
if-ne p2, p3, :cond_0
const/4 p2, 0x1
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
2020-04-27 20:53:11 +00:00
new-instance p3, Le/f/a/a;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, p0, Le/f/a/b;->d:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v2, p0, Le/f/a/b;->f:[I
2019-12-06 03:29:40 +00:00
aget p1, v2, p1
2020-04-27 20:53:11 +00:00
invoke-direct {p3, v1, p1, p2}, Le/f/a/a;-><init>(Landroid/content/Context;IZ)V
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_1
2020-04-27 20:53:11 +00:00
iput-object p3, p0, Le/f/a/b;->h:Le/f/a/a;
2019-12-06 03:29:40 +00:00
:cond_1
2020-04-27 20:53:11 +00:00
iget p1, p0, Le/f/a/b;->e:F
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object p2, p0, Le/f/a/b;->d:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p2
invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p2
invoke-static {v0, p1, p2}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
move-result p1
float-to-int p1, p1
new-instance p2, Landroid/widget/AbsListView$LayoutParams;
invoke-direct {p2, p1, p1}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V
invoke-virtual {p3, p2}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
2020-04-27 20:53:11 +00:00
invoke-virtual {p3, p0}, Le/f/a/a;->setOnSelectedListener(Le/f/a/a$c;)V
2019-12-06 03:29:40 +00:00
return-object p3
:cond_2
return-object p2
.end method