GroupCreateUserCell.smali

.class public Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;
.super Landroid/widget/FrameLayout;
.source "GroupCreateUserCell.java"


# instance fields
.field private avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

.field private avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

.field private checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

.field private currentAccount:I

.field private currentName:Ljava/lang/CharSequence;

.field private currentObject:Lim/tpelyyftgw/tgnet/TLObject;

.field private currentStatus:Ljava/lang/CharSequence;

.field private lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

.field private lastName:Ljava/lang/String;

.field private lastStatus:I

.field private nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

.field private statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZI)V
    .registers 20
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "needCheck"    # Z
    .param p3, "padding"    # I

    .line 43
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-direct/range {p0 .. p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 36
    sget v2, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

    iput v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentAccount:I

    .line 44
    new-instance v2, Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-direct {v2}, Lim/tpelyyftgw/ui/components/AvatarDrawable;-><init>()V

    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    .line 46
    new-instance v2, Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-direct {v2, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    .line 47
    const/high16 v3, 0x41b40000    # 22.5f

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

    move-result v3

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->setRoundRadius(I)V

    .line 48
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/4 v4, 0x5

    const/4 v5, 0x3

    if-eqz v3, :cond_2c

    const/4 v3, 0x5

    goto :goto_2d

    :cond_2c
    const/4 v3, 0x3

    :goto_2d
    or-int/lit8 v8, v3, 0x30

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/4 v13, 0x0

    if-eqz v3, :cond_36

    const/4 v9, 0x0

    goto :goto_3a

    :cond_36
    add-int/lit8 v3, p3, 0xd

    int-to-float v3, v3

    move v9, v3

    :goto_3a
    const/high16 v10, 0x41200000    # 10.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_45

    add-int/lit8 v3, p3, 0xd

    int-to-float v3, v3

    move v11, v3

    goto :goto_46

    :cond_45
    const/4 v11, 0x0

    :goto_46
    const/4 v12, 0x0

    const/high16 v6, 0x42340000    # 45.0f

    const/high16 v7, 0x42340000    # 45.0f

    invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 50
    new-instance v2, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-direct {v2, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 51
    const-string/jumbo v3, "windowBackgroundWhiteBlackText"

    invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 53
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/16 v3, 0xe

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V

    .line 54
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_72

    const/4 v3, 0x5

    goto :goto_73

    :cond_72
    const/4 v3, 0x3

    :goto_73
    or-int/lit8 v3, v3, 0x30

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V

    .line 55
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/high16 v6, -0x40800000    # -1.0f

    const/high16 v7, 0x41a00000    # 20.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_84

    const/4 v3, 0x5

    goto :goto_85

    :cond_84
    const/4 v3, 0x3

    :goto_85
    or-int/lit8 v8, v3, 0x30

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/16 v14, 0x1c

    const/16 v15, 0x48

    if-eqz v3, :cond_92

    const/16 v3, 0x1c

    goto :goto_94

    :cond_92
    const/16 v3, 0x48

    :goto_94
    add-int v3, v3, p3

    int-to-float v9, v3

    const/high16 v10, 0x41200000    # 10.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_a0

    const/16 v3, 0x48

    goto :goto_a2

    :cond_a0
    const/16 v3, 0x1c

    :goto_a2
    add-int v3, v3, p3

    int-to-float v11, v3

    const/4 v12, 0x0

    invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 57
    new-instance v2, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-direct {v2, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 58
    const/16 v3, 0xd

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V

    .line 59
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_c1

    const/4 v3, 0x5

    goto :goto_c2

    :cond_c1
    const/4 v3, 0x3

    :goto_c2
    or-int/lit8 v3, v3, 0x30

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V

    .line 60
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/high16 v6, -0x40800000    # -1.0f

    const/high16 v7, 0x41a00000    # 20.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_d3

    const/4 v3, 0x5

    goto :goto_d4

    :cond_d3
    const/4 v3, 0x3

    :goto_d4
    or-int/lit8 v8, v3, 0x30

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_dd

    const/16 v3, 0x1c

    goto :goto_df

    :cond_dd
    const/16 v3, 0x48

    :goto_df
    add-int v3, v3, p3

    int-to-float v9, v3

    const/high16 v10, 0x421c0000    # 39.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_ea

    const/16 v14, 0x48

    :cond_ea
    add-int v14, v14, p3

    int-to-float v11, v14

    const/4 v12, 0x0

    invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 62
    if-eqz p2, :cond_140

    .line 63
    new-instance v2, Lim/tpelyyftgw/ui/components/CheckBox2;

    const/16 v3, 0x15

    invoke-direct {v2, v1, v3}, Lim/tpelyyftgw/ui/components/CheckBox2;-><init>(Landroid/content/Context;I)V

    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    .line 64
    const/4 v3, 0x0

    const-string/jumbo v6, "windowBackgroundWhite"

    const-string v7, "checkboxCheck"

    invoke-virtual {v2, v3, v6, v7}, Lim/tpelyyftgw/ui/components/CheckBox2;->setColor(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 65
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawUnchecked(Z)V

    .line 66
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    invoke-virtual {v2, v5}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawBackgroundAsArc(I)V

    .line 67
    iget-object v2, v0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    const/high16 v6, 0x41c00000    # 24.0f

    const/high16 v7, 0x41c00000    # 24.0f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_11f

    goto :goto_120

    :cond_11f
    const/4 v4, 0x3

    :goto_120
    or-int/lit8 v8, v4, 0x30

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_128

    const/4 v9, 0x0

    goto :goto_12c

    :cond_128
    const/high16 v3, 0x42200000    # 40.0f

    const/high16 v9, 0x42200000    # 40.0f

    :goto_12c
    const/high16 v10, 0x42120000    # 36.5f

    sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v3, :cond_137

    const/high16 v13, 0x421c0000    # 39.0f

    const/high16 v11, 0x421c0000    # 39.0f

    goto :goto_138

    :cond_137
    const/4 v11, 0x0

    :goto_138
    const/4 v12, 0x0

    invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 69
    :cond_140
    return-void
.end method


# virtual methods
.method public getObject()Lim/tpelyyftgw/tgnet/TLObject;
    .registers 2

    .line 87
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    return-object v0
.end method

.method public hasOverlappingRendering()Z
    .registers 2

    .line 227
    const/4 v0, 0x0

    return v0
.end method

.method protected onMeasure(II)V
    .registers 6
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 92
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    const/high16 v1, 0x40000000    # 2.0f

    invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    const/high16 v2, 0x42820000    # 65.0f

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

    move-result v2

    invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V

    .line 93
    return-void
.end method

.method public recycle()V
    .registers 2

    .line 96
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    move-result-object v0

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

    .line 97
    return-void
.end method

.method public setCheckBoxEnabled(Z)V
    .registers 3
    .param p1, "enabled"    # Z

    .line 83
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/CheckBox2;->setEnabled(Z)V

    .line 84
    return-void
.end method

.method public setChecked(ZZ)V
    .registers 4
    .param p1, "checked"    # Z
    .param p2, "animated"    # Z

    .line 79
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;

    invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setChecked(ZZ)V

    .line 80
    return-void
.end method

.method public setObject(Lim/tpelyyftgw/tgnet/TLObject;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
    .registers 5
    .param p1, "object"    # Lim/tpelyyftgw/tgnet/TLObject;
    .param p2, "name"    # Ljava/lang/CharSequence;
    .param p3, "status"    # Ljava/lang/CharSequence;

    .line 72
    iput-object p1, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    .line 73
    iput-object p3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentStatus:Ljava/lang/CharSequence;

    .line 74
    iput-object p2, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentName:Ljava/lang/CharSequence;

    .line 75
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->update(I)V

    .line 76
    return-void
.end method

.method public update(I)V
    .registers 16
    .param p1, "mask"    # I

    .line 100
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    if-nez v0, :cond_5

    .line 101
    return-void

    .line 103
    :cond_5
    const/4 v1, 0x0

    .line 104
    .local v1, "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    const/4 v2, 0x0

    .line 107
    .local v2, "newName":Ljava/lang/String;
    instance-of v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;

    const-string v4, "50_50"

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x1

    const-string/jumbo v8, "windowBackgroundWhiteGrayText"

    if-eqz v3, :cond_14d

    .line 108
    check-cast v0, Lim/tpelyyftgw/tgnet/TLRPC$User;

    .line 109
    .local v0, "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;

    if-eqz v3, :cond_1d

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

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

    .line 112
    :cond_1d
    if-eqz p1, :cond_7f

    .line 113
    const/4 v3, 0x0

    .line 114
    .local v3, "continueUpdate":Z
    and-int/lit8 v9, p1, 0x2

    if-eqz v9, :cond_47

    .line 115
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v9, :cond_2a

    if-eqz v1, :cond_46

    :cond_2a
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-nez v9, :cond_30

    if-nez v1, :cond_46

    :cond_30
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v9, :cond_47

    if-eqz v1, :cond_47

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

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

    cmp-long v13, v9, v11

    if-nez v13, :cond_46

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

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

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

    if-eq v9, v10, :cond_47

    .line 116
    :cond_46
    const/4 v3, 0x1

    .line 119
    :cond_47
    if-eqz v0, :cond_61

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentStatus:Ljava/lang/CharSequence;

    if-nez v9, :cond_61

    if-nez v3, :cond_61

    and-int/lit8 v9, p1, 0x4

    if-eqz v9, :cond_61

    .line 120
    const/4 v9, 0x0

    .line 121
    .local v9, "newStatus":I
    iget-object v10, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v10, :cond_5c

    .line 122
    iget-object v10, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    iget v9, v10, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I

    .line 124
    :cond_5c
    iget v10, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastStatus:I

    if-eq v9, v10, :cond_61

    .line 125
    const/4 v3, 0x1

    .line 128
    .end local v9    # "newStatus":I
    :cond_61
    if-nez v3, :cond_7c

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentName:Ljava/lang/CharSequence;

    if-nez v9, :cond_7c

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    if-eqz v9, :cond_7c

    and-int/lit8 v9, p1, 0x1

    if-eqz v9, :cond_7c

    .line 129
    invoke-static {v0}, Lim/tpelyyftgw/messenger/UserObject;->getName(Lim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;

    move-result-object v2

    .line 130
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    invoke-virtual {v2, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_7c

    .line 131
    const/4 v3, 0x1

    .line 134
    :cond_7c
    if-nez v3, :cond_7f

    .line 135
    return-void

    .line 138
    .end local v3    # "continueUpdate":Z
    :cond_7f
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v3, v0}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V

    .line 139
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v3, :cond_8d

    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    iget v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I

    goto :goto_8e

    :cond_8d
    const/4 v3, 0x0

    :goto_8e
    iput v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastStatus:I

    .line 141
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentName:Ljava/lang/CharSequence;

    if-eqz v3, :cond_9c

    .line 142
    iput-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    .line 143
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v5, v3, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;Z)Z

    goto :goto_ab

    .line 145
    :cond_9c
    if-nez v2, :cond_a3

    invoke-static {v0}, Lim/tpelyyftgw/messenger/UserObject;->getName(Lim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;

    move-result-object v3

    goto :goto_a4

    :cond_a3
    move-object v3, v2

    :goto_a4
    iput-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    .line 146
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v5, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 149
    :goto_ab
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentStatus:Ljava/lang/CharSequence;

    if-nez v3, :cond_140

    .line 150
    iget-boolean v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z

    if-eqz v3, :cond_d0

    .line 151
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v3, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 152
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 153
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v5, 0x7f0f027f

    const-string v9, "Bot"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_140

    .line 155
    :cond_d0
    iget v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    iget v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentAccount:I

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

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/messenger/UserConfig;->getClientUserId()I

    move-result v5

    if-eq v3, v5, :cond_121

    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v3, :cond_f2

    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    iget v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I

    iget v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentAccount:I

    invoke-static {v5}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getCurrentTime()I

    move-result v5

    if-gt v3, v5, :cond_121

    :cond_f2
    iget v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentAccount:I

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

    move-result-object v3

    iget-object v3, v3, Lim/tpelyyftgw/messenger/MessagesController;->onlinePrivacy:Ljava/util/concurrent/ConcurrentHashMap;

    iget v5, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

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

    move-result-object v5

    invoke-virtual {v3, v5}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_107

    goto :goto_121

    .line 160
    :cond_107
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v3, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 161
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 162
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentAccount:I

    invoke-static {v5, v0}, Lim/tpelyyftgw/messenger/LocaleController;->formatUserStatus(ILim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_140

    .line 156
    :cond_121
    :goto_121
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string/jumbo v5, "windowBackgroundWhiteBlueText"

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 157
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v5}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 158
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v5, 0x7f0f0a62

    const-string v9, "Online"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 167
    :cond_140
    :goto_140
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-static {v0, v6}, Lim/tpelyyftgw/messenger/ImageLocation;->getForUser(Lim/tpelyyftgw/tgnet/TLRPC$User;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v5

    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v3, v5, v4, v6, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    .line 168
    .end local v0    # "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    goto/16 :goto_222

    .line 169
    :cond_14d
    check-cast v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    .line 170
    .local v0, "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;

    if-eqz v3, :cond_157

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

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

    .line 173
    :cond_157
    if-eqz p1, :cond_19d

    .line 174
    const/4 v3, 0x0

    .line 175
    .restart local v3    # "continueUpdate":Z
    and-int/lit8 v9, p1, 0x2

    if-eqz v9, :cond_181

    .line 176
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v9, :cond_164

    if-eqz v1, :cond_180

    :cond_164
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-nez v9, :cond_16a

    if-nez v1, :cond_180

    :cond_16a
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v9, :cond_181

    if-eqz v1, :cond_181

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

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

    cmp-long v13, v9, v11

    if-nez v13, :cond_180

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

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

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

    if-eq v9, v10, :cond_181

    .line 177
    :cond_180
    const/4 v3, 0x1

    .line 180
    :cond_181
    if-nez v3, :cond_19a

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentName:Ljava/lang/CharSequence;

    if-nez v9, :cond_19a

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    if-eqz v9, :cond_19a

    and-int/lit8 v9, p1, 0x1

    if-eqz v9, :cond_19a

    .line 181
    iget-object v2, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;

    .line 182
    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    invoke-virtual {v2, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_19a

    .line 183
    const/4 v3, 0x1

    .line 186
    :cond_19a
    if-nez v3, :cond_19d

    .line 187
    return-void

    .line 191
    .end local v3    # "continueUpdate":Z
    :cond_19d
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v3, v0}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V

    .line 193
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentName:Ljava/lang/CharSequence;

    if-eqz v3, :cond_1ae

    .line 194
    iput-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    .line 195
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v5, v3, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;Z)Z

    goto :goto_1bb

    .line 197
    :cond_1ae
    if-nez v2, :cond_1b3

    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;

    goto :goto_1b4

    :cond_1b3
    move-object v3, v2

    :goto_1b4
    iput-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->lastName:Ljava/lang/String;

    .line 198
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v5, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 201
    :goto_1bb
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentStatus:Ljava/lang/CharSequence;

    if-nez v3, :cond_217

    .line 202
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v3, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 203
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 204
    iget v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    if-eqz v3, :cond_1df

    .line 205
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v5, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    const-string v9, "Members"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_217

    .line 206
    :cond_1df
    iget-boolean v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->has_geo:Z

    if-eqz v3, :cond_1f2

    .line 207
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v5, 0x7f0f0889

    const-string v9, "MegaLocation"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_217

    .line 208
    :cond_1f2
    iget-object v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->username:Ljava/lang/String;

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_209

    .line 209
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v5, 0x7f0f088a

    const-string v9, "MegaPrivate"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_217

    .line 211
    :cond_209
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v5, 0x7f0f088d

    const-string v9, "MegaPublic"

    invoke-static {v9, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 215
    :cond_217
    :goto_217
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-static {v0, v6}, Lim/tpelyyftgw/messenger/ImageLocation;->getForChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;Z)Lim/tpelyyftgw/messenger/ImageLocation;

    move-result-object v5

    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    invoke-virtual {v3, v5, v4, v6, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V

    .line 218
    .end local v0    # "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    :goto_222
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->currentStatus:Ljava/lang/CharSequence;

    if-eqz v0, :cond_239

    .line 219
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v3, v0, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;Z)Z

    .line 220
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTag(Ljava/lang/Object;)V

    .line 221
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/GroupCreateUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-static {v8}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V

    .line 223
    :cond_239
    return-void
.end method