apkfuckery/com.discord/smali/m.smali
2020-08-18 03:20:31 +00:00

106 lines
2.4 KiB
Smali

.class public final Lm;
.super Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;
.source "GifStaggeredGridItemDecoration.kt"
# instance fields
.field public final a:I
.field public final b:I
# direct methods
.method public constructor <init>(II)V
.locals 0
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;-><init>()V
iput p1, p0, Lm;->a:I
iput p2, p0, Lm;->b:I
return-void
.end method
# virtual methods
.method public getItemOffsets(Landroid/graphics/Rect;Landroid/view/View;Landroidx/recyclerview/widget/RecyclerView;Landroidx/recyclerview/widget/RecyclerView$State;)V
.locals 1
const/4 v0, 0x0
if-eqz p1, :cond_4
if-eqz p4, :cond_3
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
if-eqz p2, :cond_2
check-cast p2, Landroidx/recyclerview/widget/StaggeredGridLayoutManager$LayoutParams;
invoke-virtual {p2}, Landroidx/recyclerview/widget/StaggeredGridLayoutManager$LayoutParams;->getSpanIndex()I
move-result p2
iget p3, p0, Lm;->b:I
const/4 p4, 0x1
sub-int/2addr p3, p4
const/4 v0, 0x0
if-ne p2, p3, :cond_0
goto :goto_0
:cond_0
const/4 p4, 0x0
:goto_0
if-eqz p4, :cond_1
goto :goto_1
:cond_1
iget v0, p0, Lm;->a:I
:goto_1
iget p2, p1, Landroid/graphics/Rect;->left:I
iget p3, p1, Landroid/graphics/Rect;->top:I
iget p4, p1, Landroid/graphics/Rect;->bottom:I
invoke-virtual {p1, p2, p3, v0, p4}, Landroid/graphics/Rect;->set(IIII)V
return-void
:cond_2
new-instance p1, Lkotlin/TypeCastException;
const-string p2, "null cannot be cast to non-null type androidx.recyclerview.widget.StaggeredGridLayoutManager.LayoutParams"
invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
const-string p1, "state"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_4
const-string p1, "outRect"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
.end method