ManageChatUserCell.smali

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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/cells/ManageChatUserCell$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/ManageChatUserCell$ManageChatUserCellDelegate;

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

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

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

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

    .line 68
    const-string/jumbo v0, "windowBackgroundWhiteGrayText"

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

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->statusColor:I

    .line 69
    const-string/jumbo v0, "windowBackgroundWhiteBlueText"

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

    move-result v0

    iput v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->statusOnlineColor:I

    .line 71
    iput p3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->namePadding:I

    .line 73
    new-instance v0, Landroid/view/View;

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

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

    .line 74
    const/4 v1, -0x1

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

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

    move-result-object v1

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

    .line 77
    new-instance v0, Lim/tpelyyftgw/ui/components/AvatarDrawable;

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

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

    .line 79
    new-instance v0, Lim/tpelyyftgw/ui/components/BackupImageView;

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

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

    .line 80
    const/high16 v1, 0x41b80000    # 23.0f

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

    move-result v1

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

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

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

    const/4 v2, 0x5

    const/4 v3, 0x3

    if-eqz v1, :cond_4d

    const/4 v1, 0x5

    goto :goto_4e

    :cond_4d
    const/4 v1, 0x3

    :goto_4e
    or-int/lit8 v6, v1, 0x30

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

    const/4 v4, 0x0

    if-eqz v1, :cond_57

    const/4 v7, 0x0

    goto :goto_5b

    :cond_57
    add-int/lit8 v1, p2, 0x7

    int-to-float v1, v1

    move v7, v1

    :goto_5b
    const/high16 v8, 0x41000000    # 8.0f

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

    if-eqz v1, :cond_66

    add-int/lit8 v1, p2, 0x7

    int-to-float v1, v1

    move v9, v1

    goto :goto_67

    :cond_66
    const/4 v9, 0x0

    :goto_67
    const/4 v10, 0x0

    const/high16 v4, 0x42380000    # 46.0f

    const/high16 v5, 0x42380000    # 46.0f

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

    move-result-object v1

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

    .line 84
    new-instance v0, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 85
    const-string/jumbo v1, "windowBackgroundWhiteBlackText"

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

    move-result v1

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

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

    const/16 v1, 0xe

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

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

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

    if-eqz v1, :cond_93

    const/4 v1, 0x5

    goto :goto_94

    :cond_93
    const/4 v1, 0x3

    :goto_94
    or-int/lit8 v1, v1, 0x30

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

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

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

    const/high16 v5, 0x41a00000    # 20.0f

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

    if-eqz v1, :cond_a5

    const/4 v1, 0x5

    goto :goto_a6

    :cond_a5
    const/4 v1, 0x3

    :goto_a6
    or-int/lit8 v6, v1, 0x30

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

    const/high16 v7, 0x42380000    # 46.0f

    if-eqz v1, :cond_b1

    const/high16 v1, 0x42380000    # 46.0f

    goto :goto_b6

    :cond_b1
    iget v1, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->namePadding:I

    add-int/lit8 v1, v1, 0x44

    int-to-float v1, v1

    :goto_b6
    const/high16 v8, 0x41380000    # 11.5f

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

    if-eqz v9, :cond_c3

    iget v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->namePadding:I

    add-int/lit8 v7, v7, 0x44

    int-to-float v7, v7

    move v9, v7

    goto :goto_c5

    :cond_c3
    const/high16 v9, 0x42380000    # 46.0f

    :goto_c5
    const/4 v10, 0x0

    move v7, v1

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

    move-result-object v1

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

    .line 92
    new-instance v0, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 93
    const/16 v1, 0xd

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

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

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

    if-eqz v1, :cond_e2

    const/4 v1, 0x5

    goto :goto_e3

    :cond_e2
    const/4 v1, 0x3

    :goto_e3
    or-int/lit8 v1, v1, 0x30

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

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

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

    const/high16 v5, 0x41a00000    # 20.0f

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

    if-eqz v1, :cond_f4

    const/4 v1, 0x5

    goto :goto_f5

    :cond_f4
    const/4 v1, 0x3

    :goto_f5
    or-int/lit8 v6, v1, 0x30

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

    const/high16 v7, 0x41e00000    # 28.0f

    if-eqz v1, :cond_100

    const/high16 v1, 0x41e00000    # 28.0f

    goto :goto_105

    :cond_100
    iget v1, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->namePadding:I

    add-int/lit8 v1, v1, 0x44

    int-to-float v1, v1

    :goto_105
    const/high16 v8, 0x420a0000    # 34.5f

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

    if-eqz v9, :cond_112

    iget v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->namePadding:I

    add-int/lit8 v7, v7, 0x44

    int-to-float v7, v7

    move v9, v7

    goto :goto_114

    :cond_112
    const/high16 v9, 0x41e00000    # 28.0f

    :goto_114
    const/4 v10, 0x0

    move v7, v1

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

    move-result-object v1

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

    .line 98
    if-eqz p4, :cond_188

    .line 99
    new-instance v0, Landroid/widget/ImageView;

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

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->optionsButton:Landroid/widget/ImageView;

    .line 100
    const/4 v1, 0x0

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

    .line 101
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const-string/jumbo v1, "stickers_menuSelector"

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

    move-result v1

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

    move-result-object v1

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

    .line 102
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->optionsButton:Landroid/widget/ImageView;

    const v1, 0x7f080161

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

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

    new-instance v1, Landroid/graphics/PorterDuffColorFilter;

    const-string/jumbo v4, "stickers_menu"

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

    move-result v4

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

    invoke-direct {v1, v4, v5}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V

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

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

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

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

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

    const/16 v1, 0x34

    const/16 v4, 0x40

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

    if-eqz v5, :cond_167

    const/4 v2, 0x3

    :cond_167
    or-int/lit8 v2, v2, 0x30

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

    move-result-object v1

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

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

    new-instance v1, Lim/tpelyyftgw/ui/cells/-$$Lambda$ManageChatUserCell$9uFSm7Sdg2llQTl7KCyEwfb0TKE;

    invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/cells/-$$Lambda$ManageChatUserCell$9uFSm7Sdg2llQTl7KCyEwfb0TKE;-><init>(Lim/tpelyyftgw/ui/cells/ManageChatUserCell;)V

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

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

    const v1, 0x7f0f0053

    const-string v2, "AccDescrUserOptions"

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

    move-result-object v1

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

    .line 109
    :cond_188
    return-void
.end method


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

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

    return-object v0
.end method

.method public hasOverlappingRendering()Z
    .registers 2

    .line 309
    const/4 v0, 0x0

    return v0
.end method

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

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

    const/4 v1, 0x1

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

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 314
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->needDivider:Z

    if-eqz v0, :cond_37

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

    const/high16 v1, 0x42880000    # 68.0f

    if-eqz v0, :cond_d

    const/4 v0, 0x0

    const/4 v3, 0x0

    goto :goto_13

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

    move-result v0

    int-to-float v0, v0

    move v3, v0

    :goto_13
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->getMeasuredHeight()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    int-to-float v4, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->getMeasuredWidth()I

    move-result v0

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

    if-eqz v2, :cond_27

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

    move-result v1

    goto :goto_28

    :cond_27
    const/4 v1, 0x0

    :goto_28
    sub-int/2addr v0, v1

    int-to-float v5, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->getMeasuredHeight()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    int-to-float v6, v0

    sget-object v7, Lim/tpelyyftgw/ui/actionbar/Theme;->dividerPaint:Landroid/graphics/Paint;

    .line 315
    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 318
    :cond_37
    return-void
.end method

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

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

    .line 150
    const/high16 v2, 0x42800000    # 64.0f

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

    move-result v2

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

    add-int/2addr v2, v3

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

    move-result v1

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

    .line 151
    return-void
.end method

.method public recycle()V
    .registers 2

    .line 296
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 297
    return-void
.end method

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

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

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

    .line 117
    return-void
.end method

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

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

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

    .line 113
    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 120
    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 121
    const/4 v4, 0x0

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

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

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

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

    const-string v6, ""

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

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

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

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

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

    .line 127
    return-void

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

    .line 130
    move-object/from16 v4, p2

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

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

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

    const/4 v6, 0x0

    if-eqz v5, :cond_ca

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

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

    move-result v5

    .line 134
    .local v5, "visible":Z
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 135
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->namePadding:I

    add-int/lit8 v11, v11, 0x44

    :goto_66
    int-to-float v11, v11

    if-eqz v2, :cond_73

    .line 137
    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/ManageChatUserCell;->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 135
    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 138
    iget-object v7, v0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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 142
    .end local v5    # "visible":Z
    :cond_ca
    iput-boolean v3, v0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->needDivider:Z

    .line 143
    xor-int/lit8 v5, v3, 0x1

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

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

    .line 145
    return-void
.end method

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

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

    .line 301
    return-void
.end method

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

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

    .line 160
    return-void
.end method

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

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

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

    .line 156
    return-void
.end method

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

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

    if-nez v0, :cond_5

    .line 164
    return-void

    .line 166
    :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 167
    check-cast v0, Lim/tpelyyftgw/tgnet/TLRPC$User;

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

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

    .line 171
    .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 172
    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 175
    :cond_19
    if-eqz p1, :cond_77

    .line 176
    const/4 v6, 0x0

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

    if-eqz v7, :cond_43

    .line 178
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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 179
    :cond_42
    const/4 v6, 0x1

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

    if-nez v6, :cond_59

    and-int/lit8 v7, p1, 0x4

    if-eqz v7, :cond_59

    .line 183
    const/4 v7, 0x0

    .line 184
    .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 185
    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 187
    :cond_54
    iget v8, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->lastStatus:I

    if-eq v7, v8, :cond_59

    .line 188
    const/4 v6, 0x1

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

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

    if-nez v7, :cond_74

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

    if-eqz v7, :cond_74

    and-int/lit8 v7, p1, 0x1

    if-eqz v7, :cond_74

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

    move-result-object v5

    .line 193
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 194
    const/4 v6, 0x1

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

    .line 198
    return-void

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

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

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

    if-eqz v6, :cond_87

    .line 204
    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/ManageChatUserCell;->lastStatus:I

    goto :goto_89

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

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

    if-eqz v6, :cond_95

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

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

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

    goto :goto_a4

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

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

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

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

    if-eqz v3, :cond_b8

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

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

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

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

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

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

    goto/16 :goto_149

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

    if-eqz v3, :cond_ea

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

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

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

    .line 222
    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/ManageChatUserCell;->isAdmin:Z

    if-eqz v3, :cond_cc

    goto :goto_db

    .line 225
    :cond_cc
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 223
    :cond_db
    :goto_db
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 228
    :cond_ea
    iget v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I

    iget v6, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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 232
    :cond_121
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

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

    iget v6, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 229
    :cond_134
    :goto_134
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;

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

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

    .line 230
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 237
    :goto_149
    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 238
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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 239
    :cond_158
    instance-of v1, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;

    if-eqz v1, :cond_23e

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

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

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

    .line 244
    .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 245
    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 248
    :cond_168
    if-eqz p1, :cond_1ae

    .line 249
    const/4 v6, 0x0

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

    if-eqz v7, :cond_192

    .line 251
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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/ManageChatUserCell;->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 252
    :cond_191
    const/4 v6, 0x1

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

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

    if-nez v7, :cond_1ab

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

    if-eqz v7, :cond_1ab

    and-int/lit8 v7, p1, 0x1

    if-eqz v7, :cond_1ab

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

    .line 257
    iget-object v7, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 258
    const/4 v6, 0x1

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

    .line 262
    return-void

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

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

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

    if-eqz v6, :cond_1bf

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

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

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

    goto :goto_1cc

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

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

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

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

    if-eqz v3, :cond_1df

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

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

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

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

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

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

    goto :goto_230

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

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

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

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

    if-eqz v3, :cond_1f8

    .line 281
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 282
    :cond_1f8
    iget-boolean v3, v0, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->has_geo:Z

    if-eqz v3, :cond_20b

    .line 283
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 284
    :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 285
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 287
    :cond_222
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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 290
    :goto_230
    iput-object v1, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;

    .line 291
    iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ManageChatUserCell;->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/ManageChatUserCell;->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 239
    .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 293
    :goto_23f
    return-void
.end method