UserCell3.smali

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


# instance fields
.field private addButton:Landroid/widget/TextView;

.field private adminTextView:Landroid/widget/TextView;

.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 currentStatus:Ljava/lang/CharSequence;

.field private dividerView:Landroid/view/View;

.field private encryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

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

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

.field private needDivider:Z

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

    .line 88
    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move v2, p2

    move v3, p3

    move v4, p4

    invoke-direct/range {v0 .. v5}, Lim/tpelyyftgw/ui/cells/UserCell3;-><init>(Landroid/content/Context;IIZZ)V

    .line 89
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;IIZZ)V
    .registers 26
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "padding"    # I
    .param p3, "checkbox"    # I
    .param p4, "admin"    # Z
    .param p5, "needAddButton"    # Z

    .line 92
    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 68
    sget v3, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

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

    .line 74
    const/4 v3, 0x0

    iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->miViewType:I

    .line 96
    new-instance v4, Landroid/view/View;

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

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

    .line 97
    const/4 v5, -0x1

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

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

    move-result-object v6

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

    .line 99
    const/high16 v4, 0x41600000    # 14.0f

    const/4 v6, 0x1

    if-eqz p5, :cond_d7

    .line 100
    new-instance v10, Landroid/widget/TextView;

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

    iput-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    .line 101
    const/16 v11, 0x11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setGravity(I)V

    .line 102
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    const-string v11, "featuredStickers_buttonText"

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

    move-result v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setTextColor(I)V

    .line 103
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    invoke-virtual {v10, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 104
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    const-string v11, "fonts/rmedium.ttf"

    invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    .line 105
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    const/high16 v11, 0x40800000    # 4.0f

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

    move-result v11

    int-to-float v11, v11

    const-string v12, "featuredStickers_addButton"

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

    move-result v12

    const-string v13, "featuredStickers_addButtonPressed"

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

    move-result v13

    invoke-static {v11, v12, v13}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSimpleSelectorRoundRectDrawable(FII)Landroid/graphics/drawable/Drawable;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 106
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    const v11, 0x7f0f00ad

    const-string v12, "Add"

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

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 107
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    const/high16 v11, 0x41880000    # 17.0f

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

    move-result v12

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

    move-result v11

    invoke-virtual {v10, v12, v3, v11, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 108
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

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

    const/high16 v12, 0x41e00000    # 28.0f

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

    if-eqz v13, :cond_92

    const/4 v13, 0x3

    goto :goto_93

    :cond_92
    const/4 v13, 0x5

    :goto_93
    or-int/lit8 v13, v13, 0x30

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

    if-eqz v14, :cond_9c

    const/high16 v14, 0x41600000    # 14.0f

    goto :goto_9d

    :cond_9c
    const/4 v14, 0x0

    :goto_9d
    const/high16 v15, 0x41940000    # 18.5f

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

    if-eqz v16, :cond_a6

    const/16 v16, 0x0

    goto :goto_a8

    :cond_a6
    const/high16 v16, 0x41600000    # 14.0f

    :goto_a8
    const/16 v17, 0x0

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

    move-result-object v11

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

    .line 109
    iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    invoke-virtual {v10}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v10

    iget-object v11, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    invoke-virtual {v11}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v11

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

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F

    move-result v10

    const/high16 v11, 0x42400000    # 48.0f

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

    move-result v11

    int-to-float v11, v11

    add-float/2addr v10, v11

    sget v11, Lim/tpelyyftgw/messenger/AndroidUtilities;->density:F

    div-float/2addr v10, v11

    float-to-double v10, v10

    invoke-static {v10, v11}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v10

    double-to-int v10, v10

    .local v10, "additionalPadding":I
    goto :goto_d8

    .line 111
    .end local v10    # "additionalPadding":I
    :cond_d7
    const/4 v10, 0x0

    .line 114
    .restart local v10    # "additionalPadding":I
    :goto_d8
    const-string/jumbo v11, "windowBackgroundWhiteGrayText"

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

    move-result v11

    iput v11, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusColor:I

    .line 115
    const-string/jumbo v11, "windowBackgroundWhiteBlueText"

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

    move-result v11

    iput v11, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusOnlineColor:I

    .line 117
    new-instance v11, Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

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

    .line 119
    new-instance v11, Lim/tpelyyftgw/ui/components/BackupImageView;

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

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

    .line 120
    const/high16 v12, 0x41b80000    # 23.0f

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

    move-result v13

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

    .line 121
    iget-object v11, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    const/high16 v13, 0x42380000    # 46.0f

    const/high16 v14, 0x42380000    # 46.0f

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

    if-eqz v15, :cond_10d

    const/4 v15, 0x5

    goto :goto_10e

    :cond_10d
    const/4 v15, 0x3

    :goto_10e
    or-int/lit8 v15, v15, 0x30

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

    if-eqz v16, :cond_117

    const/16 v16, 0x0

    goto :goto_11c

    :cond_117
    add-int/lit8 v7, p2, 0x7

    int-to-float v7, v7

    move/from16 v16, v7

    :goto_11c
    const/high16 v17, 0x41200000    # 10.0f

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

    if-eqz v7, :cond_128

    add-int/lit8 v7, p2, 0x7

    int-to-float v7, v7

    move/from16 v18, v7

    goto :goto_12a

    :cond_128
    const/16 v18, 0x0

    :goto_12a
    const/16 v19, 0x0

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

    move-result-object v7

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

    .line 123
    new-instance v7, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 124
    const-string/jumbo v11, "windowBackgroundWhiteBlackText"

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

    move-result v11

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

    .line 126
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const/16 v11, 0xe

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

    .line 127
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    if-eqz v11, :cond_153

    const/4 v11, 0x5

    goto :goto_154

    :cond_153
    const/4 v11, 0x3

    :goto_154
    or-int/lit8 v11, v11, 0x30

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

    .line 128
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    const/high16 v14, 0x41a00000    # 20.0f

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

    if-eqz v11, :cond_165

    const/4 v11, 0x5

    goto :goto_166

    :cond_165
    const/4 v11, 0x3

    :goto_166
    or-int/lit8 v15, v11, 0x30

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

    const/16 v16, 0x12

    const/4 v8, 0x2

    if-eqz v11, :cond_179

    if-ne v2, v8, :cond_174

    const/16 v11, 0x12

    goto :goto_175

    :cond_174
    const/4 v11, 0x0

    :goto_175
    add-int/lit8 v11, v11, 0x1c

    add-int/2addr v11, v10

    goto :goto_17b

    :cond_179
    add-int/lit8 v11, p2, 0x40

    :goto_17b
    int-to-float v11, v11

    const/high16 v17, 0x41580000    # 13.5f

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

    if-eqz v18, :cond_188

    add-int/lit8 v9, p2, 0x40

    :goto_184
    int-to-float v9, v9

    move/from16 v18, v9

    goto :goto_192

    :cond_188
    if-ne v2, v8, :cond_18b

    goto :goto_18d

    :cond_18b
    const/16 v16, 0x0

    :goto_18d
    add-int/lit8 v16, v16, 0x1c

    add-int v9, v16, v10

    goto :goto_184

    :goto_192
    const/16 v19, 0x0

    move/from16 v16, v11

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

    move-result-object v9

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

    .line 130
    new-instance v7, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 131
    const/16 v9, 0xd

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

    .line 132
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    if-eqz v9, :cond_1b1

    const/4 v9, 0x5

    goto :goto_1b2

    :cond_1b1
    const/4 v9, 0x3

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

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

    .line 133
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    const/high16 v14, 0x41a00000    # 20.0f

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

    if-eqz v9, :cond_1c3

    const/4 v9, 0x5

    goto :goto_1c4

    :cond_1c3
    const/4 v9, 0x3

    :goto_1c4
    or-int/lit8 v15, v9, 0x30

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

    if-eqz v9, :cond_1cd

    add-int/lit8 v9, v10, 0x1c

    goto :goto_1cf

    :cond_1cd
    add-int/lit8 v9, p2, 0x40

    :goto_1cf
    int-to-float v9, v9

    move/from16 v16, v9

    const/high16 v17, 0x420e0000    # 35.5f

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

    if-eqz v9, :cond_1db

    add-int/lit8 v9, p2, 0x40

    goto :goto_1dd

    :cond_1db
    add-int/lit8 v9, v10, 0x1c

    :goto_1dd
    int-to-float v9, v9

    move/from16 v18, v9

    const/16 v19, 0x0

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

    move-result-object v9

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

    .line 135
    new-instance v7, Landroid/widget/ImageView;

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

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

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

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

    .line 137
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->imageView:Landroid/widget/ImageView;

    new-instance v9, Landroid/graphics/PorterDuffColorFilter;

    const-string/jumbo v11, "windowBackgroundWhiteGrayIcon"

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

    move-result v11

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

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

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

    .line 138
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->imageView:Landroid/widget/ImageView;

    const/16 v9, 0x8

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

    .line 139
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->imageView:Landroid/widget/ImageView;

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

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

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

    if-eqz v11, :cond_21b

    const/4 v11, 0x5

    goto :goto_21c

    :cond_21b
    const/4 v11, 0x3

    :goto_21c
    or-int/lit8 v15, v11, 0x10

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

    const/high16 v16, 0x41800000    # 16.0f

    if-eqz v11, :cond_226

    const/4 v11, 0x0

    goto :goto_228

    :cond_226
    const/high16 v11, 0x41800000    # 16.0f

    :goto_228
    const/16 v17, 0x0

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

    if-eqz v18, :cond_231

    const/high16 v18, 0x41800000    # 16.0f

    goto :goto_233

    :cond_231
    const/16 v18, 0x0

    :goto_233
    const/16 v19, 0x0

    move/from16 v16, v11

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

    move-result-object v11

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

    .line 141
    if-ne v2, v8, :cond_274

    .line 142
    new-instance v7, Lim/tpelyyftgw/ui/components/CheckBoxSquare;

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

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

    .line 143
    const/high16 v13, 0x41900000    # 18.0f

    const/high16 v14, 0x41900000    # 18.0f

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

    if-eqz v3, :cond_251

    const/4 v3, 0x3

    goto :goto_252

    :cond_251
    const/4 v3, 0x5

    :goto_252
    or-int/lit8 v15, v3, 0x10

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

    const/high16 v8, 0x41980000    # 19.0f

    if-eqz v3, :cond_25d

    const/high16 v16, 0x41980000    # 19.0f

    goto :goto_25f

    :cond_25d
    const/16 v16, 0x0

    :goto_25f
    const/16 v17, 0x0

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

    if-eqz v3, :cond_268

    const/16 v18, 0x0

    goto :goto_26a

    :cond_268
    const/high16 v18, 0x41980000    # 19.0f

    :goto_26a
    const/16 v19, 0x0

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

    move-result-object v3

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

    goto :goto_2c7

    .line 144
    :cond_274
    if-ne v2, v6, :cond_2c7

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

    const v7, 0x7f080302

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

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

    .line 146
    const/4 v7, 0x4

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

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

    const-string v7, "checkbox"

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

    move-result v7

    const-string v8, "checkboxCheck"

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

    move-result v8

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

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

    const/high16 v13, 0x41b00000    # 22.0f

    const/high16 v14, 0x41b00000    # 22.0f

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

    if-eqz v7, :cond_2a1

    const/4 v7, 0x5

    goto :goto_2a2

    :cond_2a1
    const/4 v7, 0x3

    :goto_2a2
    or-int/lit8 v15, v7, 0x30

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

    if-eqz v7, :cond_2ab

    const/16 v16, 0x0

    goto :goto_2b0

    :cond_2ab
    add-int/lit8 v7, p2, 0x25

    int-to-float v7, v7

    move/from16 v16, v7

    :goto_2b0
    const/high16 v17, 0x422e0000    # 43.5f

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

    if-eqz v7, :cond_2bc

    add-int/lit8 v7, p2, 0x25

    int-to-float v7, v7

    move/from16 v18, v7

    goto :goto_2be

    :cond_2bc
    const/16 v18, 0x0

    :goto_2be
    const/16 v19, 0x0

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

    move-result-object v7

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

    .line 151
    :cond_2c7
    :goto_2c7
    if-eqz p4, :cond_30b

    .line 152
    new-instance v3, Landroid/widget/TextView;

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

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    .line 153
    invoke-virtual {v3, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 154
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    const-string/jumbo v4, "profile_creatorIcon"

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

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 155
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

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

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

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

    if-eqz v4, :cond_2eb

    const/4 v7, 0x3

    goto :goto_2ec

    :cond_2eb
    const/4 v7, 0x5

    :goto_2ec
    or-int/lit8 v15, v7, 0x30

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

    if-eqz v4, :cond_2f5

    const/high16 v16, 0x41b80000    # 23.0f

    goto :goto_2f7

    :cond_2f5
    const/16 v16, 0x0

    :goto_2f7
    const/high16 v17, 0x41200000    # 10.0f

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

    if-eqz v4, :cond_300

    const/16 v18, 0x0

    goto :goto_302

    :cond_300
    const/high16 v18, 0x41b80000    # 23.0f

    :goto_302
    const/16 v19, 0x0

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

    move-result-object v4

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

    .line 159
    :cond_30b
    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/UserCell3;->dividerView:Landroid/view/View;

    .line 160
    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v3, v5, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 161
    .local v3, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
    const/16 v4, 0x50

    iput v4, v3, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 162
    const/high16 v4, 0x42880000    # 68.0f

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

    move-result v4

    iput v4, v3, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 163
    iget-object v4, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->dividerView:Landroid/view/View;

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

    .line 164
    iget-object v4, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->dividerView:Landroid/view/View;

    const v5, 0x7f0600c2

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

    .line 165
    iget-object v4, v0, Lim/tpelyyftgw/ui/cells/UserCell3;->dividerView:Landroid/view/View;

    invoke-virtual {v4, v9}, Landroid/view/View;->setVisibility(I)V

    .line 167
    invoke-virtual {v0, v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setFocusable(Z)V

    .line 168
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .line 80
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 68
    sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

    iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

    .line 74
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->miViewType:I

    .line 81
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyleAttr"    # I

    .line 84
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 68
    sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I

    iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

    .line 74
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->miViewType:I

    .line 85
    return-void
.end method


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

    .line 521
    const/4 v0, 0x0

    return v0
.end method

.method public invalidate()V
    .registers 2

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

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

    if-eqz v0, :cond_a

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

    .line 377
    :cond_a
    return-void
.end method

.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
    .registers 5
    .param p1, "info"    # Landroid/view/accessibility/AccessibilityNodeInfo;

    .line 528
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V

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

    const-string v1, "android.widget.CheckBox"

    const/4 v2, 0x1

    if-eqz v0, :cond_20

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

    move-result v0

    if-nez v0, :cond_20

    .line 530
    invoke-virtual {p1, v2}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V

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

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->isChecked()Z

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V

    .line 532
    invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V

    goto :goto_39

    .line 533
    :cond_20
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    if-eqz v0, :cond_39

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

    move-result v0

    if-nez v0, :cond_39

    .line 534
    invoke-virtual {p1, v2}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V

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

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox;->isChecked()Z

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V

    .line 536
    invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V

    .line 538
    :cond_39
    :goto_39
    return-void
.end method

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

    .line 363
    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

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->needDivider:Z

    add-int/2addr v2, v3

    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 364
    return-void
.end method

.method public setAddButtonVisible(Z)V
    .registers 4
    .param p1, "value"    # Z

    .line 205
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->addButton:Landroid/widget/TextView;

    if-nez v0, :cond_5

    .line 206
    return-void

    .line 208
    :cond_5
    if-eqz p1, :cond_9

    const/4 v1, 0x0

    goto :goto_b

    :cond_9
    const/16 v1, 0x8

    :goto_b
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 209
    return-void
.end method

.method public setAdminRole(Ljava/lang/String;)V
    .registers 9
    .param p1, "role"    # Ljava/lang/String;

    .line 212
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    if-nez v0, :cond_5

    .line 213
    return-void

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

    if-eqz p1, :cond_a

    const/4 v2, 0x0

    goto :goto_c

    :cond_a
    const/16 v2, 0x8

    :goto_c
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 216
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 217
    if-eqz p1, :cond_4e

    .line 218
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    .line 219
    .local v0, "text":Ljava/lang/CharSequence;
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v2

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v3

    invoke-virtual {v2, v0, v1, v3}, Landroid/text/TextPaint;->measureText(Ljava/lang/CharSequence;II)F

    move-result v2

    float-to-double v2, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v2

    double-to-int v2, v2

    .line 220
    .local v2, "size":I
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    const/high16 v5, 0x40c00000    # 6.0f

    if-eqz v4, :cond_3e

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

    move-result v4

    add-int/2addr v4, v2

    goto :goto_3f

    :cond_3e
    const/4 v4, 0x0

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

    if-nez v6, :cond_49

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

    move-result v5

    add-int/2addr v5, v2

    goto :goto_4a

    :cond_49
    const/4 v5, 0x0

    :goto_4a
    invoke-virtual {v3, v4, v1, v5, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setPadding(IIII)V

    .line 221
    .end local v0    # "text":Ljava/lang/CharSequence;
    .end local v2    # "size":I
    goto :goto_53

    .line 222
    :cond_4e
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    invoke-virtual {v0, v1, v1, v1, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setPadding(IIII)V

    .line 224
    :goto_53
    return-void
.end method

.method public setAvatarPadding(I)V
    .registers 7
    .param p1, "padding"    # I

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

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 185
    .local v0, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_f

    const/4 v1, 0x0

    goto :goto_12

    :cond_f
    add-int/lit8 v1, p1, 0x7

    int-to-float v1, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 186
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_20

    add-int/lit8 v1, p1, 0x7

    int-to-float v1, v1

    goto :goto_21

    :cond_20
    const/4 v1, 0x0

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I

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

    invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

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

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 190
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/16 v3, 0x12

    const/4 v4, 0x0

    if-eqz v1, :cond_47

    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    if-eqz v1, :cond_43

    const/16 v1, 0x12

    goto :goto_44

    :cond_43
    const/4 v1, 0x0

    :goto_44
    add-int/lit8 v1, v1, 0x1c

    goto :goto_49

    :cond_47
    add-int/lit8 v1, p1, 0x40

    :goto_49
    int-to-float v1, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 191
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_58

    add-int/lit8 v1, p1, 0x40

    int-to-float v1, v1

    goto :goto_61

    :cond_58
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;

    if-eqz v1, :cond_5d

    goto :goto_5e

    :cond_5d
    const/4 v3, 0x0

    :goto_5e
    add-int/lit8 v3, v3, 0x1c

    int-to-float v1, v3

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I

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

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 194
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/high16 v3, 0x41e00000    # 28.0f

    if-eqz v1, :cond_79

    const/high16 v1, 0x41e00000    # 28.0f

    goto :goto_7c

    :cond_79
    add-int/lit8 v1, p1, 0x40

    int-to-float v1, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 195
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_89

    add-int/lit8 v1, p1, 0x40

    int-to-float v3, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I

    .line 197
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;

    if-eqz v1, :cond_b6

    .line 198
    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 199
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_a0

    const/4 v1, 0x0

    goto :goto_a3

    :cond_a0
    add-int/lit8 v1, p1, 0x25

    int-to-float v1, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 200
    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_b0

    add-int/lit8 v1, p1, 0x25

    int-to-float v2, v1

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

    move-result v1

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I

    .line 202
    :cond_b6
    return-void
.end method

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

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

    if-eqz v0, :cond_7

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

    .line 359
    :cond_7
    return-void
.end method

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

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

    const/4 v1, 0x0

    if-eqz v0, :cond_16

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

    move-result v0

    if-eqz v0, :cond_10

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

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

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

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

    goto :goto_2a

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

    if-eqz v0, :cond_2a

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

    move-result v0

    if-eqz v0, :cond_25

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

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

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

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

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

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

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

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

    .line 177
    return-void
.end method

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

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

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

    .line 173
    return-void
.end method

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

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

    .line 339
    return-void
.end method

.method public setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
    .registers 10
    .param p1, "object"    # Lim/tpelyyftgw/tgnet/TLObject;
    .param p2, "ec"    # Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
    .param p3, "name"    # Ljava/lang/CharSequence;
    .param p4, "status"    # Ljava/lang/CharSequence;
    .param p5, "resId"    # I
    .param p6, "divider"    # Z

    .line 237
    if-nez p1, :cond_1f

    if-nez p3, :cond_1f

    if-nez p4, :cond_1f

    .line 238
    const/4 v0, 0x0

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

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

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

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

    const-string v2, ""

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

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

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

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

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

    .line 244
    return-void

    .line 246
    :cond_1f
    iput-object p2, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->encryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    .line 247
    iput-object p4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentStatus:Ljava/lang/CharSequence;

    .line 248
    iput-object p3, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentName:Ljava/lang/CharSequence;

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

    .line 250
    iput p5, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentDrawable:I

    .line 251
    iput-boolean p6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->needDivider:Z

    .line 252
    xor-int/lit8 v0, p6, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/UserCell3;->setWillNotDraw(Z)V

    .line 254
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->dividerView:Landroid/view/View;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->needDivider:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_39

    const/4 v1, 0x0

    goto :goto_3b

    :cond_39
    const/16 v1, 0x8

    :goto_3b
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 256
    invoke-virtual {p0, v2}, Lim/tpelyyftgw/ui/cells/UserCell3;->update(I)V

    .line 257
    return-void
.end method

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

    .line 229
    const/4 v2, 0x0

    const/4 v6, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V

    .line 230
    return-void
.end method

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

    .line 233
    const/4 v2, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V

    .line 234
    return-void
.end method

.method public setException(Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;Ljava/lang/CharSequence;Z)V
    .registers 21
    .param p1, "exception"    # Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;
    .param p2, "name"    # Ljava/lang/CharSequence;
    .param p3, "divider"    # Z

    .line 262
    move-object/from16 v7, p0

    move-object/from16 v8, p1

    iget-boolean v9, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->hasCustom:Z

    .line 263
    .local v9, "custom":Z
    iget v10, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->notify:I

    .line 264
    .local v10, "value":I
    iget v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->muteUntil:I

    .line 265
    .local v0, "delta":I
    const v1, 0x7f0f0a21

    const-string v2, "NotificationsCustom"

    const v3, 0x7f0f0a52

    const-string v4, "NotificationsUnmuted"

    const/4 v5, 0x1

    const/4 v6, 0x3

    if-ne v10, v6, :cond_9b

    const v6, 0x7fffffff

    if-eq v0, v6, :cond_9b

    .line 266
    iget v6, v7, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v6

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

    move-result v6

    sub-int/2addr v0, v6

    .line 267
    if-gtz v0, :cond_3a

    .line 268
    if-eqz v9, :cond_33

    .line 269
    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .local v1, "text":Ljava/lang/String;
    goto/16 :goto_c4

    .line 271
    .end local v1    # "text":Ljava/lang/String;
    :cond_33
    invoke-static {v4, v3}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto/16 :goto_c4

    .line 273
    .end local v1    # "text":Ljava/lang/String;
    :cond_3a
    const/16 v1, 0xe10

    const/4 v2, 0x0

    const v3, 0x7f0f128f

    const-string v4, "WillUnmuteIn"

    if-ge v0, v1, :cond_57

    .line 274
    new-array v1, v5, [Ljava/lang/Object;

    div-int/lit8 v5, v0, 0x3c

    const-string v6, "Minutes"

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

    move-result-object v5

    aput-object v5, v1, v2

    invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto/16 :goto_c4

    .line 275
    .end local v1    # "text":Ljava/lang/String;
    :cond_57
    const v1, 0x15180

    const/high16 v6, 0x42700000    # 60.0f

    if-ge v0, v1, :cond_77

    .line 276
    new-array v1, v5, [Ljava/lang/Object;

    int-to-float v5, v0

    div-float/2addr v5, v6

    div-float/2addr v5, v6

    float-to-double v5, v5

    invoke-static {v5, v6}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v5

    double-to-int v5, v5

    const-string v6, "Hours"

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

    move-result-object v5

    aput-object v5, v1, v2

    invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto :goto_c4

    .line 277
    .end local v1    # "text":Ljava/lang/String;
    :cond_77
    const v1, 0x1e13380

    if-ge v0, v1, :cond_98

    .line 278
    new-array v1, v5, [Ljava/lang/Object;

    int-to-float v5, v0

    div-float/2addr v5, v6

    div-float/2addr v5, v6

    const/high16 v6, 0x41c00000    # 24.0f

    div-float/2addr v5, v6

    float-to-double v5, v5

    invoke-static {v5, v6}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v5

    double-to-int v5, v5

    const-string v6, "Days"

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

    move-result-object v5

    aput-object v5, v1, v2

    invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto :goto_c4

    .line 280
    .end local v1    # "text":Ljava/lang/String;
    :cond_98
    const/4 v1, 0x0

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto :goto_c4

    .line 283
    .end local v1    # "text":Ljava/lang/String;
    :cond_9b
    if-nez v10, :cond_9f

    .line 284
    const/4 v5, 0x1

    .local v5, "enabled":Z
    goto :goto_a9

    .line 285
    .end local v5    # "enabled":Z
    :cond_9f
    if-ne v10, v5, :cond_a3

    .line 286
    const/4 v5, 0x1

    .restart local v5    # "enabled":Z
    goto :goto_a9

    .line 287
    .end local v5    # "enabled":Z
    :cond_a3
    const/4 v5, 0x2

    if-ne v10, v5, :cond_a8

    .line 288
    const/4 v5, 0x0

    .restart local v5    # "enabled":Z
    goto :goto_a9

    .line 290
    .end local v5    # "enabled":Z
    :cond_a8
    const/4 v5, 0x0

    .line 292
    .restart local v5    # "enabled":Z
    :goto_a9
    if-eqz v5, :cond_b3

    if-eqz v9, :cond_b3

    .line 293
    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v1

    move v11, v0

    .restart local v1    # "text":Ljava/lang/String;
    goto :goto_c4

    .line 295
    .end local v1    # "text":Ljava/lang/String;
    :cond_b3
    if-eqz v5, :cond_ba

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

    move-result-object v1

    goto :goto_c3

    :cond_ba
    const v1, 0x7f0f0a35

    const-string v2, "NotificationsMuted"

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

    move-result-object v1

    :goto_c3
    move v11, v0

    .line 298
    .end local v0    # "delta":I
    .end local v5    # "enabled":Z
    .restart local v1    # "text":Ljava/lang/String;
    .local v11, "delta":I
    :goto_c4
    if-nez v1, :cond_d1

    .line 299
    const v0, 0x7f0f0a37

    const-string v2, "NotificationsOff"

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

    move-result-object v1

    move-object v12, v1

    goto :goto_d2

    .line 298
    :cond_d1
    move-object v12, v1

    .line 302
    .end local v1    # "text":Ljava/lang/String;
    .local v12, "text":Ljava/lang/String;
    :goto_d2
    iget-wide v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->did:J

    long-to-int v13, v0

    .line 303
    .local v13, "lower_id":I
    iget-wide v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->did:J

    const/16 v2, 0x20

    shr-long/2addr v0, v2

    long-to-int v14, v0

    .line 304
    .local v14, "high_id":I
    if-eqz v13, :cond_11c

    .line 305
    if-lez v13, :cond_fd

    .line 306
    iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v0

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

    move-result-object v1

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

    move-result-object v15

    .line 307
    .local v15, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    if-eqz v15, :cond_fc

    .line 308
    const/4 v2, 0x0

    const/4 v5, 0x0

    move-object/from16 v0, p0

    move-object v1, v15

    move-object/from16 v3, p2

    move-object v4, v12

    move/from16 v6, p3

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V

    .line 310
    .end local v15    # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    :cond_fc
    goto :goto_14b

    .line 311
    :cond_fd
    iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v0

    neg-int v1, v13

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

    move-result-object v1

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

    move-result-object v15

    .line 312
    .local v15, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    if-eqz v15, :cond_11b

    .line 313
    const/4 v2, 0x0

    const/4 v5, 0x0

    move-object/from16 v0, p0

    move-object v1, v15

    move-object/from16 v3, p2

    move-object v4, v12

    move/from16 v6, p3

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V

    .line 315
    .end local v15    # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    :cond_11b
    goto :goto_14b

    .line 317
    :cond_11c
    iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v0

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/MessagesController;->getEncryptedChat(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;

    move-result-object v15

    .line 318
    .local v15, "encryptedChat":Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
    if-eqz v15, :cond_14b

    .line 319
    iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v0

    iget v1, v15, Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;->user_id:I

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

    move-result-object v1

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

    move-result-object v16

    .line 320
    .local v16, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    if-eqz v16, :cond_14b

    .line 321
    const/4 v5, 0x0

    const/4 v6, 0x0

    move-object/from16 v0, p0

    move-object/from16 v1, v16

    move-object v2, v15

    move-object/from16 v3, p2

    move-object v4, v12

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell3;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V

    .line 325
    .end local v15    # "encryptedChat":Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
    .end local v16    # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
    :cond_14b
    :goto_14b
    return-void
.end method

.method public setMiViewType(I)V
    .registers 2
    .param p1, "miViewType"    # I

    .line 180
    iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->miViewType:I

    .line 181
    return-void
.end method

.method public setNameTextAttr(IILandroid/graphics/Typeface;)V
    .registers 5
    .param p1, "size"    # I
    .param p2, "color"    # I
    .param p3, "typeface"    # Landroid/graphics/Typeface;

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

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

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

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

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

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

    .line 335
    return-void
.end method

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

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

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

    .line 329
    return-void
.end method

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

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

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

    .line 369
    return-void
.end method

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

    .line 380
    const/4 v0, 0x0

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

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

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

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

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

    if-eqz v5, :cond_16

    .line 385
    move-object v2, v4

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

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

    if-eqz v4, :cond_25

    .line 387
    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 401
    :cond_16
    instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    if-eqz v5, :cond_25

    .line 402
    move-object v3, v4

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

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

    if-eqz v4, :cond_25

    .line 404
    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 408
    :cond_25
    :goto_25
    if-eqz p1, :cond_88

    .line 409
    const/4 v4, 0x0

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

    if-eqz v5, :cond_4f

    .line 411
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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/UserCell3;->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/UserCell3;->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/UserCell3;->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 412
    :cond_4e
    const/4 v4, 0x1

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

    if-nez v4, :cond_65

    and-int/lit8 v5, p1, 0x4

    if-eqz v5, :cond_65

    .line 416
    const/4 v5, 0x0

    .line 417
    .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 418
    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 420
    :cond_60
    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->lastStatus:I

    if-eq v5, v6, :cond_65

    .line 421
    const/4 v4, 0x1

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

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

    if-nez v5, :cond_85

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

    if-eqz v5, :cond_85

    and-int/lit8 v5, p1, 0x1

    if-eqz v5, :cond_85

    .line 425
    if-eqz v2, :cond_7a

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

    move-result-object v1

    goto :goto_7c

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

    .line 430
    :goto_7c
    iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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 431
    const/4 v4, 0x1

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

    .line 435
    return-void

    .line 439
    .end local v4    # "continueUpdate":Z
    :cond_88
    const/4 v4, 0x0

    const/4 v5, 0x0

    if-eqz v2, :cond_9f

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

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

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

    if-eqz v6, :cond_9c

    .line 442
    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/UserCell3;->lastStatus:I

    goto :goto_c0

    .line 444
    :cond_9c
    iput v5, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->lastStatus:I

    goto :goto_c0

    .line 446
    :cond_9f
    if-eqz v3, :cond_a7

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

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

    goto :goto_c0

    .line 448
    :cond_a7
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentName:Ljava/lang/CharSequence;

    if-eqz v6, :cond_b7

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

    iget v8, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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_c0

    .line 451
    :cond_b7
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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 454
    :goto_c0
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentName:Ljava/lang/CharSequence;

    if-eqz v6, :cond_cc

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

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

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

    goto :goto_ef

    .line 458
    :cond_cc
    if-eqz v2, :cond_d9

    .line 465
    if-nez v1, :cond_d5

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

    move-result-object v4

    goto :goto_d6

    :cond_d5
    move-object v4, v1

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

    goto :goto_e8

    .line 466
    :cond_d9
    if-eqz v3, :cond_e4

    .line 467
    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/UserCell3;->lastName:Ljava/lang/String;

    goto :goto_e8

    .line 469
    :cond_e4
    const-string v4, ""

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

    .line 471
    :goto_e8
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 473
    :goto_ef
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentStatus:Ljava/lang/CharSequence;

    if-eqz v4, :cond_103

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

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

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

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

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

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

    goto/16 :goto_1cf

    .line 476
    :cond_103
    if-eqz v2, :cond_1cf

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

    if-eqz v4, :cond_13f

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

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

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

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

    if-nez v4, :cond_12f

    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->adminTextView:Landroid/widget/TextView;

    if-eqz v4, :cond_11f

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

    move-result v4

    if-nez v4, :cond_11f

    goto :goto_12f

    .line 482
    :cond_11f
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v6, 0x7f0f0289

    const-string v7, "BotStatusCantRead"

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

    move-result-object v6

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

    goto/16 :goto_1cf

    .line 480
    :cond_12f
    :goto_12f
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v6, 0x7f0f028a

    const-string v7, "BotStatusRead"

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

    move-result-object v6

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

    goto/16 :goto_1cf

    .line 485
    :cond_13f
    iget v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

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

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

    move-result-object v6

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

    move-result v6

    if-eq v4, v6, :cond_1ba

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

    if-eqz v4, :cond_161

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

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

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

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

    move-result-object v6

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

    move-result v6

    if-gt v4, v6, :cond_1ba

    :cond_161
    iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentAccount:I

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

    move-result-object v4

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

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

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

    move-result-object v6

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

    move-result v4

    if-eqz v4, :cond_176

    goto :goto_1ba

    .line 489
    :cond_176
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 490
    iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->miViewType:I

    if-nez v4, :cond_18d

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

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

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

    move-result-object v6

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

    goto :goto_1cf

    .line 493
    :cond_18d
    const/4 v4, 0x1

    new-array v4, v4, [Z

    aput-boolean v5, v4, v5

    .line 494
    .local v4, "booleans":[Z
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    move-result-object v7

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

    .line 495
    aget-boolean v6, v4, v5

    if-eqz v6, :cond_1ad

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

    const-string v7, "#42B71E"

    invoke-static {v7}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v7

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

    goto :goto_1cf

    .line 498
    :cond_1ad
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string/jumbo v7, "windowBackgroundWhiteGrayText2"

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

    move-result v7

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

    goto :goto_1cf

    .line 486
    .end local v4    # "booleans":[Z
    :cond_1ba
    :goto_1ba
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->statusOnlineColor:I

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

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

    const v6, 0x7f0f0a62

    const-string v7, "Online"

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

    move-result-object v6

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

    .line 504
    :cond_1cf
    :goto_1cf
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->imageView:Landroid/widget/ImageView;

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

    move-result v4

    const/16 v6, 0x8

    if-nez v4, :cond_1dd

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

    if-eqz v4, :cond_1e9

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

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

    move-result v4

    if-ne v4, v6, :cond_1fb

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

    if-eqz v4, :cond_1fb

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

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

    if-nez v7, :cond_1f0

    goto :goto_1f1

    :cond_1f0
    const/4 v6, 0x0

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

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

    iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->currentDrawable:I

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

    .line 509
    :cond_1fb
    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 510
    const-string v4, "50_50"

    if-eqz v2, :cond_20d

    .line 511
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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 v5

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

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

    goto :goto_222

    .line 512
    :cond_20d
    if-eqz v3, :cond_21b

    .line 513
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->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 v5

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

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

    goto :goto_222

    .line 515
    :cond_21b
    iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell3;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

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

    .line 517
    :goto_222
    return-void
.end method