apkfuckery/com.discord/smali/androidx/transition/ChangeBounds$ViewBounds.smali
2020-07-08 16:44:49 +00:00

138 lines
3.4 KiB
Smali

.class public Landroidx/transition/ChangeBounds$ViewBounds;
.super Ljava/lang/Object;
.source "ChangeBounds.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/transition/ChangeBounds;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ViewBounds"
.end annotation
# instance fields
.field public mBottom:I
.field public mBottomRightCalls:I
.field public mLeft:I
.field public mRight:I
.field public mTop:I
.field public mTopLeftCalls:I
.field public mView:Landroid/view/View;
# direct methods
.method public constructor <init>(Landroid/view/View;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mView:Landroid/view/View;
return-void
.end method
.method private setLeftTopRightBottom()V
.locals 5
iget-object v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mView:Landroid/view/View;
iget v1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mLeft:I
iget v2, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTop:I
iget v3, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mRight:I
iget v4, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottom:I
invoke-static {v0, v1, v2, v3, v4}, Landroidx/transition/ViewUtils;->setLeftTopRightBottom(Landroid/view/View;IIII)V
const/4 v0, 0x0
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
return-void
.end method
# virtual methods
.method public setBottomRight(Landroid/graphics/PointF;)V
.locals 1
iget v0, p1, Landroid/graphics/PointF;->x:F
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v0
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mRight:I
iget p1, p1, Landroid/graphics/PointF;->y:F
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p1
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottom:I
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
iget v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
if-ne v0, p1, :cond_0
invoke-direct {p0}, Landroidx/transition/ChangeBounds$ViewBounds;->setLeftTopRightBottom()V
:cond_0
return-void
.end method
.method public setTopLeft(Landroid/graphics/PointF;)V
.locals 1
iget v0, p1, Landroid/graphics/PointF;->x:F
invoke-static {v0}, Ljava/lang/Math;->round(F)I
move-result v0
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mLeft:I
iget p1, p1, Landroid/graphics/PointF;->y:F
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p1
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTop:I
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
iget v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
if-ne p1, v0, :cond_0
invoke-direct {p0}, Landroidx/transition/ChangeBounds$ViewBounds;->setLeftTopRightBottom()V
:cond_0
return-void
.end method