ProfileGroupActivity$1.smali

.class Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;
.super Lim/tpelyyftgw/ui/PhotoViewer$EmptyPhotoViewerProvider;
.source "ProfileGroupActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;
.end annotation

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


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


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

    return-void
.end method

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

    .line 253
    iput-object p1, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    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 12
    .param p1, "messageObject"    # Lim/tpelyyftgw/messenger/MessageObject;
    .param p2, "fileLocation"    # Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    .param p3, "index"    # I
    .param p4, "needPreview"    # Z

    .line 257
    const/4 v0, 0x0

    if-nez p2, :cond_4

    .line 258
    return-object v0

    .line 261
    :cond_4
    const/4 v1, 0x0

    .line 262
    .local v1, "photoBig":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    iget-object v2, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$000(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v2

    if-eqz v2, :cond_36

    .line 263
    iget-object v2, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$100(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v2

    invoke-static {v2}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$000(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;

    move-result-object v2

    .line 264
    .local v2, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    if-eqz v2, :cond_35

    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;

    if-eqz v3, :cond_35

    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;

    iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;->photo_big:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v3, :cond_35

    .line 265
    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;

    iget-object v1, v3, Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;->photo_big:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 267
    .end local v2    # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    :cond_35
    goto :goto_66

    :cond_36
    iget-object v2, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$200(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v2

    if-eqz v2, :cond_35

    .line 268
    iget-object v2, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$300(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v2

    invoke-static {v2}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$200(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/messenger/MessagesController;->getChat(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    move-result-object v2

    .line 269
    .local v2, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    if-eqz v2, :cond_66

    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;

    if-eqz v3, :cond_66

    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;

    iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;->photo_big:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v3, :cond_66

    .line 270
    iget-object v3, v2, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;

    iget-object v1, v3, Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;->photo_big:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 274
    .end local v2    # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    :cond_66
    :goto_66
    if-eqz v1, :cond_ff

    iget v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->local_id:I

    iget v3, p2, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->local_id:I

    if-ne v2, v3, :cond_ff

    iget-wide v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->volume_id:J

    iget-wide v4, p2, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->volume_id:J

    cmp-long v6, v2, v4

    if-nez v6, :cond_ff

    iget v2, v1, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->dc_id:I

    iget v3, p2, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->dc_id:I

    if-ne v2, v3, :cond_ff

    .line 275
    const/4 v0, 0x2

    new-array v0, v0, [I

    .line 276
    .local v0, "coords":[I
    iget-object v2, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v2}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v2

    invoke-virtual {v2, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getLocationInWindow([I)V

    .line 277
    new-instance v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;

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

    .line 278
    .local v2, "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
    const/4 v3, 0x0

    aget v4, v0, v3

    iput v4, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewX:I

    .line 279
    const/4 v4, 0x1

    aget v4, v0, v4

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

    const/16 v6, 0x15

    if-lt v5, v6, :cond_9c

    goto :goto_9e

    :cond_9c
    sget v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->statusBarHeight:I

    :goto_9e
    sub-int/2addr v4, v3

    iput v4, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->viewY:I

    .line 280
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v3

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

    .line 281
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v3

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v3

    iput-object v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;

    .line 282
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$000(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    if-eqz v3, :cond_c6

    .line 283
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$000(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    iput v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->dialogId:I

    goto :goto_d7

    .line 284
    :cond_c6
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$200(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    if-eqz v3, :cond_d7

    .line 285
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$200(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)I

    move-result v3

    neg-int v3, v3

    iput v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->dialogId:I

    .line 287
    :cond_d7
    :goto_d7
    iget-object v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->imageReceiver:Lim/tpelyyftgw/messenger/ImageReceiver;

    invoke-virtual {v3}, Lim/tpelyyftgw/messenger/ImageReceiver;->getBitmapSafe()Lim/tpelyyftgw/messenger/ImageReceiver$BitmapHolder;

    move-result-object v3

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

    .line 288
    const/4 v3, -0x1

    iput v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->size:I

    .line 289
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v3

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v3

    invoke-virtual {v3}, Lim/tpelyyftgw/messenger/ImageReceiver;->getRoundRadius()I

    move-result v3

    iput v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->radius:I

    .line 290
    iget-object v3, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v3}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v3

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->getScaleX()F

    move-result v3

    iput v3, v2, Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;->scale:F

    .line 291
    return-object v2

    .line 293
    .end local v0    # "coords":[I
    .end local v2    # "object":Lim/tpelyyftgw/ui/PhotoViewer$PlaceProviderObject;
    :cond_ff
    return-object v0
.end method

.method public willHidePhotoViewer()V
    .registers 3

    .line 298
    iget-object v0, p0, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity$1;->this$0:Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;

    invoke-static {v0}, Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;->access$400(Lim/tpelyyftgw/ui/hui/chats/ProfileGroupActivity;)Lim/tpelyyftgw/ui/components/BackupImageView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1, v1}, Lim/tpelyyftgw/messenger/ImageReceiver;->setVisible(ZZ)V

    .line 299
    return-void
.end method