apkfuckery/com.discord/smali/m.smali

103 lines
2.6 KiB
Smali
Raw Normal View History

2020-11-14 02:19:59 +00:00
.class public final Lm;
2020-11-13 01:15:36 +00:00
.super Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;
.source "GifStaggeredGridItemDecoration.kt"
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-13 01:15:36 +00:00
.field public final a:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
.field public final b:I
2020-11-12 02:11:44 +00:00
# direct methods
2020-11-13 01:15:36 +00:00
.method public constructor <init>(II)V
2020-11-12 02:11:44 +00:00
.locals 0
2020-11-13 01:15:36 +00:00
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;-><init>()V
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
iput p1, p0, Lm;->a:I
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
iput p2, p0, Lm;->b:I
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-13 01:15:36 +00:00
.method public getItemOffsets(Landroid/graphics/Rect;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;)V
.locals 1
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
const-string v0, "outRect"
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
invoke-static {p1, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
const-string/jumbo v0, "view"
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
invoke-static {p2, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
const-string v0, "parent"
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
invoke-static {p3, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
const-string/jumbo v0, "state"
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
invoke-static {p4, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-super {p0, p1, p2, p3, p4}, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;->getItemOffsets(Landroid/graphics/Rect;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;)V
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
move-result-object p2
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
if-eqz p2, :cond_2
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
check-cast p2, Landroidx/recyclerview/widget/StaggeredGridLayoutManager$LayoutParams;
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-virtual {p2}, Landroidx/recyclerview/widget/StaggeredGridLayoutManager$LayoutParams;->getSpanIndex()I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
move-result p2
2020-11-12 02:11:44 +00:00
2020-11-14 02:19:59 +00:00
iget p3, p0, Lm;->b:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
const/4 p4, 0x1
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
sub-int/2addr p3, p4
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
const/4 v0, 0x0
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
if-ne p2, p3, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
goto :goto_0
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
:cond_0
const/4 p4, 0x0
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
:goto_0
if-eqz p4, :cond_1
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
goto :goto_1
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
:cond_1
2020-11-14 02:19:59 +00:00
iget v0, p0, Lm;->a:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
:goto_1
iget p2, p1, Landroid/graphics/Rect;->left:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget p3, p1, Landroid/graphics/Rect;->top:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
iget p4, p1, Landroid/graphics/Rect;->bottom:I
2020-11-12 02:11:44 +00:00
2020-11-13 01:15:36 +00:00
invoke-virtual {p1, p2, p3, v0, p4}, Landroid/graphics/Rect;->set(IIII)V
2020-11-12 02:11:44 +00:00
return-void
2020-11-14 02:19:59 +00:00
:cond_2
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "null cannot be cast to non-null type androidx.recyclerview.widget.StaggeredGridLayoutManager.LayoutParams"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
2020-11-12 02:11:44 +00:00
.end method