103 lines
2.9 KiB
Smali
103 lines
2.9 KiB
Smali
.class public Lcom/vk/attachpicker/widget/GraffitiRecyclerView;
|
|
.super Lme/grishka/appkit/views/UsableRecyclerView;
|
|
.source "GraffitiRecyclerView.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lme/grishka/appkit/views/UsableRecyclerView;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2}, Lme/grishka/appkit/views/UsableRecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2, p3}, Lme/grishka/appkit/views/UsableRecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onMeasure(II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->onMeasure(II)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x7f070228
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
move-result p1
|
|
|
|
float-to-int p1, p1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getMeasuredWidth()I
|
|
|
|
move-result p2
|
|
|
|
div-int/2addr p2, p1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroidx/recyclerview/widget/GridLayoutManager;
|
|
|
|
.line 6
|
|
invoke-virtual {p2, p1}, Landroidx/recyclerview/widget/GridLayoutManager;->setSpanCount(I)V
|
|
|
|
.line 7
|
|
new-instance v0, Lcom/vk/attachpicker/widget/GraffitiRecyclerView$a;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/vk/attachpicker/widget/GraffitiRecyclerView$a;-><init>(Lcom/vk/attachpicker/widget/GraffitiRecyclerView;I)V
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/GridLayoutManager;->setSpanSizeLookup(Landroidx/recyclerview/widget/GridLayoutManager$SpanSizeLookup;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|