110 lines
2.4 KiB
Smali
110 lines
2.4 KiB
Smali
.class public Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "MaxWidthFrameLayout.java"
|
|
|
|
|
|
# instance fields
|
|
.field public a:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/16 p1, 0x190
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lcom/vk/core/util/Screen;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/16 p1, 0x190
|
|
|
|
.line 4
|
|
invoke-static {p1}, Lcom/vk/core/util/Screen;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 5
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/16 p1, 0x190
|
|
|
|
.line 6
|
|
invoke-static {p1}, Lcom/vk/core/util/Screen;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onMeasure(II)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
const/high16 p1, 0x40000000 # 2.0f
|
|
|
|
.line 2
|
|
invoke-static {v1, p1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxWidth(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iput p1, p0, Lcom/vk/attachpicker/widget/MaxWidthFrameLayout;->a:I
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|