apkfuckery/com.discord/smali/m.smali

103 lines
2.6 KiB
Smali
Raw Normal View History

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