apkfuckery/com.discord/smali/androidx/constraintlayout/widget/Barrier.smali
2019-07-24 13:27:29 +02:00

277 lines
7.1 KiB
Smali

.class public Landroidx/constraintlayout/widget/Barrier;
.super Landroidx/constraintlayout/widget/ConstraintHelper;
.source "Barrier.java"
# static fields
.field public static final BOTTOM:I = 0x3
.field public static final END:I = 0x6
.field public static final LEFT:I = 0x0
.field public static final RIGHT:I = 0x1
.field public static final START:I = 0x5
.field public static final TOP:I = 0x2
# instance fields
.field private mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
.field private mIndicatedType:I
.field private mResolvedType:I
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
invoke-direct {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;)V
const/16 p1, 0x8
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->setVisibility(I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 0
invoke-direct {p0, p1, p2}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/16 p1, 0x8
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->setVisibility(I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 0
invoke-direct {p0, p1, p2, p3}, Landroidx/constraintlayout/widget/ConstraintHelper;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/16 p1, 0x8
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->setVisibility(I)V
return-void
.end method
# virtual methods
.method public allowsGoneWidget()Z
.locals 1
iget-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-virtual {v0}, Landroidx/constraintlayout/solver/widgets/Barrier;->allowsGoneWidget()Z
move-result v0
return v0
.end method
.method public getType()I
.locals 1
iget v0, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
return v0
.end method
.method protected init(Landroid/util/AttributeSet;)V
.locals 6
invoke-super {p0, p1}, Landroidx/constraintlayout/widget/ConstraintHelper;->init(Landroid/util/AttributeSet;)V
new-instance v0, Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-direct {v0}, Landroidx/constraintlayout/solver/widgets/Barrier;-><init>()V
iput-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
if-eqz p1, :cond_2
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Barrier;->getContext()Landroid/content/Context;
move-result-object v0
sget-object v1, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout:[I
invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_2
invoke-virtual {p1, v2}, Landroid/content/res/TypedArray;->getIndex(I)I
move-result v3
sget v4, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_barrierDirection:I
if-ne v3, v4, :cond_0
invoke-virtual {p1, v3, v1}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
invoke-virtual {p0, v3}, Landroidx/constraintlayout/widget/Barrier;->setType(I)V
goto :goto_1
:cond_0
sget v4, Landroidx/constraintlayout/widget/R$styleable;->ConstraintLayout_Layout_barrierAllowsGoneWidgets:I
if-ne v3, v4, :cond_1
iget-object v4, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
const/4 v5, 0x1
invoke-virtual {p1, v3, v5}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v3
invoke-virtual {v4, v3}, Landroidx/constraintlayout/solver/widgets/Barrier;->setAllowsGoneWidget(Z)V
:cond_1
:goto_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
iput-object p1, p0, Landroidx/constraintlayout/widget/Barrier;->mHelperWidget:Landroidx/constraintlayout/solver/widgets/Helper;
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Barrier;->validateParams()V
return-void
.end method
.method public setAllowsGoneWidget(Z)V
.locals 1
iget-object v0, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
invoke-virtual {v0, p1}, Landroidx/constraintlayout/solver/widgets/Barrier;->setAllowsGoneWidget(Z)V
return-void
.end method
.method public setType(I)V
.locals 5
iput p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
iput p1, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v0, 0x6
const/4 v1, 0x5
const/4 v2, 0x0
const/4 v3, 0x1
const/16 v4, 0x11
if-ge p1, v4, :cond_1
iget p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
if-ne p1, v1, :cond_0
iput v2, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
goto :goto_1
:cond_0
if-ne p1, v0, :cond_6
iput v3, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
goto :goto_1
:cond_1
invoke-virtual {p0}, Landroidx/constraintlayout/widget/Barrier;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Configuration;->getLayoutDirection()I
move-result p1
if-ne v3, p1, :cond_2
const/4 p1, 0x1
goto :goto_0
:cond_2
const/4 p1, 0x0
:goto_0
if-eqz p1, :cond_4
iget p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
if-ne p1, v1, :cond_3
iput v3, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
goto :goto_1
:cond_3
if-ne p1, v0, :cond_6
iput v2, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
goto :goto_1
:cond_4
iget p1, p0, Landroidx/constraintlayout/widget/Barrier;->mIndicatedType:I
if-ne p1, v1, :cond_5
iput v2, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
goto :goto_1
:cond_5
if-ne p1, v0, :cond_6
iput v3, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
:cond_6
:goto_1
iget-object p1, p0, Landroidx/constraintlayout/widget/Barrier;->mBarrier:Landroidx/constraintlayout/solver/widgets/Barrier;
iget v0, p0, Landroidx/constraintlayout/widget/Barrier;->mResolvedType:I
invoke-virtual {p1, v0}, Landroidx/constraintlayout/solver/widgets/Barrier;->setBarrierType(I)V
return-void
.end method