MgrChatUserCell.smali

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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;
    }
.end annotation


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

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

.field private clickView:Landroid/view/View;

.field private currentAccount:I

.field private currentName:Ljava/lang/CharSequence;

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

.field private currrntStatus:Ljava/lang/CharSequence;

.field private delegate:Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;

.field private dividerView:Landroid/view/View;

.field private isAdmin:Z

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

.field private lastName:Ljava/lang/String;

.field private lastStatus:I

.field private namePadding:I

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

.field private needDivider:Z

.field private optionsButton:Landroid/widget/ImageView;

.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 20
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "avatarPadding"    # I
    .param p3, "nPadding"    # I
    .param p4, "needOption"    # Z

    .line 68
    move-object v0, p0

    move-object/from16 v1, p1

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

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

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

    .line 70
    const-string/jumbo v2, "windowBackgroundWhiteGrayText"

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

    move-result v2

    iput v2, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusColor:I

    .line 71
    const-string/jumbo v2, "windowBackgroundWhiteBlueText"

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

    move-result v2

    iput v2, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusOnlineColor:I

    .line 73
    move/from16 v2, p3

    iput v2, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    .line 75
    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/MgrChatUserCell;->clickView:Landroid/view/View;

    .line 76
    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 v5

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

    .line 79
    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/MgrChatUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

    .line 81
    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/MgrChatUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

    .line 82
    const/high16 v5, 0x41b80000    # 23.0f

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

    move-result v5

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

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

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

    const/4 v6, 0x5

    const/4 v7, 0x3

    if-eqz v5, :cond_52

    const/4 v5, 0x5

    goto :goto_53

    :cond_52
    const/4 v5, 0x3

    :goto_53
    or-int/lit8 v10, v5, 0x30

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

    const/4 v8, 0x0

    if-eqz v5, :cond_5c

    const/4 v11, 0x0

    goto :goto_60

    :cond_5c
    add-int/lit8 v5, p2, 0x7

    int-to-float v5, v5

    move v11, v5

    :goto_60
    const/high16 v12, 0x41000000    # 8.0f

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

    if-eqz v5, :cond_6b

    add-int/lit8 v5, p2, 0x7

    int-to-float v5, v5

    move v13, v5

    goto :goto_6c

    :cond_6b
    const/4 v13, 0x0

    :goto_6c
    const/4 v14, 0x0

    const/high16 v8, 0x42380000    # 46.0f

    const/high16 v9, 0x42380000    # 46.0f

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

    move-result-object v5

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

    .line 86
    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/MgrChatUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 87
    const-string/jumbo v5, "windowBackgroundWhiteBlackText"

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

    move-result v5

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

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

    const/16 v5, 0xe

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

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

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

    if-eqz v5, :cond_98

    const/4 v5, 0x5

    goto :goto_99

    :cond_98
    const/4 v5, 0x3

    :goto_99
    or-int/lit8 v5, v5, 0x30

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

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

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

    const/high16 v9, 0x41a00000    # 20.0f

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

    if-eqz v5, :cond_aa

    const/4 v5, 0x5

    goto :goto_ab

    :cond_aa
    const/4 v5, 0x3

    :goto_ab
    or-int/lit8 v10, v5, 0x30

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

    const/high16 v11, 0x42380000    # 46.0f

    if-eqz v5, :cond_b6

    const/high16 v5, 0x42380000    # 46.0f

    goto :goto_bb

    :cond_b6
    iget v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v5, v5, 0x44

    int-to-float v5, v5

    :goto_bb
    const/high16 v12, 0x41380000    # 11.5f

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

    if-eqz v13, :cond_c8

    iget v11, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v11, v11, 0x44

    int-to-float v11, v11

    move v13, v11

    goto :goto_ca

    :cond_c8
    const/high16 v13, 0x42380000    # 46.0f

    :goto_ca
    const/4 v14, 0x0

    move v11, v5

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

    move-result-object v5

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

    .line 94
    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/MgrChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    .line 95
    const/16 v5, 0xd

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

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

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

    if-eqz v5, :cond_e7

    const/4 v5, 0x5

    goto :goto_e8

    :cond_e7
    const/4 v5, 0x3

    :goto_e8
    or-int/lit8 v5, v5, 0x30

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

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

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

    const/high16 v9, 0x41a00000    # 20.0f

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

    if-eqz v5, :cond_f9

    const/4 v5, 0x5

    goto :goto_fa

    :cond_f9
    const/4 v5, 0x3

    :goto_fa
    or-int/lit8 v10, v5, 0x30

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

    const/high16 v11, 0x41e00000    # 28.0f

    if-eqz v5, :cond_105

    const/high16 v5, 0x41e00000    # 28.0f

    goto :goto_10a

    :cond_105
    iget v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v5, v5, 0x44

    int-to-float v5, v5

    :goto_10a
    const/high16 v12, 0x420a0000    # 34.5f

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

    if-eqz v13, :cond_117

    iget v11, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v11, v11, 0x44

    int-to-float v11, v11

    move v13, v11

    goto :goto_119

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

    :goto_119
    const/4 v14, 0x0

    move v11, v5

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

    move-result-object v5

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

    .line 100
    if-eqz p4, :cond_18d

    .line 101
    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/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    .line 102
    const/4 v5, 0x0

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setFocusable(Z)V

    .line 103
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const-string/jumbo v5, "stickers_menuSelector"

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

    move-result v5

    invoke-static {v5}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSelectorDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 104
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const v5, 0x7f080161

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

    .line 105
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    new-instance v5, Landroid/graphics/PorterDuffColorFilter;

    const-string/jumbo v8, "stickers_menu"

    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 {v5, v8, v9}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V

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

    .line 106
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    sget-object v5, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

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

    .line 107
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const/16 v5, 0x34

    const/16 v8, 0x40

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

    if-eqz v9, :cond_16c

    const/4 v6, 0x3

    :cond_16c
    or-int/lit8 v6, v6, 0x30

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

    move-result-object v5

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

    .line 108
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    new-instance v5, Lim/tpelyyftgw/ui/cells/-$$Lambda$MgrChatUserCell$w32TO1Sb-iz9OIWPi4G9bDwSpP0;

    invoke-direct {v5, p0}, Lim/tpelyyftgw/ui/cells/-$$Lambda$MgrChatUserCell$w32TO1Sb-iz9OIWPi4G9bDwSpP0;-><init>(Lim/tpelyyftgw/ui/cells/MgrChatUserCell;)V

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    iget-object v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const v5, 0x7f0f0053

    const-string v6, "AccDescrUserOptions"

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

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setContentDescription(Ljava/lang/CharSequence;)V

    .line 112
    :cond_18d
    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/MgrChatUserCell;->dividerView:Landroid/view/View;

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

    const/4 v5, 0x1

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

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

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

    .line 115
    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 116
    iget-object v4, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->dividerView:Landroid/view/View;

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

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

    const v5, 0x7f0600c2

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

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

    const/16 v5, 0x8

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

    .line 119
    return-void
.end method


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

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

    return-object v0
.end method

.method public hasOverlappingRendering()Z
    .registers 2

    .line 321
    const/4 v0, 0x0

    return v0
.end method

.method public synthetic lambda$new$0$MgrChatUserCell(Landroid/view/View;)V
    .registers 4
    .param p1, "v"    # Landroid/view/View;

    .line 108
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->delegate:Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;

    const/4 v1, 0x1

    invoke-interface {v0, p0, v1}, Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;->onOptionsButtonCheck(Lim/tpelyyftgw/ui/cells/MgrChatUserCell;Z)Z

    return-void
.end method

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

    .line 162
    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, 0x42800000    # 64.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 163
    return-void
.end method

.method public recycle()V
    .registers 2

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

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

    move-result-object v0

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

    .line 309
    return-void
.end method

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

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

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

    .line 127
    return-void
.end method

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

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

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

    .line 123
    return-void
.end method

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

    .line 130
    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    move/from16 v3, p4

    if-nez v1, :cond_23

    .line 131
    const/4 v4, 0x0

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

    .line 132
    iput-object v4, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentName:Ljava/lang/CharSequence;

    .line 133
    iput-object v4, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    .line 134
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const-string v6, ""

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

    .line 135
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    .line 136
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    .line 137
    return-void

    .line 139
    :cond_23
    iput-object v2, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currrntStatus:Ljava/lang/CharSequence;

    .line 140
    move-object/from16 v4, p2

    iput-object v4, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentName:Ljava/lang/CharSequence;

    .line 141
    iput-object v1, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;

    .line 142
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const/4 v6, 0x0

    if-eqz v5, :cond_ca

    .line 143
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->delegate:Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;

    invoke-interface {v5, v0, v6}, Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;->onOptionsButtonCheck(Lim/tpelyyftgw/ui/cells/MgrChatUserCell;Z)Z

    move-result v5

    .line 144
    .local v5, "visible":Z
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->optionsButton:Landroid/widget/ImageView;

    if-eqz v5, :cond_3c

    const/4 v8, 0x0

    goto :goto_3d

    :cond_3c
    const/4 v8, 0x4

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

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

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

    const/high16 v9, 0x41a00000    # 20.0f

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

    const/4 v15, 0x5

    const/16 v16, 0x3

    if-eqz v10, :cond_4f

    const/4 v10, 0x5

    goto :goto_50

    :cond_4f
    const/4 v10, 0x3

    :goto_50
    or-int/lit8 v10, v10, 0x30

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

    const/16 v17, 0x2e

    const/16 v18, 0x1c

    if-eqz v11, :cond_62

    if-eqz v5, :cond_5f

    const/16 v11, 0x2e

    goto :goto_66

    :cond_5f
    const/16 v11, 0x1c

    goto :goto_66

    :cond_62
    iget v11, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v11, v11, 0x44

    :goto_66
    int-to-float v11, v11

    if-eqz v2, :cond_73

    .line 147
    invoke-interface/range {p3 .. p3}, Ljava/lang/CharSequence;->length()I

    move-result v12

    if-lez v12, :cond_70

    goto :goto_73

    :cond_70
    const/high16 v12, 0x41a40000    # 20.5f

    goto :goto_75

    :cond_73
    :goto_73
    const/high16 v12, 0x41380000    # 11.5f

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

    if-eqz v13, :cond_7f

    iget v13, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v13, v13, 0x44

    :goto_7d
    int-to-float v13, v13

    goto :goto_87

    :cond_7f
    if-eqz v5, :cond_84

    const/16 v13, 0x2e

    goto :goto_7d

    :cond_84
    const/16 v13, 0x1c

    goto :goto_7d

    :goto_87
    const/4 v14, 0x0

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

    move-result-object v8

    invoke-virtual {v7, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

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

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

    const/high16 v9, 0x41a00000    # 20.0f

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

    if-eqz v10, :cond_9a

    goto :goto_9b

    :cond_9a
    const/4 v15, 0x3

    :goto_9b
    or-int/lit8 v10, v15, 0x30

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

    if-eqz v11, :cond_a9

    if-eqz v5, :cond_a6

    const/16 v11, 0x2e

    goto :goto_ad

    :cond_a6
    const/16 v11, 0x1c

    goto :goto_ad

    :cond_a9
    iget v11, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v11, v11, 0x44

    :goto_ad
    int-to-float v11, v11

    const/high16 v12, 0x420a0000    # 34.5f

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

    if-eqz v13, :cond_ba

    iget v13, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->namePadding:I

    add-int/lit8 v13, v13, 0x44

    :goto_b8
    int-to-float v13, v13

    goto :goto_c2

    :cond_ba
    if-eqz v5, :cond_bf

    const/16 v13, 0x2e

    goto :goto_b8

    :cond_bf
    const/16 v13, 0x1c

    goto :goto_b8

    :goto_c2
    const/4 v14, 0x0

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

    move-result-object v8

    invoke-virtual {v7, v8}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 152
    .end local v5    # "visible":Z
    :cond_ca
    iput-boolean v3, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->needDivider:Z

    .line 154
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->dividerView:Landroid/view/View;

    if-eqz v3, :cond_d2

    const/4 v7, 0x0

    goto :goto_d4

    :cond_d2
    const/16 v7, 0x8

    :goto_d4
    invoke-virtual {v5, v7}, Landroid/view/View;->setVisibility(I)V

    .line 157
    invoke-virtual {v0, v6}, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->update(I)V

    .line 158
    return-void
.end method

.method public setDelegate(Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;)V
    .registers 2
    .param p1, "manageChatUserCellDelegate"    # Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;

    .line 312
    iput-object p1, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->delegate:Lim/tpelyyftgw/ui/cells/MgrChatUserCell$ManageChatUserCellDelegate;

    .line 313
    return-void
.end method

.method public setIsAdmin(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 171
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->isAdmin:Z

    .line 172
    return-void
.end method

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

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

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

    .line 168
    return-void
.end method

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

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

    if-nez v0, :cond_5

    .line 176
    return-void

    .line 178
    :cond_5
    instance-of v1, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;

    const-string v2, "50_50"

    const/4 v3, 0x0

    const/4 v4, 0x0

    if-eqz v1, :cond_158

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

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

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

    .line 183
    .local v5, "newName":Ljava/lang/String;
    iget-object v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;

    if-eqz v6, :cond_19

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

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

    .line 187
    :cond_19
    if-eqz p1, :cond_77

    .line 188
    const/4 v6, 0x0

    .line 189
    .local v6, "continueUpdate":Z
    and-int/lit8 v7, p1, 0x2

    if-eqz v7, :cond_43

    .line 190
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v7, :cond_26

    if-eqz v1, :cond_42

    :cond_26
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-nez v7, :cond_2c

    if-nez v1, :cond_42

    :cond_2c
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v7, :cond_43

    if-eqz v1, :cond_43

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

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

    cmp-long v11, v7, v9

    if-nez v11, :cond_42

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

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

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

    if-eq v7, v8, :cond_43

    .line 191
    :cond_42
    const/4 v6, 0x1

    .line 194
    :cond_43
    if-eqz v0, :cond_59

    if-nez v6, :cond_59

    and-int/lit8 v7, p1, 0x4

    if-eqz v7, :cond_59

    .line 195
    const/4 v7, 0x0

    .line 196
    .local v7, "newStatus":I
    iget-object v8, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;

    if-eqz v8, :cond_54

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

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

    .line 199
    :cond_54
    iget v8, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastStatus:I

    if-eq v7, v8, :cond_59

    .line 200
    const/4 v6, 0x1

    .line 203
    .end local v7    # "newStatus":I
    :cond_59
    if-nez v6, :cond_74

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

    if-nez v7, :cond_74

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

    if-eqz v7, :cond_74

    and-int/lit8 v7, p1, 0x1

    if-eqz v7, :cond_74

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

    move-result-object v5

    .line 205
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastName:Ljava/lang/String;

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

    move-result v7

    if-nez v7, :cond_74

    .line 206
    const/4 v6, 0x1

    .line 209
    :cond_74
    if-nez v6, :cond_77

    .line 210
    return-void

    .line 214
    .end local v6    # "continueUpdate":Z
    :cond_77
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

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

    if-eqz v6, :cond_87

    .line 216
    iget-object v6, v0, 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/MgrChatUserCell;->lastStatus:I

    goto :goto_89

    .line 218
    :cond_87
    iput v4, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastStatus:I

    .line 221
    :goto_89
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentName:Ljava/lang/CharSequence;

    if-eqz v6, :cond_95

    .line 222
    iput-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastName:Ljava/lang/String;

    .line 223
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    goto :goto_a4

    .line 225
    :cond_95
    if-nez v5, :cond_9c

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

    move-result-object v3

    goto :goto_9d

    :cond_9c
    move-object v3, v5

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

    .line 226
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    .line 228
    :goto_a4
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currrntStatus:Ljava/lang/CharSequence;

    if-eqz v3, :cond_b8

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

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

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

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

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

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

    goto/16 :goto_149

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

    if-eqz v3, :cond_ea

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

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

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

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

    if-nez v3, :cond_db

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->isAdmin:Z

    if-eqz v3, :cond_cc

    goto :goto_db

    .line 237
    :cond_cc
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->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 {v3, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_149

    .line 235
    :cond_db
    :goto_db
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->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 {v3, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    goto :goto_149

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

    iget v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->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 v3, v6, :cond_134

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

    if-eqz v3, :cond_10c

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

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

    iget v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->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 v3, v6, :cond_134

    :cond_10c
    iget v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currentAccount:I

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

    move-result-object v3

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

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

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

    move-result-object v6

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

    move-result v3

    if-eqz v3, :cond_121

    goto :goto_134

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

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

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

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

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

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

    move-result-object v6

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

    goto :goto_149

    .line 241
    :cond_134
    :goto_134
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 242
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->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 {v3, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z

    .line 249
    :goto_149
    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 250
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    move-result-object v4

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

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

    .end local v0    # "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
    .end local v1    # "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    .end local v5    # "newName":Ljava/lang/String;
    goto/16 :goto_23e

    .line 251
    :cond_158
    instance-of v1, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    if-eqz v1, :cond_23e

    .line 252
    check-cast v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    .line 254
    .local v0, "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    const/4 v1, 0x0

    .line 255
    .restart local v1    # "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    const/4 v5, 0x0

    .line 256
    .restart local v5    # "newName":Ljava/lang/String;
    iget-object v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;

    if-eqz v6, :cond_168

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

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

    .line 260
    :cond_168
    if-eqz p1, :cond_1ae

    .line 261
    const/4 v6, 0x0

    .line 262
    .restart local v6    # "continueUpdate":Z
    and-int/lit8 v7, p1, 0x2

    if-eqz v7, :cond_192

    .line 263
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v7, :cond_175

    if-eqz v1, :cond_191

    :cond_175
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-nez v7, :cond_17b

    if-nez v1, :cond_191

    :cond_17b
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    if-eqz v7, :cond_192

    if-eqz v1, :cond_192

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

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

    cmp-long v11, v7, v9

    if-nez v11, :cond_191

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

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

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

    if-eq v7, v8, :cond_192

    .line 264
    :cond_191
    const/4 v6, 0x1

    .line 267
    :cond_192
    if-nez v6, :cond_1ab

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

    if-nez v7, :cond_1ab

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

    if-eqz v7, :cond_1ab

    and-int/lit8 v7, p1, 0x1

    if-eqz v7, :cond_1ab

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

    .line 269
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastName:Ljava/lang/String;

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

    move-result v7

    if-nez v7, :cond_1ab

    .line 270
    const/4 v6, 0x1

    .line 273
    :cond_1ab
    if-nez v6, :cond_1ae

    .line 274
    return-void

    .line 278
    .end local v6    # "continueUpdate":Z
    :cond_1ae
    iget-object v6, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

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

    if-eqz v6, :cond_1bf

    .line 281
    iput-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastName:Ljava/lang/String;

    .line 282
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

    goto :goto_1cc

    .line 284
    :cond_1bf
    if-nez v5, :cond_1c4

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

    goto :goto_1c5

    :cond_1c4
    move-object v3, v5

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

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

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

    .line 287
    :goto_1cc
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->currrntStatus:Ljava/lang/CharSequence;

    if-eqz v3, :cond_1df

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

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

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

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

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

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

    goto :goto_230

    .line 291
    :cond_1df
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

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

    if-eqz v3, :cond_1f8

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

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

    const-string v7, "Members"

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

    move-result-object v6

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

    goto :goto_230

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

    if-eqz v3, :cond_20b

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

    const v6, 0x7f0f0889

    const-string v7, "MegaLocation"

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

    move-result-object v6

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

    goto :goto_230

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

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

    move-result v3

    if-eqz v3, :cond_222

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

    const v6, 0x7f0f088a

    const-string v7, "MegaPrivate"

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

    move-result-object v6

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

    goto :goto_230

    .line 299
    :cond_222
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

    const v6, 0x7f0f088d

    const-string v7, "MegaPublic"

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

    move-result-object v6

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

    .line 302
    :goto_230
    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 303
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/MgrChatUserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;

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

    move-result-object v4

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

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

    goto :goto_23f

    .line 251
    .end local v0    # "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
    .end local v1    # "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
    .end local v5    # "newName":Ljava/lang/String;
    :cond_23e
    :goto_23e
    nop

    .line 305
    :goto_23f
    return-void
.end method