apkfuckery/com.discord/smali/androidx/legacy/widget/Space.smali

156 lines
3.5 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/legacy/widget/Space;
.super Landroid/view/View;
.source "Space.java"
# annotations
.annotation runtime Ljava/lang/Deprecated;
.end annotation
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/legacy/widget/Space;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Landroidx/legacy/widget/Space;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.annotation runtime Ljava/lang/Deprecated;
.end annotation
invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
2019-07-24 11:27:29 +00:00
move-result p1
if-nez p1, :cond_0
const/4 p1, 0x4
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Landroid/view/View;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static getDefaultSize2(II)I
2019-07-24 11:27:29 +00:00
.locals 2
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v0
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p1
const/high16 v1, -0x80000000
if-eq v0, v1, :cond_1
if-eqz v0, :cond_2
const/high16 v1, 0x40000000 # 2.0f
if-eq v0, v1, :cond_0
goto :goto_0
:cond_0
move p0, p1
goto :goto_0
:cond_1
invoke-static {p0, p1}, Ljava/lang/Math;->min(II)I
move-result p0
:cond_2
:goto_0
return p0
.end method
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroid/annotation/SuppressLint;
value = {
"MissingSuperCall"
}
.end annotation
2019-07-24 11:27:29 +00:00
.annotation runtime Ljava/lang/Deprecated;
.end annotation
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public onMeasure(II)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/view/View;->getSuggestedMinimumWidth()I
2019-07-24 11:27:29 +00:00
move-result v0
invoke-static {v0, p1}, Landroidx/legacy/widget/Space;->getDefaultSize2(II)I
move-result p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/view/View;->getSuggestedMinimumHeight()I
2019-07-24 11:27:29 +00:00
move-result v0
invoke-static {v0, p2}, Landroidx/legacy/widget/Space;->getDefaultSize2(II)I
move-result p2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, p2}, Landroid/view/View;->setMeasuredDimension(II)V
2019-07-24 11:27:29 +00:00
return-void
.end method