apkfuckery/com.discord/smali/l.smali

103 lines
2.6 KiB
Smali
Raw Normal View History

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