UserCell.smali
.class public Lim/tpelyyftgw/ui/cells/UserCell;
.super Landroid/widget/FrameLayout;
.source "UserCell.java"
# instance fields
.field private addButton:Landroid/widget/TextView;
.field private adminTextView:Landroid/widget/TextView;
.field private avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.field private avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.field private checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
.field private checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
.field private clickView:Landroid/view/View;
.field private currentAccount:I
.field private currentDrawable:I
.field private currentId:I
.field private currentName:Ljava/lang/CharSequence;
.field private currentObject:Lim/tpelyyftgw/tgnet/TLObject;
.field private currentStatus:Ljava/lang/CharSequence;
.field private encryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
.field private imageView:Landroid/widget/ImageView;
.field private lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
.field private lastName:Ljava/lang/String;
.field private lastStatus:I
.field private miViewType:I
.field private nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.field private needDivider:Z
.field private statusColor:I
.field private statusOnlineColor:I
.field private statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;IIZ)V
.registers 11
.param p1, "context" # Landroid/content/Context;
.param p2, "padding" # I
.param p3, "checkbox" # I
.param p4, "admin" # Z
.line 83
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
move v2, p2
move v3, p3
move v4, p4
invoke-direct/range {v0 .. v5}, Lim/tpelyyftgw/ui/cells/UserCell;-><init>(Landroid/content/Context;IIZZ)V
.line 84
return-void
.end method
.method public constructor <init>(Landroid/content/Context;IIZZ)V
.registers 25
.param p1, "context" # Landroid/content/Context;
.param p2, "padding" # I
.param p3, "checkbox" # I
.param p4, "admin" # Z
.param p5, "needAddButton" # Z
.line 87
move-object/from16 v0, p0
move-object/from16 v1, p1
move/from16 v2, p3
invoke-direct/range {p0 .. p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 65
sget v3, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
.line 71
const/4 v3, 0x0
iput v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->miViewType:I
.line 91
new-instance v4, Landroid/view/View;
invoke-direct {v4, v1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/cells/UserCell;->clickView:Landroid/view/View;
.line 92
const/4 v5, -0x1
const/high16 v6, -0x40800000 # -1.0f
invoke-static {v5, v6}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v0, v4, v5}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 94
const/high16 v4, 0x41600000 # 14.0f
const/4 v5, 0x1
const/4 v8, 0x0
if-eqz p5, :cond_d7
.line 95
new-instance v9, Landroid/widget/TextView;
invoke-direct {v9, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
.line 96
const/16 v10, 0x11
invoke-virtual {v9, v10}, Landroid/widget/TextView;->setGravity(I)V
.line 97
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const-string v10, "featuredStickers_buttonText"
invoke-static {v10}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v10
invoke-virtual {v9, v10}, Landroid/widget/TextView;->setTextColor(I)V
.line 98
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
invoke-virtual {v9, v5, v4}, Landroid/widget/TextView;->setTextSize(IF)V
.line 99
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const-string v10, "fonts/rmedium.ttf"
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v10
invoke-virtual {v9, v10}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 100
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const/high16 v10, 0x40800000 # 4.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
const-string v11, "featuredStickers_addButton"
invoke-static {v11}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v11
const-string v12, "featuredStickers_addButtonPressed"
invoke-static {v12}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v12
invoke-static {v10, v11, v12}, Lim/tpelyyftgw/ui/actionbar/Theme;->createSimpleSelectorRoundRectDrawable(FII)Landroid/graphics/drawable/Drawable;
move-result-object v10
invoke-virtual {v9, v10}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 101
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const v10, 0x7f0f00ad
const-string v11, "Add"
invoke-static {v11, v10}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v10
invoke-virtual {v9, v10}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 102
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const/high16 v10, 0x41880000 # 17.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v11
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
invoke-virtual {v9, v11, v3, v10, v3}, Landroid/widget/TextView;->setPadding(IIII)V
.line 103
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
const/high16 v10, -0x40000000 # -2.0f
const/high16 v11, 0x41e00000 # 28.0f
sget-boolean v12, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v12, :cond_93
const/4 v12, 0x3
goto :goto_94
:cond_93
const/4 v12, 0x5
:goto_94
or-int/lit8 v12, v12, 0x30
sget-boolean v13, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v13, :cond_9d
const/high16 v13, 0x41600000 # 14.0f
goto :goto_9e
:cond_9d
const/4 v13, 0x0
:goto_9e
const/high16 v14, 0x41940000 # 18.5f
sget-boolean v15, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v15, :cond_a6
const/4 v15, 0x0
goto :goto_a8
:cond_a6
const/high16 v15, 0x41600000 # 14.0f
:goto_a8
const/16 v16, 0x0
invoke-static/range {v10 .. v16}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v10
invoke-virtual {v0, v9, v10}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 104
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
invoke-virtual {v9}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
move-result-object v9
iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
invoke-virtual {v10}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
move-result-object v10
invoke-interface {v10}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v10
invoke-virtual {v9, v10}, Landroid/text/TextPaint;->measureText(Ljava/lang/String;)F
move-result v9
const/high16 v10, 0x42400000 # 48.0f
invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v10
int-to-float v10, v10
add-float/2addr v9, v10
sget v10, Lim/tpelyyftgw/messenger/AndroidUtilities;->density:F
div-float/2addr v9, v10
float-to-double v9, v9
invoke-static {v9, v10}, Ljava/lang/Math;->ceil(D)D
move-result-wide v9
double-to-int v9, v9
.local v9, "additionalPadding":I
goto :goto_d8
.line 106
.end local v9 # "additionalPadding":I
:cond_d7
const/4 v9, 0x0
.line 109
.restart local v9 # "additionalPadding":I
:goto_d8
const-string/jumbo v10, "windowBackgroundWhiteGrayText"
invoke-static {v10}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v10
iput v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->statusColor:I
.line 110
const-string/jumbo v10, "windowBackgroundWhiteBlueText"
invoke-static {v10}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v10
iput v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->statusOnlineColor:I
.line 112
new-instance v10, Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-direct {v10}, Lim/tpelyyftgw/ui/components/AvatarDrawable;-><init>()V
iput-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.line 114
new-instance v10, Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-direct {v10, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V
iput-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.line 115
const/high16 v11, 0x41b80000 # 23.0f
invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v12
invoke-virtual {v10, v12}, Lim/tpelyyftgw/ui/components/BackupImageView;->setRoundRadius(I)V
.line 116
iget-object v10, v0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
const/high16 v12, 0x42380000 # 46.0f
const/high16 v13, 0x42380000 # 46.0f
sget-boolean v14, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v14, :cond_10d
const/4 v14, 0x5
goto :goto_10e
:cond_10d
const/4 v14, 0x3
:goto_10e
or-int/lit8 v14, v14, 0x30
sget-boolean v15, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v15, :cond_116
const/4 v15, 0x0
goto :goto_119
:cond_116
add-int/lit8 v15, p2, 0x7
int-to-float v15, v15
:goto_119
const/high16 v16, 0x41200000 # 10.0f
sget-boolean v17, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v17, :cond_125
add-int/lit8 v6, p2, 0x7
int-to-float v6, v6
move/from16 v17, v6
goto :goto_127
:cond_125
const/16 v17, 0x0
:goto_127
const/16 v18, 0x0
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v10, v6}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 118
new-instance v6, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-direct {v6, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.line 119
const-string/jumbo v10, "windowBackgroundWhiteBlackText"
invoke-static {v10}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v10
invoke-virtual {v6, v10}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 121
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/16 v10, 0xe
invoke-virtual {v6, v10}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V
.line 122
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_150
const/4 v10, 0x5
goto :goto_151
:cond_150
const/4 v10, 0x3
:goto_151
or-int/lit8 v10, v10, 0x30
invoke-virtual {v6, v10}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V
.line 123
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/high16 v12, -0x40800000 # -1.0f
const/high16 v13, 0x41a00000 # 20.0f
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_162
const/4 v10, 0x5
goto :goto_163
:cond_162
const/4 v10, 0x3
:goto_163
or-int/lit8 v14, v10, 0x30
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/16 v15, 0x12
const/4 v7, 0x2
if-eqz v10, :cond_176
if-ne v2, v7, :cond_171
const/16 v10, 0x12
goto :goto_172
:cond_171
const/4 v10, 0x0
:goto_172
add-int/lit8 v10, v10, 0x1c
add-int/2addr v10, v9
goto :goto_178
:cond_176
add-int/lit8 v10, p2, 0x40
:goto_178
int-to-float v10, v10
const/high16 v16, 0x41580000 # 13.5f
sget-boolean v17, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v17, :cond_185
add-int/lit8 v15, p2, 0x40
:goto_181
int-to-float v15, v15
move/from16 v17, v15
goto :goto_18d
:cond_185
if-ne v2, v7, :cond_188
goto :goto_189
:cond_188
const/4 v15, 0x0
:goto_189
add-int/lit8 v15, v15, 0x1c
add-int/2addr v15, v9
goto :goto_181
:goto_18d
const/16 v18, 0x0
move v15, v10
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v10
invoke-virtual {v0, v6, v10}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 125
new-instance v6, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-direct {v6, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.line 126
const/16 v10, 0xd
invoke-virtual {v6, v10}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V
.line 127
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_1ab
const/4 v10, 0x5
goto :goto_1ac
:cond_1ab
const/4 v10, 0x3
:goto_1ac
or-int/lit8 v10, v10, 0x30
invoke-virtual {v6, v10}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V
.line 128
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/high16 v12, -0x40800000 # -1.0f
const/high16 v13, 0x41a00000 # 20.0f
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_1bd
const/4 v10, 0x5
goto :goto_1be
:cond_1bd
const/4 v10, 0x3
:goto_1be
or-int/lit8 v14, v10, 0x30
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_1c7
add-int/lit8 v10, v9, 0x1c
goto :goto_1c9
:cond_1c7
add-int/lit8 v10, p2, 0x40
:goto_1c9
int-to-float v10, v10
move v15, v10
const/high16 v16, 0x420e0000 # 35.5f
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_1d4
add-int/lit8 v10, p2, 0x40
goto :goto_1d6
:cond_1d4
add-int/lit8 v10, v9, 0x1c
:goto_1d6
int-to-float v10, v10
move/from16 v17, v10
const/16 v18, 0x0
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v10
invoke-virtual {v0, v6, v10}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 130
new-instance v6, Landroid/widget/ImageView;
invoke-direct {v6, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
.line 131
sget-object v10, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v6, v10}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 132
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
new-instance v10, Landroid/graphics/PorterDuffColorFilter;
const-string/jumbo v12, "windowBackgroundWhiteGrayIcon"
invoke-static {v12}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v12
sget-object v13, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v10, v12, v13}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v6, v10}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 133
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
const/16 v10, 0x8
invoke-virtual {v6, v10}, Landroid/widget/ImageView;->setVisibility(I)V
.line 134
iget-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
const/high16 v12, -0x40000000 # -2.0f
const/high16 v13, -0x40000000 # -2.0f
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_214
const/4 v10, 0x5
goto :goto_215
:cond_214
const/4 v10, 0x3
:goto_215
or-int/lit8 v14, v10, 0x10
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v15, 0x41800000 # 16.0f
if-eqz v10, :cond_21f
const/4 v10, 0x0
goto :goto_221
:cond_21f
const/high16 v10, 0x41800000 # 16.0f
:goto_221
const/16 v16, 0x0
sget-boolean v17, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v17, :cond_22a
const/high16 v17, 0x41800000 # 16.0f
goto :goto_22c
:cond_22a
const/16 v17, 0x0
:goto_22c
const/16 v18, 0x0
move v15, v10
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v10
invoke-virtual {v0, v6, v10}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 136
if-ne v2, v7, :cond_26b
.line 137
new-instance v6, Lim/tpelyyftgw/ui/components/CheckBoxSquare;
invoke-direct {v6, v1, v3}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;-><init>(Landroid/content/Context;Z)V
iput-object v6, v0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
.line 138
const/high16 v12, 0x41900000 # 18.0f
const/high16 v13, 0x41900000 # 18.0f
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_249
const/4 v3, 0x3
goto :goto_24a
:cond_249
const/4 v3, 0x5
:goto_24a
or-int/lit8 v14, v3, 0x10
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v7, 0x41980000 # 19.0f
if-eqz v3, :cond_255
const/high16 v15, 0x41980000 # 19.0f
goto :goto_256
:cond_255
const/4 v15, 0x0
:goto_256
const/16 v16, 0x0
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_25f
const/16 v17, 0x0
goto :goto_261
:cond_25f
const/high16 v17, 0x41980000 # 19.0f
:goto_261
const/16 v18, 0x0
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v6, v3}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
goto :goto_2bc
.line 139
:cond_26b
if-ne v2, v5, :cond_2bc
.line 140
new-instance v3, Lim/tpelyyftgw/ui/components/CheckBox;
const v6, 0x7f080302
invoke-direct {v3, v1, v6}, Lim/tpelyyftgw/ui/components/CheckBox;-><init>(Landroid/content/Context;I)V
iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
.line 141
const/4 v6, 0x4
invoke-virtual {v3, v6}, Lim/tpelyyftgw/ui/components/CheckBox;->setVisibility(I)V
.line 142
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
const-string v6, "checkbox"
invoke-static {v6}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v6
const-string v7, "checkboxCheck"
invoke-static {v7}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v7
invoke-virtual {v3, v6, v7}, Lim/tpelyyftgw/ui/components/CheckBox;->setColor(II)V
.line 143
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
const/high16 v12, 0x41b00000 # 22.0f
const/high16 v13, 0x41b00000 # 22.0f
sget-boolean v6, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v6, :cond_298
const/4 v6, 0x5
goto :goto_299
:cond_298
const/4 v6, 0x3
:goto_299
or-int/lit8 v14, v6, 0x30
sget-boolean v6, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v6, :cond_2a1
const/4 v15, 0x0
goto :goto_2a5
:cond_2a1
add-int/lit8 v6, p2, 0x25
int-to-float v6, v6
move v15, v6
:goto_2a5
const/high16 v16, 0x422e0000 # 43.5f
sget-boolean v6, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v6, :cond_2b1
add-int/lit8 v6, p2, 0x25
int-to-float v6, v6
move/from16 v17, v6
goto :goto_2b3
:cond_2b1
const/16 v17, 0x0
:goto_2b3
const/16 v18, 0x0
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v3, v6}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 146
:cond_2bc
:goto_2bc
if-eqz p4, :cond_2ff
.line 147
new-instance v3, Landroid/widget/TextView;
invoke-direct {v3, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
.line 148
invoke-virtual {v3, v5, v4}, Landroid/widget/TextView;->setTextSize(IF)V
.line 149
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
const-string/jumbo v4, "profile_creatorIcon"
invoke-static {v4}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V
.line 150
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
const/high16 v12, -0x40000000 # -2.0f
const/high16 v13, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_2e0
const/4 v6, 0x3
goto :goto_2e1
:cond_2e0
const/4 v6, 0x5
:goto_2e1
or-int/lit8 v14, v6, 0x30
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_2ea
const/high16 v15, 0x41b80000 # 23.0f
goto :goto_2eb
:cond_2ea
const/4 v15, 0x0
:goto_2eb
const/high16 v16, 0x41200000 # 10.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_2f4
const/16 v17, 0x0
goto :goto_2f6
:cond_2f4
const/high16 v17, 0x41b80000 # 23.0f
:goto_2f6
const/16 v18, 0x0
invoke-static/range {v12 .. v18}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v0, v3, v4}, Lim/tpelyyftgw/ui/cells/UserCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 153
:cond_2ff
invoke-virtual {v0, v5}, Lim/tpelyyftgw/ui/cells/UserCell;->setFocusable(Z)V
.line 154
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.line 75
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 65
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
.line 71
const/4 v0, 0x0
iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->miViewType:I
.line 76
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 5
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.param p3, "defStyleAttr" # I
.line 79
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 65
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
.line 71
const/4 v0, 0x0
iput v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->miViewType:I
.line 80
return-void
.end method
# virtual methods
.method public hasOverlappingRendering()Z
.registers 2
.line 504
const/4 v0, 0x0
return v0
.end method
.method public invalidate()V
.registers 2
.line 356
invoke-super {p0}, Landroid/widget/FrameLayout;->invalidate()V
.line 357
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
if-eqz v0, :cond_a
.line 358
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->invalidate()V
.line 360
:cond_a
return-void
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 10
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 509
iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->needDivider:Z
if-eqz v0, :cond_37
.line 510
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/UserCell;->getMeasuredHeight()I
move-result v0
add-int/lit8 v0, v0, -0x1
int-to-float v4, v0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/UserCell;->getMeasuredWidth()I
move-result v0
sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v2, :cond_27
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/UserCell;->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;
move-object v2, p1
invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
.line 512
:cond_37
return-void
.end method
.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.registers 5
.param p1, "info" # Landroid/view/accessibility/AccessibilityNodeInfo;
.line 516
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.line 517
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
const-string v1, "android.widget.CheckBox"
const/4 v2, 0x1
if-eqz v0, :cond_20
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->getVisibility()I
move-result v0
if-nez v0, :cond_20
.line 518
invoke-virtual {p1, v2}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V
.line 519
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->isChecked()Z
move-result v0
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V
.line 520
invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V
goto :goto_39
.line 521
:cond_20
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
if-eqz v0, :cond_39
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox;->getVisibility()I
move-result v0
if-nez v0, :cond_39
.line 522
invoke-virtual {p1, v2}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V
.line 523
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox;->isChecked()Z
move-result v0
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V
.line 524
invoke-virtual {p1, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V
.line 526
:cond_39
:goto_39
return-void
.end method
.method protected onMeasure(II)V
.registers 7
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 346
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
const/high16 v1, 0x40000000 # 2.0f
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
const/high16 v2, 0x42820000 # 65.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/UserCell;->needDivider:Z
add-int/2addr v2, v3
invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 347
return-void
.end method
.method public setAddButtonVisible(Z)V
.registers 4
.param p1, "value" # Z
.line 191
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->addButton:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 192
return-void
.line 194
:cond_5
if-eqz p1, :cond_9
const/4 v1, 0x0
goto :goto_b
:cond_9
const/16 v1, 0x8
:goto_b
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 195
return-void
.end method
.method public setAdminRole(Ljava/lang/String;)V
.registers 9
.param p1, "role" # Ljava/lang/String;
.line 198
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 199
return-void
.line 201
:cond_5
const/4 v1, 0x0
if-eqz p1, :cond_a
const/4 v2, 0x0
goto :goto_c
:cond_a
const/16 v2, 0x8
:goto_c
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V
.line 202
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 203
if-eqz p1, :cond_4e
.line 204
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
move-result-object v0
.line 205
.local v0, "text":Ljava/lang/CharSequence;
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
invoke-virtual {v2}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
move-result-object v2
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v3
invoke-virtual {v2, v0, v1, v3}, Landroid/text/TextPaint;->measureText(Ljava/lang/CharSequence;II)F
move-result v2
float-to-double v2, v2
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
move-result-wide v2
double-to-int v2, v2
.line 206
.local v2, "size":I
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v5, 0x40c00000 # 6.0f
if-eqz v4, :cond_3e
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
add-int/2addr v4, v2
goto :goto_3f
:cond_3e
const/4 v4, 0x0
:goto_3f
sget-boolean v6, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-nez v6, :cond_49
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
add-int/2addr v5, v2
goto :goto_4a
:cond_49
const/4 v5, 0x0
:goto_4a
invoke-virtual {v3, v4, v1, v5, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setPadding(IIII)V
.line 207
.end local v0 # "text":Ljava/lang/CharSequence;
.end local v2 # "size":I
goto :goto_53
.line 208
:cond_4e
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, v1, v1, v1, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setPadding(IIII)V
.line 210
:goto_53
return-void
.end method
.method public setAvatarPadding(I)V
.registers 7
.param p1, "padding" # I
.line 170
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 171
.local v0, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/4 v2, 0x0
if-eqz v1, :cond_f
const/4 v1, 0x0
goto :goto_12
:cond_f
add-int/lit8 v1, p1, 0x7
int-to-float v1, v1
:goto_12
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 172
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v1, :cond_20
add-int/lit8 v1, p1, 0x7
int-to-float v1, v1
goto :goto_21
:cond_20
const/4 v1, 0x0
:goto_21
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 173
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 175
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
move-object v0, v1
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 176
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/16 v3, 0x12
const/4 v4, 0x0
if-eqz v1, :cond_47
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
if-eqz v1, :cond_43
const/16 v1, 0x12
goto :goto_44
:cond_43
const/4 v1, 0x0
:goto_44
add-int/lit8 v1, v1, 0x1c
goto :goto_49
:cond_47
add-int/lit8 v1, p1, 0x40
:goto_49
int-to-float v1, v1
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 177
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v1, :cond_58
add-int/lit8 v1, p1, 0x40
int-to-float v1, v1
goto :goto_61
:cond_58
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
if-eqz v1, :cond_5d
goto :goto_5e
:cond_5d
const/4 v3, 0x0
:goto_5e
add-int/lit8 v3, v3, 0x1c
int-to-float v1, v3
:goto_61
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 179
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
move-object v0, v1
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 180
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v3, 0x41e00000 # 28.0f
if-eqz v1, :cond_79
const/high16 v1, 0x41e00000 # 28.0f
goto :goto_7c
:cond_79
add-int/lit8 v1, p1, 0x40
int-to-float v1, v1
:goto_7c
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 181
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v1, :cond_89
add-int/lit8 v1, p1, 0x40
int-to-float v3, v1
:cond_89
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 183
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
if-eqz v1, :cond_b6
.line 184
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v1
move-object v0, v1
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 185
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v1, :cond_a0
const/4 v1, 0x0
goto :goto_a3
:cond_a0
add-int/lit8 v1, p1, 0x25
int-to-float v1, v1
:goto_a3
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 186
sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v1, :cond_b0
add-int/lit8 v1, p1, 0x25
int-to-float v2, v1
:cond_b0
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 188
:cond_b6
return-void
.end method
.method public setCheckDisabled(Z)V
.registers 3
.param p1, "disabled" # Z
.line 339
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
if-eqz v0, :cond_7
.line 340
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->setDisabled(Z)V
.line 342
:cond_7
return-void
.end method
.method public setChecked(ZZ)V
.registers 5
.param p1, "checked" # Z
.param p2, "animated" # Z
.line 325
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
const/4 v1, 0x0
if-eqz v0, :cond_16
.line 326
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox;->getVisibility()I
move-result v0
if-eqz v0, :cond_10
.line 327
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBox;->setVisibility(I)V
.line 329
:cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox;
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/components/CheckBox;->setChecked(ZZ)V
goto :goto_2a
.line 330
:cond_16
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
if-eqz v0, :cond_2a
.line 331
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->getVisibility()I
move-result v0
if-eqz v0, :cond_25
.line 332
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->setVisibility(I)V
.line 334
:cond_25
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->checkBoxBig:Lim/tpelyyftgw/ui/components/CheckBoxSquare;
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/components/CheckBoxSquare;->setChecked(ZZ)V
.line 336
:cond_2a
:goto_2a
return-void
.end method
.method public setContainerBackground(I)V
.registers 3
.param p1, "res" # I
.line 162
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->clickView:Landroid/view/View;
invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundResource(I)V
.line 163
return-void
.end method
.method public setContainerBackground(Landroid/graphics/drawable/Drawable;)V
.registers 3
.param p1, "drawable" # Landroid/graphics/drawable/Drawable;
.line 158
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->clickView:Landroid/view/View;
invoke-virtual {v0, p1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 159
return-void
.end method
.method public setCurrentId(I)V
.registers 2
.param p1, "id" # I
.line 321
iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentId:I
.line 322
return-void
.end method
.method public setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.registers 10
.param p1, "object" # Lim/tpelyyftgw/tgnet/TLObject;
.param p2, "ec" # Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
.param p3, "name" # Ljava/lang/CharSequence;
.param p4, "status" # Ljava/lang/CharSequence;
.param p5, "resId" # I
.param p6, "divider" # Z
.line 223
if-nez p1, :cond_1f
if-nez p3, :cond_1f
if-nez p4, :cond_1f
.line 224
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentStatus:Ljava/lang/CharSequence;
.line 225
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentName:Ljava/lang/CharSequence;
.line 226
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
.line 227
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const-string v2, ""
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 228
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 229
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 230
return-void
.line 232
:cond_1f
iput-object p2, p0, Lim/tpelyyftgw/ui/cells/UserCell;->encryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
.line 233
iput-object p4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentStatus:Ljava/lang/CharSequence;
.line 234
iput-object p3, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentName:Ljava/lang/CharSequence;
.line 235
iput-object p1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
.line 236
iput p5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentDrawable:I
.line 237
iput-boolean p6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->needDivider:Z
.line 238
xor-int/lit8 v0, p6, 0x1
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/UserCell;->setWillNotDraw(Z)V
.line 239
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/UserCell;->update(I)V
.line 240
return-void
.end method
.method public setData(Lim/tpelyyftgw/tgnet/TLObject;Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)V
.registers 12
.param p1, "object" # Lim/tpelyyftgw/tgnet/TLObject;
.param p2, "name" # Ljava/lang/CharSequence;
.param p3, "status" # Ljava/lang/CharSequence;
.param p4, "resId" # I
.line 215
const/4 v2, 0x0
const/4 v6, 0x0
move-object v0, p0
move-object v1, p1
move-object v3, p2
move-object v4, p3
move v5, p4
invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 216
return-void
.end method
.method public setData(Lim/tpelyyftgw/tgnet/TLObject;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.registers 13
.param p1, "object" # Lim/tpelyyftgw/tgnet/TLObject;
.param p2, "name" # Ljava/lang/CharSequence;
.param p3, "status" # Ljava/lang/CharSequence;
.param p4, "resId" # I
.param p5, "divider" # Z
.line 219
const/4 v2, 0x0
move-object v0, p0
move-object v1, p1
move-object v3, p2
move-object v4, p3
move v5, p4
move v6, p5
invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 220
return-void
.end method
.method public setException(Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;Ljava/lang/CharSequence;Z)V
.registers 21
.param p1, "exception" # Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;
.param p2, "name" # Ljava/lang/CharSequence;
.param p3, "divider" # Z
.line 245
move-object/from16 v7, p0
move-object/from16 v8, p1
iget-boolean v9, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->hasCustom:Z
.line 246
.local v9, "custom":Z
iget v10, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->notify:I
.line 247
.local v10, "value":I
iget v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->muteUntil:I
.line 248
.local v0, "delta":I
const v1, 0x7f0f0a21
const-string v2, "NotificationsCustom"
const v3, 0x7f0f0a52
const-string v4, "NotificationsUnmuted"
const/4 v5, 0x1
const/4 v6, 0x3
if-ne v10, v6, :cond_9b
const v6, 0x7fffffff
if-eq v0, v6, :cond_9b
.line 249
iget v6, v7, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getCurrentTime()I
move-result v6
sub-int/2addr v0, v6
.line 250
if-gtz v0, :cond_3a
.line 251
if-eqz v9, :cond_33
.line 252
invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
move v11, v0
.local v1, "text":Ljava/lang/String;
goto/16 :goto_c4
.line 254
.end local v1 # "text":Ljava/lang/String;
:cond_33
invoke-static {v4, v3}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto/16 :goto_c4
.line 256
.end local v1 # "text":Ljava/lang/String;
:cond_3a
const/16 v1, 0xe10
const/4 v2, 0x0
const v3, 0x7f0f128f
const-string v4, "WillUnmuteIn"
if-ge v0, v1, :cond_57
.line 257
new-array v1, v5, [Ljava/lang/Object;
div-int/lit8 v5, v0, 0x3c
const-string v6, "Minutes"
invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v5
aput-object v5, v1, v2
invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto/16 :goto_c4
.line 258
.end local v1 # "text":Ljava/lang/String;
:cond_57
const v1, 0x15180
const/high16 v6, 0x42700000 # 60.0f
if-ge v0, v1, :cond_77
.line 259
new-array v1, v5, [Ljava/lang/Object;
int-to-float v5, v0
div-float/2addr v5, v6
div-float/2addr v5, v6
float-to-double v5, v5
invoke-static {v5, v6}, Ljava/lang/Math;->ceil(D)D
move-result-wide v5
double-to-int v5, v5
const-string v6, "Hours"
invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v5
aput-object v5, v1, v2
invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto :goto_c4
.line 260
.end local v1 # "text":Ljava/lang/String;
:cond_77
const v1, 0x1e13380
if-ge v0, v1, :cond_98
.line 261
new-array v1, v5, [Ljava/lang/Object;
int-to-float v5, v0
div-float/2addr v5, v6
div-float/2addr v5, v6
const/high16 v6, 0x41c00000 # 24.0f
div-float/2addr v5, v6
float-to-double v5, v5
invoke-static {v5, v6}, Ljava/lang/Math;->ceil(D)D
move-result-wide v5
double-to-int v5, v5
const-string v6, "Days"
invoke-static {v6, v5}, Lim/tpelyyftgw/messenger/LocaleController;->formatPluralString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v5
aput-object v5, v1, v2
invoke-static {v4, v3, v1}, Lim/tpelyyftgw/messenger/LocaleController;->formatString(Ljava/lang/String;I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto :goto_c4
.line 263
.end local v1 # "text":Ljava/lang/String;
:cond_98
const/4 v1, 0x0
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto :goto_c4
.line 266
.end local v1 # "text":Ljava/lang/String;
:cond_9b
if-nez v10, :cond_9f
.line 267
const/4 v5, 0x1
.local v5, "enabled":Z
goto :goto_a9
.line 268
.end local v5 # "enabled":Z
:cond_9f
if-ne v10, v5, :cond_a3
.line 269
const/4 v5, 0x1
.restart local v5 # "enabled":Z
goto :goto_a9
.line 270
.end local v5 # "enabled":Z
:cond_a3
const/4 v5, 0x2
if-ne v10, v5, :cond_a8
.line 271
const/4 v5, 0x0
.restart local v5 # "enabled":Z
goto :goto_a9
.line 273
.end local v5 # "enabled":Z
:cond_a8
const/4 v5, 0x0
.line 275
.restart local v5 # "enabled":Z
:goto_a9
if-eqz v5, :cond_b3
if-eqz v9, :cond_b3
.line 276
invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
move v11, v0
.restart local v1 # "text":Ljava/lang/String;
goto :goto_c4
.line 278
.end local v1 # "text":Ljava/lang/String;
:cond_b3
if-eqz v5, :cond_ba
invoke-static {v4, v3}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
goto :goto_c3
:cond_ba
const v1, 0x7f0f0a35
const-string v2, "NotificationsMuted"
invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
:goto_c3
move v11, v0
.line 281
.end local v0 # "delta":I
.end local v5 # "enabled":Z
.restart local v1 # "text":Ljava/lang/String;
.local v11, "delta":I
:goto_c4
if-nez v1, :cond_d1
.line 282
const v0, 0x7f0f0a37
const-string v2, "NotificationsOff"
invoke-static {v2, v0}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
move-object v12, v1
goto :goto_d2
.line 281
:cond_d1
move-object v12, v1
.line 285
.end local v1 # "text":Ljava/lang/String;
.local v12, "text":Ljava/lang/String;
:goto_d2
iget-wide v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->did:J
long-to-int v13, v0
.line 286
.local v13, "lower_id":I
iget-wide v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->did:J
const/16 v2, 0x20
shr-long/2addr v0, v2
long-to-int v14, v0
.line 287
.local v14, "high_id":I
if-eqz v13, :cond_11c
.line 288
if-lez v13, :cond_fd
.line 289
iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;
move-result-object v15
.line 290
.local v15, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v15, :cond_fc
.line 291
const/4 v2, 0x0
const/4 v5, 0x0
move-object/from16 v0, p0
move-object v1, v15
move-object/from16 v3, p2
move-object v4, v12
move/from16 v6, p3
invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 293
.end local v15 # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
:cond_fc
goto :goto_14b
.line 294
:cond_fd
iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
neg-int v1, v13
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/MessagesController;->getChat(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$Chat;
move-result-object v15
.line 295
.local v15, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
if-eqz v15, :cond_11b
.line 296
const/4 v2, 0x0
const/4 v5, 0x0
move-object/from16 v0, p0
move-object v1, v15
move-object/from16 v3, p2
move-object v4, v12
move/from16 v6, p3
invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 298
.end local v15 # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
:cond_11b
goto :goto_14b
.line 300
:cond_11c
iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/MessagesController;->getEncryptedChat(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
move-result-object v15
.line 301
.local v15, "encryptedChat":Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
if-eqz v15, :cond_14b
.line 302
iget v0, v7, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v0}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v0
iget v1, v15, Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;->user_id:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;
move-result-object v16
.line 303
.local v16, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v16, :cond_14b
.line 304
const/4 v5, 0x0
const/4 v6, 0x0
move-object/from16 v0, p0
move-object/from16 v1, v16
move-object v2, v15
move-object/from16 v3, p2
move-object v4, v12
invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/UserCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 308
.end local v15 # "encryptedChat":Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
.end local v16 # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
:cond_14b
:goto_14b
return-void
.end method
.method public setMiViewType(I)V
.registers 2
.param p1, "miViewType" # I
.line 166
iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->miViewType:I
.line 167
return-void
.end method
.method public setNameTextAttr(IILandroid/graphics/Typeface;)V
.registers 5
.param p1, "size" # I
.param p2, "color" # I
.param p3, "typeface" # Landroid/graphics/Typeface;
.line 315
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V
.line 316
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, p2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 317
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, p3}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 318
return-void
.end method
.method public setNameTypeface(Landroid/graphics/Typeface;)V
.registers 3
.param p1, "typeface" # Landroid/graphics/Typeface;
.line 311
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 312
return-void
.end method
.method public setStatusColors(II)V
.registers 3
.param p1, "color" # I
.param p2, "onlineColor" # I
.line 350
iput p1, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusColor:I
.line 351
iput p2, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusOnlineColor:I
.line 352
return-void
.end method
.method public update(I)V
.registers 12
.param p1, "mask" # I
.line 363
const/4 v0, 0x0
.line 364
.local v0, "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
const/4 v1, 0x0
.line 365
.local v1, "newName":Ljava/lang/String;
const/4 v2, 0x0
.line 366
.local v2, "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
const/4 v3, 0x0
.line 367
.local v3, "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v5, :cond_16
.line 368
move-object v2, v4
check-cast v2, Lim/tpelyyftgw/tgnet/TLRPC$User;
.line 369
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;
if-eqz v4, :cond_25
.line 370
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;
iget-object v0, v4, Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;->photo_small:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
goto :goto_25
.line 384
:cond_16
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$Chat;
if-eqz v5, :cond_25
.line 385
move-object v3, v4
check-cast v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;
.line 386
iget-object v4, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;
if-eqz v4, :cond_25
.line 387
iget-object v4, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;
iget-object v0, v4, Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;->photo_small:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
.line 391
:cond_25
:goto_25
if-eqz p1, :cond_88
.line 392
const/4 v4, 0x0
.line 393
.local v4, "continueUpdate":Z
and-int/lit8 v5, p1, 0x2
if-eqz v5, :cond_4f
.line 394
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
if-eqz v5, :cond_32
if-eqz v0, :cond_4e
:cond_32
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
if-nez v5, :cond_38
if-nez v0, :cond_4e
:cond_38
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
if-eqz v5, :cond_4f
if-eqz v0, :cond_4f
iget-wide v5, v5, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->volume_id:J
iget-wide v7, v0, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->volume_id:J
cmp-long v9, v5, v7
if-nez v9, :cond_4e
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
iget v5, v5, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->local_id:I
iget v6, v0, Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;->local_id:I
if-eq v5, v6, :cond_4f
.line 395
:cond_4e
const/4 v4, 0x1
.line 398
:cond_4f
if-eqz v2, :cond_65
if-nez v4, :cond_65
and-int/lit8 v5, p1, 0x4
if-eqz v5, :cond_65
.line 399
const/4 v5, 0x0
.line 400
.local v5, "newStatus":I
iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v6, :cond_60
.line 401
iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
iget v5, v6, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I
.line 403
:cond_60
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastStatus:I
if-eq v5, v6, :cond_65
.line 404
const/4 v4, 0x1
.line 407
.end local v5 # "newStatus":I
:cond_65
if-nez v4, :cond_85
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentName:Ljava/lang/CharSequence;
if-nez v5, :cond_85
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
if-eqz v5, :cond_85
and-int/lit8 v5, p1, 0x1
if-eqz v5, :cond_85
.line 408
if-eqz v2, :cond_7a
.line 409
invoke-static {v2}, Lim/tpelyyftgw/messenger/UserObject;->getName(Lim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;
move-result-object v1
goto :goto_7c
.line 411
:cond_7a
iget-object v1, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;
.line 413
:goto_7c
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-nez v5, :cond_85
.line 414
const/4 v4, 0x1
.line 417
:cond_85
if-nez v4, :cond_88
.line 418
return-void
.line 422
.end local v4 # "continueUpdate":Z
:cond_88
const/4 v4, 0x0
const/4 v5, 0x0
if-eqz v2, :cond_9f
.line 423
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v6, v2}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V
.line 424
iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v6, :cond_9c
.line 425
iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
iget v6, v6, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I
iput v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastStatus:I
goto :goto_c0
.line 427
:cond_9c
iput v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastStatus:I
goto :goto_c0
.line 429
:cond_9f
if-eqz v3, :cond_a7
.line 430
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v6, v3}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V
goto :goto_c0
.line 431
:cond_a7
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentName:Ljava/lang/CharSequence;
if-eqz v6, :cond_b7
.line 432
iget-object v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget v8, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentId:I
invoke-interface {v6}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v6
invoke-virtual {v7, v8, v6, v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(ILjava/lang/String;Ljava/lang/String;)V
goto :goto_c0
.line 434
:cond_b7
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentId:I
const-string v8, "#"
invoke-virtual {v6, v7, v8, v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(ILjava/lang/String;Ljava/lang/String;)V
.line 437
:goto_c0
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentName:Ljava/lang/CharSequence;
if-eqz v6, :cond_cc
.line 438
iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
.line 439
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto :goto_ef
.line 441
:cond_cc
if-eqz v2, :cond_d9
.line 448
if-nez v1, :cond_d5
invoke-static {v2}, Lim/tpelyyftgw/messenger/UserObject;->getName(Lim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;
move-result-object v4
goto :goto_d6
:cond_d5
move-object v4, v1
:goto_d6
iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
goto :goto_e8
.line 449
:cond_d9
if-eqz v3, :cond_e4
.line 450
if-nez v1, :cond_e0
iget-object v4, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;
goto :goto_e1
:cond_e0
move-object v4, v1
:goto_e1
iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
goto :goto_e8
.line 452
:cond_e4
const-string v4, ""
iput-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
.line 454
:goto_e8
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastName:Ljava/lang/String;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 456
:goto_ef
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentStatus:Ljava/lang/CharSequence;
if-eqz v4, :cond_103
.line 457
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 458
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentStatus:Ljava/lang/CharSequence;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto/16 :goto_1cf
.line 459
:cond_103
if-eqz v2, :cond_1cf
.line 460
iget-boolean v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z
if-eqz v4, :cond_13f
.line 461
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 462
iget-boolean v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot_chat_history:Z
if-nez v4, :cond_12f
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->adminTextView:Landroid/widget/TextView;
if-eqz v4, :cond_11f
invoke-virtual {v4}, Landroid/widget/TextView;->getVisibility()I
move-result v4
if-nez v4, :cond_11f
goto :goto_12f
.line 465
:cond_11f
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const v6, 0x7f0f0289
const-string v7, "BotStatusCantRead"
invoke-static {v7, v6}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto/16 :goto_1cf
.line 463
:cond_12f
:goto_12f
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const v6, 0x7f0f028a
const-string v7, "BotStatusRead"
invoke-static {v7, v6}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto/16 :goto_1cf
.line 468
:cond_13f
iget v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getInstance(I)Lim/tpelyyftgw/messenger/UserConfig;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/messenger/UserConfig;->getClientUserId()I
move-result v6
if-eq v4, v6, :cond_1ba
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v4, :cond_161
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
iget v4, v4, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v6
invoke-virtual {v6}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getCurrentTime()I
move-result v6
if-gt v4, v6, :cond_1ba
:cond_161
iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v4}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v4
iget-object v4, v4, Lim/tpelyyftgw/messenger/MessagesController;->onlinePrivacy:Ljava/util/concurrent/ConcurrentHashMap;
iget v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
invoke-virtual {v4, v6}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_176
goto :goto_1ba
.line 472
:cond_176
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 473
iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->miViewType:I
if-nez v4, :cond_18d
.line 474
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v6, v2}, Lim/tpelyyftgw/messenger/LocaleController;->formatUserStatus(ILim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto :goto_1cf
.line 476
:cond_18d
const/4 v4, 0x1
new-array v4, v4, [Z
aput-boolean v5, v4, v5
.line 477
.local v4, "booleans":[Z
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentAccount:I
invoke-static {v7, v2, v4}, Lim/tpelyyftgw/messenger/LocaleController;->formatUserStatusNew(ILim/tpelyyftgw/tgnet/TLRPC$User;[Z)Ljava/lang/String;
move-result-object v7
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 478
aget-boolean v6, v4, v5
if-eqz v6, :cond_1ad
.line 479
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const-string v7, "#42B71E"
invoke-static {v7}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
move-result v7
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
goto :goto_1cf
.line 481
:cond_1ad
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const-string/jumbo v7, "windowBackgroundWhiteGrayText2"
invoke-static {v7}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v7
invoke-virtual {v6, v7}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
goto :goto_1cf
.line 469
.end local v4 # "booleans":[Z
:cond_1ba
:goto_1ba
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusOnlineColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 470
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const v6, 0x7f0f0a62
const-string v7, "Online"
invoke-static {v7, v6}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 487
:cond_1cf
:goto_1cf
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
invoke-virtual {v4}, Landroid/widget/ImageView;->getVisibility()I
move-result v4
const/16 v6, 0x8
if-nez v4, :cond_1dd
iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentDrawable:I
if-eqz v4, :cond_1e9
:cond_1dd
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
invoke-virtual {v4}, Landroid/widget/ImageView;->getVisibility()I
move-result v4
if-ne v4, v6, :cond_1fb
iget v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentDrawable:I
if-eqz v4, :cond_1fb
.line 488
:cond_1e9
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
iget v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentDrawable:I
if-nez v7, :cond_1f0
goto :goto_1f1
:cond_1f0
const/4 v6, 0x0
:goto_1f1
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setVisibility(I)V
.line 489
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->imageView:Landroid/widget/ImageView;
iget v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->currentDrawable:I
invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V
.line 492
:cond_1fb
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/UserCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
.line 493
const-string v4, "50_50"
if-eqz v2, :cond_20d
.line 494
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-static {v2, v5}, Lim/tpelyyftgw/messenger/ImageLocation;->getForUser(Lim/tpelyyftgw/tgnet/TLRPC$User;Z)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v5
iget-object v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v6, v5, v4, v7, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_222
.line 495
:cond_20d
if-eqz v3, :cond_21b
.line 496
iget-object v6, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-static {v3, v5}, Lim/tpelyyftgw/messenger/ImageLocation;->getForChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;Z)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v5
iget-object v7, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v6, v5, v4, v7, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_222
.line 498
:cond_21b
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/UserCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 500
:goto_222
return-void
.end method