ChatActivity$2.smali

.class Lim/tpelyyftgw/ui/ChatActivity$2;
.super Lim/tpelyyftgw/ui/PhotoViewer$EmptyPhotoViewerProvider;
.source "ChatActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/ChatActivity;
.end annotation

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


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


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

    return-void
.end method

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

    .line 765
    iput-object p1, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-direct {p0}, Lim/tpelyyftgw/ui/PhotoViewer$EmptyPhotoViewerProvider;-><init>()V

    return-void
.end method


# virtual methods
.method public getPlaceForPhoto(Lim/tpelyyftgw/messenger/MessageObject;Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;IZ)Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
    .registers 16
    .param p1, "messageObject"    # Lim/tpelyyftgw/messenger/MessageObject;
    .param p2, "fileLocation"    # Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    .param p3, "index"    # I
    .param p4, "needPreview"    # Z

    .line 769
    const/4 v0, 0x0

    if-ltz p3, :cond_7f

    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v1}, Lim/tpelyyftgw/ui/ChatActivity;->access$500(Lim/tpelyyftgw/ui/ChatActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt p3, v1, :cond_10

    goto :goto_7f

    .line 772
    :cond_10
    iget-object v1, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v1}, Lim/tpelyyftgw/ui/ChatActivity;->access$600(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v1

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildCount()I

    move-result v1

    .line 773
    .local v1, "count":I
    iget-object v2, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/ChatActivity;->access$500(Lim/tpelyyftgw/ui/ChatActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    .line 775
    .local v2, "result":Ljava/lang/Object;
    const/4 v3, 0x0

    .local v3, "a":I
    :goto_25
    if-ge v3, v1, :cond_7e

    .line 776
    const/4 v4, 0x0

    .line 777
    .local v4, "imageReceiver":Lim/tpelyyftgw/messenger/ImageReceiver;
    iget-object v5, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v5}, Lim/tpelyyftgw/ui/ChatActivity;->access$600(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v5

    invoke-virtual {v5, v3}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getChildAt(I)Landroid/view/View;

    move-result-object v5

    .line 778
    .local v5, "view":Landroid/view/View;
    instance-of v6, v5, Lim/tpelyyftgw/ui/cells/ContextLinkCell;

    if-eqz v6, :cond_43

    .line 779
    move-object v6, v5

    check-cast v6, Lim/tpelyyftgw/ui/cells/ContextLinkCell;

    .line 780
    .local v6, "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
    invoke-virtual {v6}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getResult()Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;

    move-result-object v7

    if-ne v7, v2, :cond_43

    .line 781
    invoke-virtual {v6}, Lim/tpelyyftgw/ui/cells/ContextLinkCell;->getPhotoImage()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v4

    .line 785
    .end local v6    # "cell":Lim/tpelyyftgw/ui/cells/ContextLinkCell;
    :cond_43
    if-eqz v4, :cond_7b

    .line 786
    const/4 v0, 0x2

    new-array v0, v0, [I

    .line 787
    .local v0, "coords":[I
    invoke-virtual {v5, v0}, Landroid/view/View;->getLocationInWindow([I)V

    .line 788
    new-instance v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;

    invoke-direct {v6}, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;-><init>()V

    .line 789
    .local v6, "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
    const/4 v7, 0x0

    aget v8, v0, v7

    iput v8, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewX:I

    .line 790
    const/4 v8, 0x1

    aget v8, v0, v8

    sget v9, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v10, 0x15

    if-lt v9, v10, :cond_5f

    goto :goto_61

    :cond_5f
    sget v7, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I

    :goto_61
    sub-int/2addr v8, v7

    iput v8, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I

    .line 791
    iget-object v7, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v7}, Lim/tpelyyftgw/ui/ChatActivity;->access$600(Lim/tpelyyftgw/ui/ChatActivity;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v7

    iput-object v7, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->parentView:Landroid/view/View;

    .line 792
    iput-object v4, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;

    .line 793
    invoke-virtual {v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->getBitmapSafe()Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;

    move-result-object v7

    iput-object v7, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->thumb:Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;

    .line 794
    invoke-virtual {v4}, Lim/tpelyyftgw/messenger/ImageReceiver;->getRoundRadius()I

    move-result v7

    iput v7, v6, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->radius:I

    .line 795
    return-object v6

    .line 775
    .end local v0    # "coords":[I
    .end local v4    # "imageReceiver":Lim/tpelyyftgw/messenger/ImageReceiver;
    .end local v5    # "view":Landroid/view/View;
    .end local v6    # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
    :cond_7b
    add-int/lit8 v3, v3, 0x1

    goto :goto_25

    .line 798
    .end local v3    # "a":I
    :cond_7e
    return-object v0

    .line 770
    .end local v1    # "count":I
    .end local v2    # "result":Ljava/lang/Object;
    :cond_7f
    :goto_7f
    return-object v0
.end method

.method public sendButtonPressed(ILim/tpelyyftgw/messenger/VideoEditedInfo;ZI)V
    .registers 7
    .param p1, "index"    # I
    .param p2, "videoEditedInfo"    # Lim/tpelyyftgw/messenger/VideoEditedInfo;
    .param p3, "notify"    # Z
    .param p4, "scheduleDate"    # I

    .line 803
    if-ltz p1, :cond_1f

    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$500(Lim/tpelyyftgw/ui/ChatActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt p1, v0, :cond_f

    goto :goto_1f

    .line 806
    :cond_f
    iget-object v0, p0, Lim/tpelyyftgw/ui/ChatActivity$2;->this$0:Lim/tpelyyftgw/ui/ChatActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/ChatActivity;->access$500(Lim/tpelyyftgw/ui/ChatActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;

    invoke-static {v0, v1, p3, p4}, Lim/tpelyyftgw/ui/ChatActivity;->access$700(Lim/tpelyyftgw/ui/ChatActivity;Lim/tpelyyftgw/tgnet/TLRPC$BotInlineResult;ZI)V

    .line 807
    return-void

    .line 804
    :cond_1f
    :goto_1f
    return-void
.end method