UserBoxCell.smali
.class public Lim/tpelyyftgw/ui/hcells/UserBoxCell;
.super Landroid/widget/FrameLayout;
.source "UserBoxCell.java"
# instance fields
.field private avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.field private avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.field private checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.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 lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
.field private lastName:Ljava/lang/String;
.field private lastStatus:I
.field private nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.field private needDivider:Z
.field private shadow:Landroid/widget/FrameLayout;
.field private shadowIsVisible: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 66
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/hcells/UserBoxCell;-><init>(Landroid/content/Context;IIZZ)V
.line 67
return-void
.end method
.method public constructor <init>(Landroid/content/Context;IIZZ)V
.registers 22
.param p1, "context" # Landroid/content/Context;
.param p2, "padding" # I
.param p3, "checkbox" # I
.param p4, "admin" # Z
.param p5, "needAddButton" # Z
.line 70
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 56
sget v3, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v3, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentAccount:I
.line 73
const/4 v3, 0x0
.line 75
.local v3, "additionalPadding":I
const-string v4, "windowBackgroundWhiteGrayText"
invoke-static {v4}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
iput v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusColor:I
.line 76
const-string v4, "windowBackgroundWhiteBlueText"
invoke-static {v4}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v4
iput v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusOnlineColor:I
.line 78
new-instance v4, Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-direct {v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;-><init>()V
iput-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.line 80
new-instance v4, Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-direct {v4, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.line 81
const/high16 v5, 0x41c00000 # 24.0f
invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setRoundRadius(I)V
.line 82
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/4 v6, 0x5
const/4 v7, 0x3
if-eqz v5, :cond_3f
const/4 v5, 0x5
goto :goto_40
:cond_3f
const/4 v5, 0x3
:goto_40
or-int/lit8 v10, v5, 0x30
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/4 v8, 0x0
if-eqz v5, :cond_49
const/4 v11, 0x0
goto :goto_4d
:cond_49
add-int/lit8 v5, p2, 0x7
int-to-float v5, v5
move v11, v5
:goto_4d
const/high16 v12, 0x41000000 # 8.0f
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_58
add-int/lit8 v5, p2, 0x7
int-to-float v5, v5
move v13, v5
goto :goto_59
:cond_58
const/4 v13, 0x0
:goto_59
const/high16 v14, 0x41200000 # 10.0f
const/high16 v8, 0x42400000 # 48.0f
const/high16 v9, 0x42400000 # 48.0f
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v0, v4, v5}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 84
new-instance v4, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-direct {v4, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.line 85
const-string v5, "windowBackgroundWhiteBlackText"
invoke-static {v5}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v5
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 86
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/16 v5, 0x10
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V
.line 87
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_85
const/4 v5, 0x5
goto :goto_86
:cond_85
const/4 v5, 0x3
:goto_86
or-int/lit8 v5, v5, 0x30
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V
.line 88
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/high16 v8, -0x40800000 # -1.0f
const/high16 v9, 0x41a00000 # 20.0f
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_97
const/4 v5, 0x5
goto :goto_98
:cond_97
const/4 v5, 0x3
:goto_98
or-int/lit8 v10, v5, 0x30
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/16 v11, 0x12
const/4 v12, 0x0
const/4 v13, 0x2
if-eqz v5, :cond_ac
if-ne v2, v13, :cond_a7
const/16 v5, 0x12
goto :goto_a8
:cond_a7
const/4 v5, 0x0
:goto_a8
add-int/lit8 v5, v5, 0x1c
add-int/2addr v5, v3
goto :goto_ae
:cond_ac
add-int/lit8 v5, p2, 0x40
:goto_ae
int-to-float v5, v5
const/high16 v14, 0x41580000 # 13.5f
sget-boolean v15, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v15, :cond_ba
add-int/lit8 v11, p2, 0x40
:goto_b7
int-to-float v11, v11
move v13, v11
goto :goto_c2
:cond_ba
if-ne v2, v13, :cond_bd
goto :goto_be
:cond_bd
const/4 v11, 0x0
:goto_be
add-int/lit8 v11, v11, 0x1c
add-int/2addr v11, v3
goto :goto_b7
:goto_c2
const/4 v15, 0x0
move v11, v5
move v12, v14
move v14, v15
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v0, v4, v5}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 90
new-instance v4, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-direct {v4, v1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;-><init>(Landroid/content/Context;)V
iput-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
.line 91
const/16 v5, 0xd
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextSize(I)V
.line 92
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_e1
const/4 v5, 0x5
goto :goto_e2
:cond_e1
const/4 v5, 0x3
:goto_e2
or-int/lit8 v5, v5, 0x30
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setGravity(I)V
.line 93
iget-object v4, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const/high16 v8, -0x40800000 # -1.0f
const/high16 v9, 0x41a00000 # 20.0f
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_f2
goto :goto_f3
:cond_f2
const/4 v6, 0x3
:goto_f3
or-int/lit8 v10, v6, 0x30
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_fc
add-int/lit8 v5, v3, 0x1c
goto :goto_fe
:cond_fc
add-int/lit8 v5, p2, 0x40
:goto_fe
int-to-float v5, v5
move v11, v5
const/high16 v12, 0x420e0000 # 35.5f
sget-boolean v5, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v5, :cond_109
add-int/lit8 v5, p2, 0x40
goto :goto_10b
:cond_109
add-int/lit8 v5, v3, 0x1c
:goto_10b
int-to-float v5, v5
move v13, v5
const/4 v14, 0x0
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v5
invoke-virtual {v0, v4, v5}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 96
const/4 v4, 0x1
if-ne v2, v4, :cond_132
.line 97
new-instance v5, Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-direct {v5, v1}, Lim/tpelyyftgw/ui/components/CheckBox2;-><init>(Landroid/content/Context;)V
iput-object v5, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.line 98
const/high16 v6, 0x41c00000 # 24.0f
const/high16 v7, 0x41c00000 # 24.0f
const/16 v8, 0x33
const/high16 v9, 0x41800000 # 16.0f
const/high16 v10, 0x41900000 # 18.0f
const/4 v11, 0x0
const/4 v12, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v5, v6}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 101
:cond_132
new-instance v5, Landroid/widget/FrameLayout;
invoke-direct {v5, v1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
iput-object v5, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadow:Landroid/widget/FrameLayout;
.line 102
const v6, -0x7f000001
invoke-virtual {v5, v6}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V
.line 103
iget-object v5, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadow:Landroid/widget/FrameLayout;
const/16 v6, 0x8
invoke-virtual {v5, v6}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 104
iget-object v5, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadow:Landroid/widget/FrameLayout;
invoke-virtual {v5, v4}, Landroid/widget/FrameLayout;->setClickable(Z)V
.line 105
iget-object v5, v0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadow:Landroid/widget/FrameLayout;
const/4 v6, -0x1
const/high16 v7, -0x40800000 # -1.0f
invoke-static {v6, v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(IF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v6
invoke-virtual {v0, v5, v6}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 107
invoke-virtual {v0, v4}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->setFocusable(Z)V
.line 108
return-void
.end method
# virtual methods
.method public hasOverlappingRendering()Z
.registers 2
.line 380
const/4 v0, 0x0
return v0
.end method
.method public invalidate()V
.registers 1
.line 257
invoke-super {p0}, Landroid/widget/FrameLayout;->invalidate()V
.line 259
return-void
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 10
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 385
iget-boolean v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->needDivider:Z
if-eqz v0, :cond_37
.line 386
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/hcells/UserBoxCell;->getMeasuredHeight()I
move-result v0
add-int/lit8 v0, v0, -0x1
int-to-float v4, v0
invoke-virtual {p0}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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 388
:cond_37
return-void
.end method
.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.registers 3
.param p1, "info" # Landroid/view/accessibility/AccessibilityNodeInfo;
.line 392
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
.line 393
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
if-eqz v0, :cond_1f
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getVisibility()I
move-result v0
if-nez v0, :cond_1f
.line 394
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V
.line 395
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->isChecked()Z
move-result v0
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V
.line 396
const-string v0, "android.widget.CheckBox"
invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V
.line 398
:cond_1f
return-void
.end method
.method protected onMeasure(II)V
.registers 7
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 247
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, 0x42840000 # 66.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
iget-boolean v3, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 248
return-void
.end method
.method public setAvatarPadding(I)V
.registers 5
.param p1, "padding" # I
.line 111
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 112
.local v0, "layoutParams":Landroid/widget/FrameLayout$LayoutParams;
add-int/lit8 v1, p1, 0x7
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 113
const/4 v1, 0x0
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 114
iget-object v1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 116
iget-object v1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 117
add-int/lit8 v1, p1, 0x40
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 118
const/high16 v1, 0x41e00000 # 28.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 120
iget-object v2, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v2
move-object v0, v2
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
.line 121
add-int/lit8 v2, p1, 0x40
int-to-float v2, v2
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
iput v2, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I
.line 122
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->rightMargin:I
.line 124
return-void
.end method
.method public setChecked(ZZ)V
.registers 5
.param p1, "checked" # Z
.param p2, "animated" # Z
.line 231
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
if-eqz v0, :cond_15
.line 232
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getVisibility()I
move-result v0
if-eqz v0, :cond_10
.line 233
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->setVisibility(I)V
.line 235
:cond_10
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setChecked(ZZ)V
.line 238
:cond_15
return-void
.end method
.method public setCurrentId(I)V
.registers 2
.param p1, "id" # I
.line 227
iput p1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentId:I
.line 228
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 135
if-nez p1, :cond_1f
if-nez p3, :cond_1f
if-nez p4, :cond_1f
.line 136
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentStatus:Ljava/lang/CharSequence;
.line 137
iput-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentName:Ljava/lang/CharSequence;
.line 138
iput-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
.line 139
iget-object v1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
const-string v2, ""
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 140
iget-object v1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 141
iget-object v1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 142
return-void
.line 144
:cond_1f
iput-object p2, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->encryptedChat:Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
.line 145
iput-object p4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentStatus:Ljava/lang/CharSequence;
.line 146
iput-object p3, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentName:Ljava/lang/CharSequence;
.line 147
iput-object p1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
.line 148
iput p5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentDrawable:I
.line 149
iput-boolean p6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->needDivider:Z
.line 150
xor-int/lit8 v0, p6, 0x1
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->setWillNotDraw(Z)V
.line 151
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->update(I)V
.line 152
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 127
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/hcells/UserBoxCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 128
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 131
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/hcells/UserBoxCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 132
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 157
move-object/from16 v7, p0
move-object/from16 v8, p1
iget-boolean v9, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->hasCustom:Z
.line 158
.local v9, "custom":Z
iget v10, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->notify:I
.line 159
.local v10, "value":I
iget v0, v8, Lim/tpelyyftgw/ui/NotificationsSettingsActivity$NotificationException;->muteUntil:I
.line 160
.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 161
iget v6, v7, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 162
if-gtz v0, :cond_3a
.line 163
if-eqz v9, :cond_33
.line 164
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 166
.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 168
.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 169
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 170
.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 171
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 172
.end local v1 # "text":Ljava/lang/String;
:cond_77
const v1, 0x1e13380
if-ge v0, v1, :cond_98
.line 173
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 175
.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 178
.end local v1 # "text":Ljava/lang/String;
:cond_9b
if-nez v10, :cond_9f
.line 179
const/4 v5, 0x1
.local v5, "enabled":Z
goto :goto_a9
.line 180
.end local v5 # "enabled":Z
:cond_9f
if-ne v10, v5, :cond_a3
.line 181
const/4 v5, 0x1
.restart local v5 # "enabled":Z
goto :goto_a9
.line 182
.end local v5 # "enabled":Z
:cond_a3
const/4 v5, 0x2
if-ne v10, v5, :cond_a8
.line 183
const/4 v5, 0x0
.restart local v5 # "enabled":Z
goto :goto_a9
.line 185
.end local v5 # "enabled":Z
:cond_a8
const/4 v5, 0x0
.line 187
.restart local v5 # "enabled":Z
:goto_a9
if-eqz v5, :cond_b3
if-eqz v9, :cond_b3
.line 188
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 190
.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 193
.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 194
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 193
:cond_d1
move-object v12, v1
.line 197
.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 198
.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 199
.local v14, "high_id":I
if-eqz v13, :cond_11c
.line 200
if-lez v13, :cond_fd
.line 201
iget v0, v7, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 202
.local v15, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v15, :cond_fc
.line 203
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/hcells/UserBoxCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 205
.end local v15 # "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
:cond_fc
goto :goto_14b
.line 206
:cond_fd
iget v0, v7, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 207
.local v15, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
if-eqz v15, :cond_11b
.line 208
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/hcells/UserBoxCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 210
.end local v15 # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
:cond_11b
goto :goto_14b
.line 212
:cond_11c
iget v0, v7, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 213
.local v15, "encryptedChat":Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;
if-eqz v15, :cond_14b
.line 214
iget v0, v7, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 215
.local v16, "user":Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v16, :cond_14b
.line 216
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/hcells/UserBoxCell;->setData(Lim/tpelyyftgw/tgnet/TLObject;Lim/tpelyyftgw/tgnet/TLRPC$EncryptedChat;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IZ)V
.line 220
.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 setNameTypeface(Landroid/graphics/Typeface;)V
.registers 3
.param p1, "typeface" # Landroid/graphics/Typeface;
.line 223
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 224
return-void
.end method
.method public setShadow(Z)V
.registers 4
.param p1, "isVisible" # Z
.line 241
iput-boolean p1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadowIsVisible:Z
.line 242
iget-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->shadow:Landroid/widget/FrameLayout;
if-eqz p1, :cond_8
const/4 v1, 0x0
goto :goto_a
:cond_8
const/16 v1, 0x8
:goto_a
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
.line 243
return-void
.end method
.method public setStatusColors(II)V
.registers 3
.param p1, "color" # I
.param p2, "onlineColor" # I
.line 251
iput p1, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusColor:I
.line 252
iput p2, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusOnlineColor:I
.line 253
return-void
.end method
.method public update(I)V
.registers 12
.param p1, "mask" # I
.line 262
const/4 v0, 0x0
.line 263
.local v0, "photo":Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
const/4 v1, 0x0
.line 264
.local v1, "newName":Ljava/lang/String;
const/4 v2, 0x0
.line 265
.local v2, "currentUser":Lim/tpelyyftgw/tgnet/TLRPC$User;
const/4 v3, 0x0
.line 266
.local v3, "currentChat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentObject:Lim/tpelyyftgw/tgnet/TLObject;
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v5, :cond_16
.line 267
move-object v2, v4
check-cast v2, Lim/tpelyyftgw/tgnet/TLRPC$User;
.line 268
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->photo:Lim/tpelyyftgw/tgnet/TLRPC$UserProfilePhoto;
if-eqz v4, :cond_25
.line 269
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 283
:cond_16
instance-of v5, v4, Lim/tpelyyftgw/tgnet/TLRPC$Chat;
if-eqz v5, :cond_25
.line 284
move-object v3, v4
check-cast v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;
.line 285
iget-object v4, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->photo:Lim/tpelyyftgw/tgnet/TLRPC$ChatPhoto;
if-eqz v4, :cond_25
.line 286
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 290
:cond_25
:goto_25
if-eqz p1, :cond_88
.line 291
const/4 v4, 0x0
.line 292
.local v4, "continueUpdate":Z
and-int/lit8 v5, p1, 0x2
if-eqz v5, :cond_4f
.line 293
iget-object v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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 294
:cond_4e
const/4 v4, 0x1
.line 297
:cond_4f
if-eqz v2, :cond_65
if-nez v4, :cond_65
and-int/lit8 v5, p1, 0x4
if-eqz v5, :cond_65
.line 298
const/4 v5, 0x0
.line 299
.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 300
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 302
:cond_60
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastStatus:I
if-eq v5, v6, :cond_65
.line 303
const/4 v4, 0x1
.line 306
.end local v5 # "newStatus":I
:cond_65
if-nez v4, :cond_85
iget-object v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentName:Ljava/lang/CharSequence;
if-nez v5, :cond_85
iget-object v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastName:Ljava/lang/String;
if-eqz v5, :cond_85
and-int/lit8 v5, p1, 0x1
if-eqz v5, :cond_85
.line 307
if-eqz v2, :cond_7a
.line 308
invoke-static {v2}, Lim/tpelyyftgw/messenger/UserObject;->getName(Lim/tpelyyftgw/tgnet/TLRPC$User;)Ljava/lang/String;
move-result-object v1
goto :goto_7c
.line 310
:cond_7a
iget-object v1, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;
.line 312
:goto_7c
iget-object v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 313
const/4 v4, 0x1
.line 316
:cond_85
if-nez v4, :cond_88
.line 317
return-void
.line 321
.end local v4 # "continueUpdate":Z
:cond_88
const/4 v4, 0x0
const/4 v5, 0x0
if-eqz v2, :cond_9f
.line 322
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v6, v2}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V
.line 323
iget-object v6, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v6, :cond_9c
.line 324
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/hcells/UserBoxCell;->lastStatus:I
goto :goto_c0
.line 326
:cond_9c
iput v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastStatus:I
goto :goto_c0
.line 328
:cond_9f
if-eqz v3, :cond_a7
.line 329
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 330
:cond_a7
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentName:Ljava/lang/CharSequence;
if-eqz v6, :cond_b7
.line 331
iget-object v7, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget v8, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 333
:cond_b7
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget v7, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 336
:goto_c0
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentName:Ljava/lang/CharSequence;
if-eqz v6, :cond_cc
.line 337
iput-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastName:Ljava/lang/String;
.line 338
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto :goto_ef
.line 340
:cond_cc
if-eqz v2, :cond_d9
.line 341
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/hcells/UserBoxCell;->lastName:Ljava/lang/String;
goto :goto_e8
.line 342
:cond_d9
if-eqz v3, :cond_e4
.line 343
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/hcells/UserBoxCell;->lastName:Ljava/lang/String;
goto :goto_e8
.line 345
:cond_e4
const-string v4, ""
iput-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastName:Ljava/lang/String;
.line 347
:goto_e8
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->nameTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastName:Ljava/lang/String;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
.line 349
:goto_ef
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentStatus:Ljava/lang/CharSequence;
if-eqz v4, :cond_103
.line 350
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 351
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->currentStatus:Ljava/lang/CharSequence;
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setText(Ljava/lang/CharSequence;)Z
goto/16 :goto_17e
.line 352
:cond_103
if-eqz v2, :cond_17e
.line 353
iget-boolean v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z
if-eqz v4, :cond_11f
.line 354
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 355
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 :goto_17e
.line 357
:cond_11f
iget v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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_169
iget-object v4, v2, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v4, :cond_141
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/hcells/UserBoxCell;->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_169
:cond_141
iget v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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_156
goto :goto_169
.line 361
:cond_156
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 362
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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_17e
.line 358
:cond_169
:goto_169
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusTextView:Lim/tpelyyftgw/ui/actionbar/SimpleTextView;
iget v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->statusOnlineColor:I
invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/actionbar/SimpleTextView;->setTextColor(I)V
.line 359
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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 368
:cond_17e
:goto_17e
iput-object v0, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->lastAvatar:Lim/tpelyyftgw/tgnet/TLRPC$FileLocation;
.line 369
const-string v4, "50_50"
if-eqz v2, :cond_190
.line 370
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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_1a5
.line 371
:cond_190
if-eqz v3, :cond_19e
.line 372
iget-object v6, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->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/hcells/UserBoxCell;->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_1a5
.line 374
:cond_19e
iget-object v4, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarImageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v5, p0, Lim/tpelyyftgw/ui/hcells/UserBoxCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v4, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 376
:goto_1a5
return-void
.end method