ChatAttachAlert$PhotoAttachAdapter$1.smali

.class Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;
.super Landroid/view/ViewOutlineProvider;
.source "ChatAttachAlert.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->createHolder()Lim/tpelyyftgw/ui/components/RecyclerListView$Holder;
.end annotation

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


# instance fields
.field final synthetic this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;)V
    .registers 2
    .param p1, "this$1"    # Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    .line 3890
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    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 12
    .param p1, "view"    # Landroid/view/View;
    .param p2, "outline"    # Landroid/graphics/Outline;

    .line 3893
    move-object v0, p1

    check-cast v0, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;

    .line 3894
    .local v0, "photoCell":Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/cells/PhotoAttachPhotoCell;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 3895
    .local v1, "position":I
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->access$11000(Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;)Z

    move-result v2

    if-eqz v2, :cond_29

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$5900(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/MediaController$AlbumEntry;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    iget-object v3, v3, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$6100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)Lim/tpelyyftgw/messenger/MediaController$AlbumEntry;

    move-result-object v3

    if-ne v2, v3, :cond_29

    .line 3896
    add-int/lit8 v1, v1, 0x1

    .line 3898
    :cond_29
    const/high16 v2, 0x41000000    # 8.0f

    if-nez v1, :cond_4f

    .line 3899
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    iget-object v3, v3, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$11100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)F

    move-result v3

    mul-float v3, v3, v2

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    .line 3900
    .local v2, "rad":I
    const/4 v4, 0x0

    const/4 v5, 0x0

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

    move-result v3

    add-int v6, v3, v2

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

    move-result v3

    add-int v7, v3, v2

    int-to-float v8, v2

    move-object v3, p2

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

    .line 3901
    .end local v2    # "rad":I
    goto :goto_87

    :cond_4f
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    iget-object v3, v3, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$2400(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-ne v1, v3, :cond_7b

    .line 3902
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter$1;->this$1:Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;

    iget-object v3, v3, Lim/tpelyyftgw/ui/components/ChatAttachAlert$PhotoAttachAdapter;->this$0:Lim/tpelyyftgw/ui/components/ChatAttachAlert;

    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ChatAttachAlert;->access$11100(Lim/tpelyyftgw/ui/components/ChatAttachAlert;)F

    move-result v3

    mul-float v3, v3, v2

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    .line 3903
    .restart local v2    # "rad":I
    neg-int v4, v2

    const/4 v5, 0x0

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

    move-result v6

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

    move-result v3

    add-int v7, v3, v2

    int-to-float v8, v2

    move-object v3, p2

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

    .line 3904
    .end local v2    # "rad":I
    goto :goto_87

    .line 3905
    :cond_7b
    invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v2

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

    move-result v3

    const/4 v4, 0x0

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

    .line 3907
    :goto_87
    return-void
.end method