apkfuckery/com.discord/smali/androidx/legacy/widget/Space.smali
2019-08-30 22:04:20 +02:00

129 lines
2.8 KiB
Smali

.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
.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
.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
.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
invoke-virtual {p0}, Landroidx/legacy/widget/Space;->getVisibility()I
move-result p1
if-nez p1, :cond_0
const/4 p1, 0x4
invoke-virtual {p0, p1}, Landroidx/legacy/widget/Space;->setVisibility(I)V
:cond_0
return-void
.end method
.method private static getDefaultSize2(II)I
.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
.annotation runtime Ljava/lang/Deprecated;
.end annotation
return-void
.end method
.method protected onMeasure(II)V
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
invoke-virtual {p0}, Landroidx/legacy/widget/Space;->getSuggestedMinimumWidth()I
move-result v0
invoke-static {v0, p1}, Landroidx/legacy/widget/Space;->getDefaultSize2(II)I
move-result p1
invoke-virtual {p0}, Landroidx/legacy/widget/Space;->getSuggestedMinimumHeight()I
move-result v0
invoke-static {v0, p2}, Landroidx/legacy/widget/Space;->getDefaultSize2(II)I
move-result p2
invoke-virtual {p0, p1, p2}, Landroidx/legacy/widget/Space;->setMeasuredDimension(II)V
return-void
.end method