apkfuckery/com.discord/smali/e/f/a/b.smali
2020-04-27 22:53:11 +02:00

180 lines
3.4 KiB
Smali

.class public Le/f/a/b;
.super Landroid/widget/BaseAdapter;
.source "PaletteAdapter.java"
# interfaces
.implements Le/f/a/a$c;
# 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
.field public h:Le/f/a/a;
.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
sput-object v0, Le/f/a/b;->k:[I
return-void
nop
:array_0
.array-data 4
0x1060016
0x1060017
0x1060012
0x1060013
0x1060014
0x1060015
.end array-data
.end method
.method public synthetic constructor <init>(Landroid/content/Context;[IIFLe/f/a/b$a;)V
.locals 0
invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V
iput-object p1, p0, Le/f/a/b;->d:Landroid/content/Context;
iput-object p2, p0, Le/f/a/b;->f:[I
iput p3, p0, Le/f/a/b;->g:I
iput p4, p0, Le/f/a/b;->e:F
return-void
.end method
# virtual methods
.method public getCount()I
.locals 1
iget-object v0, p0, Le/f/a/b;->f:[I
array-length v0, v0
return v0
.end method
.method public getItem(I)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Le/f/a/b;->f:[I
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
iget-object p2, p0, Le/f/a/b;->f:[I
aget p2, p2, p1
iget p3, p0, Le/f/a/b;->g:I
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
new-instance p3, Le/f/a/a;
iget-object v1, p0, Le/f/a/b;->d:Landroid/content/Context;
iget-object v2, p0, Le/f/a/b;->f:[I
aget p1, v2, p1
invoke-direct {p3, v1, p1, p2}, Le/f/a/a;-><init>(Landroid/content/Context;IZ)V
if-eqz p2, :cond_1
iput-object p3, p0, Le/f/a/b;->h:Le/f/a/a;
:cond_1
iget p1, p0, Le/f/a/b;->e:F
iget-object p2, p0, Le/f/a/b;->d:Landroid/content/Context;
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
invoke-virtual {p3, p0}, Le/f/a/a;->setOnSelectedListener(Le/f/a/a$c;)V
return-object p3
:cond_2
return-object p2
.end method