MryLayoutHelper$1.smali

.class Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;
.super Landroid/view/ViewOutlineProvider;
.source "MryLayoutHelper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->setRadiusAndShadow(IIIIF)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)V
    .registers 2
    .param p1, "this$0"    # Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    .line 456
    iput-object p1, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-direct {p0}, Landroid/view/ViewOutlineProvider;-><init>()V

    return-void
.end method


# virtual methods
.method public getOutline(Landroid/view/View;Landroid/graphics/Outline;)V
    .registers 16
    .param p1, "view"    # Landroid/view/View;
    .param p2, "outline"    # Landroid/graphics/Outline;

    .line 460
    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v0

    .local v0, "w":I
    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v1

    .line 461
    .local v1, "h":I
    if-eqz v0, :cond_eb

    if-nez v1, :cond_e

    goto/16 :goto_eb

    .line 464
    :cond_e
    iget-object v2, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->isRadiusWithSideHidden()Z

    move-result v2

    if-eqz v2, :cond_6d

    .line 465
    const/4 v2, 0x0

    .local v2, "left":I
    const/4 v3, 0x0

    .local v3, "top":I
    move v4, v0

    .local v4, "right":I
    move v5, v1

    .line 466
    .local v5, "bottom":I
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$000(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    const/4 v7, 0x4

    if-ne v6, v7, :cond_2b

    .line 467
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    sub-int/2addr v2, v6

    goto :goto_5d

    .line 468
    :cond_2b
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$000(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    const/4 v7, 0x1

    if-ne v6, v7, :cond_3c

    .line 469
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    sub-int/2addr v3, v6

    goto :goto_5d

    .line 470
    :cond_3c
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$000(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    const/4 v7, 0x2

    if-ne v6, v7, :cond_4d

    .line 471
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    add-int/2addr v4, v6

    goto :goto_5d

    .line 472
    :cond_4d
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$000(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    const/4 v7, 0x3

    if-ne v6, v7, :cond_5d

    .line 473
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    add-int/2addr v5, v6

    .line 475
    :cond_5d
    :goto_5d
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    .line 476
    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    int-to-float v11, v6

    .line 475
    move-object v6, p2

    move v7, v2

    move v8, v3

    move v9, v4

    move v10, v5

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Outline;->setRoundRect(IIIIF)V

    .line 477
    return-void

    .line 480
    .end local v2    # "left":I
    .end local v3    # "top":I
    .end local v4    # "right":I
    .end local v5    # "bottom":I
    :cond_6d
    iget-object v2, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$200(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v2

    .local v2, "top":I
    add-int/lit8 v3, v2, 0x1

    iget-object v4, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v4}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$300(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v4

    sub-int v4, v1, v4

    invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I

    move-result v3

    .line 481
    .local v3, "bottom":I
    iget-object v4, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v4}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$400(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v4

    .local v4, "left":I
    iget-object v5, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v5}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$500(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v5

    sub-int v5, v0, v5

    .line 482
    .local v5, "right":I
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$600(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)Z

    move-result v6

    if-eqz v6, :cond_b9

    .line 483
    invoke-virtual {p1}, Landroid/view/View;->getPaddingLeft()I

    move-result v6

    add-int/2addr v4, v6

    .line 484
    invoke-virtual {p1}, Landroid/view/View;->getPaddingTop()I

    move-result v6

    add-int/2addr v2, v6

    .line 485
    add-int/lit8 v6, v4, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getPaddingRight()I

    move-result v7

    sub-int v7, v5, v7

    invoke-static {v6, v7}, Ljava/lang/Math;->max(II)I

    move-result v5

    .line 486
    add-int/lit8 v6, v2, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getPaddingBottom()I

    move-result v7

    sub-int v7, v3, v7

    invoke-static {v6, v7}, Ljava/lang/Math;->max(II)I

    move-result v3

    .line 489
    :cond_b9
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$700(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)F

    move-result v6

    .line 490
    .local v6, "shadowAlpha":F
    iget-object v7, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v7}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$800(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v7

    if-nez v7, :cond_cb

    .line 492
    const/high16 v6, 0x3f800000    # 1.0f

    move v12, v6

    goto :goto_cc

    .line 490
    :cond_cb
    move v12, v6

    .line 495
    .end local v6    # "shadowAlpha":F
    .local v12, "shadowAlpha":F
    :goto_cc
    invoke-virtual {p2, v12}, Landroid/graphics/Outline;->setAlpha(F)V

    .line 497
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    if-gtz v6, :cond_db

    .line 498
    invoke-virtual {p2, v4, v2, v5, v3}, Landroid/graphics/Outline;->setRect(IIII)V

    goto :goto_ea

    .line 501
    :cond_db
    iget-object v6, p0, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper$1;->this$0:Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;

    .line 502
    invoke-static {v6}, Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;->access$100(Lim/tpelyyftgw/ui/hviews/helper/MryLayoutHelper;)I

    move-result v6

    int-to-float v11, v6

    .line 501
    move-object v6, p2

    move v7, v4

    move v8, v2

    move v9, v5

    move v10, v3

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Outline;->setRoundRect(IIIIF)V

    .line 504
    :goto_ea
    return-void

    .line 462
    .end local v2    # "top":I
    .end local v3    # "bottom":I
    .end local v4    # "left":I
    .end local v5    # "right":I
    .end local v12    # "shadowAlpha":F
    :cond_eb
    :goto_eb
    return-void
.end method