UserCell2.smali

.class public Lim/tpelyyftgw/ui/cells/UserCell2;
.super Landroid/widget/FrameLayout;
.source "UserCell2.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/CheckBox;

.field private checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

.field private clickView:Landroid/view/View;

.field private currentAccount:I

.field private currentDrawable:I

.field private currentId:I

.field private currentName:Ljava/lang/CharSequence;

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

.field private currrntStatus:Ljava/lang/CharSequence;

.field private imageView:Landroid/widget/ImageView;

.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 statusColor:I

.field private statusOnlineColor:I

.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;II)V
    .registers 21
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "padding"    # I
    .param p3, "checkbox"    # I

    .line 62
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v2, p3

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

    .line 54
    sget v3, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

    iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentAccount:I

    .line 64
    const-string/jumbo v3, "windowBackgroundWhiteGrayText"

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

    move-result v3

    iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

    .line 65
    const-string/jumbo v3, "windowBackgroundWhiteBlueText"

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

    move-result v3

    iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusOnlineColor:I

    .line 68
    new-instance v3, Landroid/view/View;

    invoke-direct {v3, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->clickView:Landroid/view/View;

    .line 69
    const/4 v4, -0x1

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

    invoke-static {v4, v5}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v4

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

    .line 71
    new-instance v3, Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

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

    .line 73
    new-instance v3, Lim/tpelyyftgw/ui/components/BackupImageView;

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

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

    .line 74
    const/high16 v4, 0x41c00000    # 24.0f

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

    move-result v4

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

    .line 75
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    const/4 v5, 0x5

    const/4 v6, 0x3

    if-eqz v4, :cond_51

    const/4 v4, 0x5

    goto :goto_52

    :cond_51
    const/4 v4, 0x3

    :goto_52
    or-int/lit8 v9, v4, 0x30

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

    const/4 v14, 0x0

    if-eqz v4, :cond_5b

    const/4 v10, 0x0

    goto :goto_5f

    :cond_5b
    add-int/lit8 v4, p2, 0x7

    int-to-float v4, v4

    move v10, v4

    :goto_5f
    const/high16 v11, 0x41300000    # 11.0f

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

    if-eqz v4, :cond_6a

    add-int/lit8 v4, p2, 0x7

    int-to-float v4, v4

    move v12, v4

    goto :goto_6b

    :cond_6a
    const/4 v12, 0x0

    :goto_6b
    const/4 v13, 0x0

    const/high16 v7, 0x42400000    # 48.0f

    const/high16 v8, 0x42400000    # 48.0f

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

    move-result-object v4

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

    .line 77
    new-instance v3, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 78
    const-string/jumbo v4, "windowBackgroundWhiteBlackText"

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

    move-result v4

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

    .line 79
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/16 v4, 0x11

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

    .line 80
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    if-eqz v4, :cond_97

    const/4 v4, 0x5

    goto :goto_98

    :cond_97
    const/4 v4, 0x3

    :goto_98
    or-int/lit8 v4, v4, 0x30

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

    .line 81
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    const/high16 v8, 0x41a00000    # 20.0f

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

    if-eqz v4, :cond_a9

    const/4 v4, 0x5

    goto :goto_aa

    :cond_a9
    const/4 v4, 0x3

    :goto_aa
    or-int/lit8 v9, v4, 0x30

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

    const/16 v10, 0x12

    const/4 v15, 0x0

    const/4 v13, 0x2

    if-eqz v4, :cond_bd

    if-ne v2, v13, :cond_b9

    const/16 v4, 0x12

    goto :goto_ba

    :cond_b9
    const/4 v4, 0x0

    :goto_ba
    add-int/lit8 v4, v4, 0x1c

    goto :goto_bf

    :cond_bd
    add-int/lit8 v4, p2, 0x44

    :goto_bf
    int-to-float v4, v4

    const/high16 v11, 0x41680000    # 14.5f

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

    if-eqz v12, :cond_cb

    add-int/lit8 v10, p2, 0x44

    :goto_c8
    int-to-float v10, v10

    move v12, v10

    goto :goto_d2

    :cond_cb
    if-ne v2, v13, :cond_ce

    goto :goto_cf

    :cond_ce
    const/4 v10, 0x0

    :goto_cf
    add-int/lit8 v10, v10, 0x1c

    goto :goto_c8

    :goto_d2
    const/16 v16, 0x0

    move v10, v4

    const/4 v4, 0x2

    move/from16 v13, v16

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

    move-result-object v7

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

    .line 83
    new-instance v3, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 84
    const/16 v7, 0xe

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

    .line 85
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    if-eqz v7, :cond_f3

    const/4 v7, 0x5

    goto :goto_f4

    :cond_f3
    const/4 v7, 0x3

    :goto_f4
    or-int/lit8 v7, v7, 0x30

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

    .line 86
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    const/high16 v8, 0x41a00000    # 20.0f

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

    if-eqz v9, :cond_105

    const/4 v9, 0x5

    goto :goto_106

    :cond_105
    const/4 v9, 0x3

    :goto_106
    or-int/lit8 v9, v9, 0x30

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

    const/high16 v11, 0x41e00000    # 28.0f

    if-eqz v10, :cond_111

    const/high16 v10, 0x41e00000    # 28.0f

    goto :goto_114

    :cond_111
    add-int/lit8 v10, p2, 0x44

    int-to-float v10, v10

    :goto_114
    const/high16 v12, 0x42160000    # 37.5f

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

    if-eqz v13, :cond_11f

    add-int/lit8 v11, p2, 0x44

    int-to-float v11, v11

    move v13, v11

    goto :goto_121

    :cond_11f
    const/high16 v13, 0x41e00000    # 28.0f

    :goto_121
    const/16 v16, 0x0

    move v11, v12

    move v12, v13

    move/from16 v13, v16

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

    move-result-object v7

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

    .line 88
    new-instance v3, Landroid/widget/ImageView;

    invoke-direct {v3, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    .line 89
    sget-object v7, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 90
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    new-instance v7, Landroid/graphics/PorterDuffColorFilter;

    const-string/jumbo v8, "windowBackgroundWhiteGrayIcon"

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

    move-result v8

    sget-object v9, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v7, v8, v9}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V

    .line 91
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    const/16 v7, 0x8

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 92
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    const/high16 v7, -0x40000000    # -2.0f

    const/high16 v8, -0x40000000    # -2.0f

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

    if-eqz v9, :cond_160

    const/4 v9, 0x5

    goto :goto_161

    :cond_160
    const/4 v9, 0x3

    :goto_161
    or-int/lit8 v9, v9, 0x10

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

    const/high16 v11, 0x41800000    # 16.0f

    if-eqz v10, :cond_16b

    const/4 v10, 0x0

    goto :goto_16d

    :cond_16b
    const/high16 v10, 0x41800000    # 16.0f

    :goto_16d
    const/4 v12, 0x0

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

    if-eqz v13, :cond_175

    const/high16 v13, 0x41800000    # 16.0f

    goto :goto_176

    :cond_175
    const/4 v13, 0x0

    :goto_176
    const/16 v16, 0x0

    move v11, v12

    move v12, v13

    move/from16 v13, v16

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

    move-result-object v7

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

    .line 94
    if-ne v2, v4, :cond_1b3

    .line 95
    new-instance v3, Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    invoke-direct {v3, v1, v15}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;-><init>(Landroid/content/Context;Z)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    .line 96
    const/high16 v7, 0x41900000    # 18.0f

    const/high16 v8, 0x41900000    # 18.0f

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

    if-eqz v4, :cond_195

    const/4 v5, 0x3

    :cond_195
    or-int/lit8 v9, v5, 0x10

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

    const/high16 v5, 0x41980000    # 19.0f

    if-eqz v4, :cond_1a0

    const/high16 v10, 0x41980000    # 19.0f

    goto :goto_1a1

    :cond_1a0
    const/4 v10, 0x0

    :goto_1a1
    const/4 v11, 0x0

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

    if-eqz v4, :cond_1a8

    const/4 v12, 0x0

    goto :goto_1aa

    :cond_1a8
    const/high16 v12, 0x41980000    # 19.0f

    :goto_1aa
    const/4 v13, 0x0

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

    move-result-object v4

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

    goto :goto_201

    .line 97
    :cond_1b3
    const/4 v3, 0x1

    if-ne v2, v3, :cond_201

    .line 98
    new-instance v3, Lim/tpelyyftgw/ui/components/CheckBox;

    const v4, 0x7f080302

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

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    .line 99
    const/4 v4, 0x4

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/components/CheckBox;->setVisibility(I)V

    .line 100
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    const-string v4, "checkbox"

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

    move-result v4

    const-string v7, "checkboxCheck"

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

    move-result v7

    invoke-virtual {v3, v4, v7}, Lim/tpelyyftgw/ui/components/CheckBox;->setColor(II)V

    .line 101
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    const/high16 v7, 0x41b00000    # 22.0f

    const/high16 v8, 0x41b00000    # 22.0f

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

    if-eqz v4, :cond_1e0

    goto :goto_1e1

    :cond_1e0
    const/4 v5, 0x3

    :goto_1e1
    or-int/lit8 v9, v5, 0x30

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

    if-eqz v4, :cond_1e9

    const/4 v10, 0x0

    goto :goto_1ed

    :cond_1e9
    add-int/lit8 v4, p2, 0x25

    int-to-float v4, v4

    move v10, v4

    :goto_1ed
    const/high16 v11, 0x42240000    # 41.0f

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

    if-eqz v4, :cond_1f8

    add-int/lit8 v4, p2, 0x25

    int-to-float v14, v4

    move v12, v14

    goto :goto_1f9

    :cond_1f8
    const/4 v12, 0x0

    :goto_1f9
    const/4 v13, 0x0

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

    move-result-object v4

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

    .line 103
    :cond_201
    :goto_201
    return-void
.end method


# virtual methods
.method public hasOverlappingRendering()Z
    .registers 2

    .line 307
    const/4 v0, 0x0

    return v0
.end method

.method public invalidate()V
    .registers 2

    .line 171
    invoke-super {p0}, Landroid/widget/FrameLayout;->invalidate()V

    .line 172
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    if-eqz v0, :cond_a

    .line 173
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->invalidate()V

    .line 175
    :cond_a
    return-void
.end method

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

    .line 161
    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, 0x428c0000    # 70.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 162
    return-void
.end method

.method public setCheckDisabled(Z)V
    .registers 3
    .param p1, "disabled"    # Z

    .line 154
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    if-eqz v0, :cond_7

    .line 155
    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->setDisabled(Z)V

    .line 157
    :cond_7
    return-void
.end method

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

    .line 140
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    const/4 v1, 0x0

    if-eqz v0, :cond_16

    .line 141
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_10

    .line 142
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBox;->setVisibility(I)V

    .line 144
    :cond_10
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

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

    goto :goto_2a

    .line 145
    :cond_16
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    if-eqz v0, :cond_2a

    .line 146
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_25

    .line 147
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->setVisibility(I)V

    .line 149
    :cond_25
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

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

    .line 151
    :cond_2a
    :goto_2a
    return-void
.end method

.method public setContainerBackground(I)V
    .registers 3
    .param p1, "res"    # I

    .line 128
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->clickView:Landroid/view/View;

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

    .line 129
    return-void
.end method

.method public setContainerBackground(Landroid/graphics/drawable/Drawable;)V
    .registers 3
    .param p1, "drawable"    # Landroid/graphics/drawable/Drawable;

    .line 124
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->clickView:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 125
    return-void
.end method

.method public setCurrentId(I)V
    .registers 2
    .param p1, "id"    # I

    .line 136
    iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentId:I

    .line 137
    return-void
.end method

.method public setData(Lim/tpelyyftgw/tgnet/TLObject;Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)V
    .registers 8
    .param p1, "object"    # Lim/tpelyyftgw/tgnet/TLObject;
    .param p2, "name"    # Ljava/lang/CharSequence;
    .param p3, "status"    # Ljava/lang/CharSequence;
    .param p4, "resId"    # I

    .line 106
    if-nez p1, :cond_1f

    if-nez p2, :cond_1f

    if-nez p3, :cond_1f

    .line 107
    const/4 v0, 0x0

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currrntStatus:Ljava/lang/CharSequence;

    .line 108
    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentName:Ljava/lang/CharSequence;

    .line 109
    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    .line 110
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string v2, ""

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

    .line 111
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    .line 112
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 113
    return-void

    .line 115
    :cond_1f
    iput-object p3, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currrntStatus:Ljava/lang/CharSequence;

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

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

    .line 118
    iput p4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentDrawable:I

    .line 119
    const/4 v0, 0x0

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

    .line 120
    return-void
.end method

.method public setNameTypeface(Landroid/graphics/Typeface;)V
    .registers 3
    .param p1, "typeface"    # Landroid/graphics/Typeface;

    .line 132
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTypeface(Landroid/graphics/Typeface;)V

    .line 133
    return-void
.end method

.method public setStatusColors(II)V
    .registers 3
    .param p1, "color"    # I
    .param p2, "onlineColor"    # I

    .line 165
    iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

    .line 166
    iput p2, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusOnlineColor:I

    .line 167
    return-void
.end method

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

    .line 178
    const/4 v0, 0x0

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

    .line 180
    .local v1, "newName":Ljava/lang/String;
    const/4 v2, 0x0

    .line 181
    .local v2, "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    const/4 v3, 0x0

    .line 182
    .local v3, "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;

    if-eqz v5, :cond_16

    .line 183
    move-object v2, v4

    check-cast v2, Lim/tpelyyftgw/tgnet/TLRPC$User;

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

    if-eqz v4, :cond_25

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

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

    goto :goto_25

    .line 187
    :cond_16
    instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    if-eqz v5, :cond_25

    .line 188
    move-object v3, v4

    check-cast v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

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

    if-eqz v4, :cond_25

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

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

    .line 194
    :cond_25
    :goto_25
    if-eqz p1, :cond_88

    .line 195
    const/4 v4, 0x0

    .line 196
    .local v4, "continueUpdate":Z
    and-int/lit8 v5, p1, 0x2

    if-eqz v5, :cond_4f

    .line 197
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v5, :cond_32

    if-eqz v0, :cond_4e

    :cond_32
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-nez v5, :cond_38

    if-nez v0, :cond_4e

    :cond_38
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v5, :cond_4f

    if-eqz v0, :cond_4f

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

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

    cmp-long v9, v5, v7

    if-nez v9, :cond_4e

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

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

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

    if-eq v5, v6, :cond_4f

    .line 198
    :cond_4e
    const/4 v4, 0x1

    .line 201
    :cond_4f
    if-eqz v2, :cond_65

    if-nez v4, :cond_65

    and-int/lit8 v5, p1, 0x4

    if-eqz v5, :cond_65

    .line 202
    const/4 v5, 0x0

    .line 203
    .local v5, "newStatus":I
    iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v6, :cond_60

    .line 204
    iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

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

    .line 206
    :cond_60
    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastStatus:I

    if-eq v5, v6, :cond_65

    .line 207
    const/4 v4, 0x1

    .line 210
    .end local v5    # "newStatus":I
    :cond_65
    if-nez v4, :cond_85

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

    if-nez v5, :cond_85

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

    if-eqz v5, :cond_85

    and-int/lit8 v5, p1, 0x1

    if-eqz v5, :cond_85

    .line 211
    if-eqz v2, :cond_7a

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

    move-result-object v1

    goto :goto_7c

    .line 214
    :cond_7a
    iget-object v1, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;

    .line 216
    :goto_7c
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastName:Ljava/lang/String;

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

    move-result v5

    if-nez v5, :cond_85

    .line 217
    const/4 v4, 0x1

    .line 220
    :cond_85
    if-nez v4, :cond_88

    .line 221
    return-void

    .line 224
    .end local v4    # "continueUpdate":Z
    :cond_88
    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 226
    const/4 v4, 0x0

    const/4 v5, 0x0

    if-eqz v2, :cond_a1

    .line 227
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

    .line 228
    iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v6, :cond_9e

    .line 229
    iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

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

    iput v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastStatus:I

    goto :goto_c2

    .line 231
    :cond_9e
    iput v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastStatus:I

    goto :goto_c2

    .line 233
    :cond_a1
    if-eqz v3, :cond_a9

    .line 234
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

    goto :goto_c2

    .line 235
    :cond_a9
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentName:Ljava/lang/CharSequence;

    if-eqz v6, :cond_b9

    .line 236
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    iget v8, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentId:I

    invoke-interface {v6}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v8, v6, v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(ILjava/lang/String;Ljava/lang/String;)V

    goto :goto_c2

    .line 238
    :cond_b9
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentId:I

    const-string v8, "#"

    invoke-virtual {v6, v7, v8, v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(ILjava/lang/String;Ljava/lang/String;)V

    .line 241
    :goto_c2
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentName:Ljava/lang/CharSequence;

    if-eqz v6, :cond_ce

    .line 242
    iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastName:Ljava/lang/String;

    .line 243
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    goto :goto_ea

    .line 245
    :cond_ce
    if-eqz v2, :cond_db

    .line 246
    if-nez v1, :cond_d7

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

    move-result-object v4

    goto :goto_d8

    :cond_d7
    move-object v4, v1

    :goto_d8
    iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastName:Ljava/lang/String;

    goto :goto_e3

    .line 248
    :cond_db
    if-nez v1, :cond_e0

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

    goto :goto_e1

    :cond_e0
    move-object v4, v1

    :goto_e1
    iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->lastName:Ljava/lang/String;

    .line 250
    :goto_e3
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 252
    :goto_ea
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currrntStatus:Ljava/lang/CharSequence;

    if-eqz v4, :cond_fe

    .line 253
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

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

    .line 254
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currrntStatus:Ljava/lang/CharSequence;

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

    goto/16 :goto_246

    .line 255
    :cond_fe
    const-string v4, "50_50"

    if-eqz v2, :cond_19b

    .line 256
    iget-boolean v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z

    if-eqz v6, :cond_12f

    .line 257
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

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

    .line 258
    iget-boolean v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot_chat_history:Z

    if-eqz v6, :cond_120

    .line 259
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f028a

    const-string v8, "BotStatusRead"

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

    move-result-object v7

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

    goto :goto_18e

    .line 261
    :cond_120
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f0289

    const-string v8, "BotStatusCantRead"

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

    move-result-object v7

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

    goto :goto_18e

    .line 264
    :cond_12f
    iget v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentAccount:I

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

    move-result-object v7

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

    move-result v7

    if-eq v6, v7, :cond_179

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

    if-eqz v6, :cond_151

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

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

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentAccount:I

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

    move-result-object v7

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

    move-result v7

    if-gt v6, v7, :cond_179

    :cond_151
    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentAccount:I

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

    move-result-object v6

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

    iget v7, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

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

    move-result-object v7

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

    move-result v6

    if-eqz v6, :cond_166

    goto :goto_179

    .line 268
    :cond_166
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

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

    .line 269
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentAccount:I

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

    move-result-object v7

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

    goto :goto_18e

    .line 265
    :cond_179
    :goto_179
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusOnlineColor:I

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

    .line 266
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f0a62

    const-string v8, "Online"

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

    move-result-object v7

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

    .line 272
    :goto_18e
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    move-result-object v7

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

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

    goto/16 :goto_246

    .line 273
    :cond_19b
    if-eqz v3, :cond_23f

    .line 274
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusColor:I

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

    .line 275
    invoke-static {v3}, Lim/tpelyyftgw/messenger/ChatObject;->isChannel(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)Z

    move-result v6

    if-eqz v6, :cond_1e7

    iget-boolean v6, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->megagroup:Z

    if-nez v6, :cond_1e7

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

    if-eqz v6, :cond_1c1

    .line 277
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    const-string v8, "Subscribers"

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

    move-result-object v7

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

    goto/16 :goto_231

    .line 278
    :cond_1c1
    iget-object v6, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->username:Ljava/lang/String;

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

    move-result v6

    if-eqz v6, :cond_1d8

    .line 279
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f038f

    const-string v8, "ChannelPrivate"

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

    move-result-object v7

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

    goto :goto_231

    .line 281
    :cond_1d8
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f0392

    const-string v8, "ChannelPublic"

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

    move-result-object v7

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

    goto :goto_231

    .line 284
    :cond_1e7
    iget v6, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    if-eqz v6, :cond_1f9

    .line 285
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v7, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->participants_count:I

    const-string v8, "Members"

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

    move-result-object v7

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

    goto :goto_231

    .line 286
    :cond_1f9
    iget-boolean v6, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->has_geo:Z

    if-eqz v6, :cond_20c

    .line 287
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f0889

    const-string v8, "MegaLocation"

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

    move-result-object v7

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

    goto :goto_231

    .line 288
    :cond_20c
    iget-object v6, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->username:Ljava/lang/String;

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

    move-result v6

    if-eqz v6, :cond_223

    .line 289
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f088a

    const-string v8, "MegaPrivate"

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

    move-result-object v7

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

    goto :goto_231

    .line 291
    :cond_223
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v7, 0x7f0f088d

    const-string v8, "MegaPublic"

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

    move-result-object v7

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

    .line 294
    :goto_231
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    move-result-object v7

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

    iget-object v9, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

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

    goto :goto_246

    .line 296
    :cond_23f
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 299
    :goto_246
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    invoke-virtual {v4}, Landroid/widget/ImageView;->getVisibility()I

    move-result v4

    const/16 v6, 0x8

    if-nez v4, :cond_254

    iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentDrawable:I

    if-eqz v4, :cond_260

    :cond_254
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    invoke-virtual {v4}, Landroid/widget/ImageView;->getVisibility()I

    move-result v4

    if-ne v4, v6, :cond_272

    iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentDrawable:I

    if-eqz v4, :cond_272

    .line 300
    :cond_260
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentDrawable:I

    if-nez v7, :cond_268

    const/16 v5, 0x8

    :cond_268
    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 301
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->imageView:Landroid/widget/ImageView;

    iget v5, p0, Lim/tpelyyftgw/ui/cells/UserCell2;->currentDrawable:I

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 303
    :cond_272
    return-void
.end method