ShareDialogCell.smali
.class public Lim/tpelyyftgw/ui/cells/ShareDialogCell;
.super Landroid/widget/FrameLayout;
.source "ShareDialogCell.java"
# instance fields
.field private avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.field private checkBgRectF:Landroid/graphics/RectF;
.field private checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.field private currentAccount:I
.field private imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.field private lastUpdateTime:J
.field private nameTextView:Landroid/widget/TextView;
.field private onlineProgress:F
.field private user:Lim/tpelyyftgw/tgnet/TLRPC$User;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 11
.param p1, "context" # Landroid/content/Context;
.line 46
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 35
new-instance v0, Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-direct {v0}, Lim/tpelyyftgw/ui/components/AvatarDrawable;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
.line 43
sget v0, Lim/tpelyyftgw/messenger/UserConfig;->selectedAccount:I
iput v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->currentAccount:I
.line 48
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->setWillNotDraw(Z)V
.line 50
new-instance v1, Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-direct {v1, p1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.line 51
const/high16 v2, 0x40f00000 # 7.5f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setRoundRadius(I)V
.line 52
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
const/high16 v2, 0x42600000 # 56.0f
const/high16 v3, 0x42600000 # 56.0f
const/16 v4, 0x31
const/4 v5, 0x0
const/high16 v6, 0x40e00000 # 7.0f
const/4 v7, 0x0
const/4 v8, 0x0
invoke-static/range {v2 .. v8}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v2
invoke-virtual {p0, v1, v2}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 54
new-instance v1, Landroid/widget/TextView;
invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
.line 55
const-string v2, "dialogTextBlack"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
.line 56
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
const/4 v2, 0x1
const/high16 v3, 0x41400000 # 12.0f
invoke-virtual {v1, v2, v3}, Landroid/widget/TextView;->setTextSize(IF)V
.line 57
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
const/4 v2, 0x2
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setMaxLines(I)V
.line 58
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
const/16 v3, 0x31
invoke-virtual {v1, v3}, Landroid/widget/TextView;->setGravity(I)V
.line 59
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLines(I)V
.line 60
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 61
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
const/high16 v2, -0x40800000 # -1.0f
const/high16 v3, -0x40000000 # -2.0f
const/16 v4, 0x33
const/high16 v5, 0x40c00000 # 6.0f
const/high16 v6, 0x42840000 # 66.0f
const/high16 v7, 0x40c00000 # 6.0f
invoke-static/range {v2 .. v8}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v2
invoke-virtual {p0, v1, v2}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 63
new-instance v1, Lim/tpelyyftgw/ui/components/CheckBox2;
const/16 v2, 0x15
invoke-direct {v1, p1, v2}, Lim/tpelyyftgw/ui/components/CheckBox2;-><init>(Landroid/content/Context;I)V
iput-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
.line 64
const-string v2, "dialogRoundCheckBox"
const-string v3, "dialogBackground"
const-string v4, "dialogRoundCheckBoxCheck"
invoke-virtual {v1, v2, v3, v4}, Lim/tpelyyftgw/ui/components/CheckBox2;->setColor(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 65
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v1, v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawUnchecked(Z)V
.line 66
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/4 v1, 0x4
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->setDrawBackgroundAsArc(I)V
.line 67
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
new-instance v1, Lim/tpelyyftgw/ui/cells/-$$Lambda$ShareDialogCell$QidQQgAIAlTEZTyeQXGsaBr5FYc;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/cells/-$$Lambda$ShareDialogCell$QidQQgAIAlTEZTyeQXGsaBr5FYc;-><init>(Lim/tpelyyftgw/ui/cells/ShareDialogCell;)V
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->setProgressDelegate(Lim/tpelyyftgw/ui/components/CheckBoxBase$ProgressDelegate;)V
.line 72
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
const/high16 v1, 0x41c00000 # 24.0f
const/high16 v2, 0x41c00000 # 24.0f
const/16 v3, 0x31
const/high16 v4, 0x41980000 # 19.0f
const/high16 v5, 0x42280000 # 42.0f
const/4 v6, 0x0
const/4 v7, 0x0
invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 74
new-instance v0, Landroid/graphics/RectF;
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBgRectF:Landroid/graphics/RectF;
.line 75
return-void
.end method
# virtual methods
.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
.registers 21
.param p1, "canvas" # Landroid/graphics/Canvas;
.param p2, "child" # Landroid/view/View;
.param p3, "drawingTime" # J
.line 122
move-object/from16 v0, p0
move-object/from16 v1, p1
invoke-super/range {p0 .. p4}, Landroid/widget/FrameLayout;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
move-result v2
.line 123
.local v2, "result":Z
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
move-object/from16 v4, p2
if-ne v4, v3, :cond_fc
.line 124
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v3, :cond_fc
invoke-static {v3}, Lim/tpelyyftgw/messenger/MessagesController;->isSupportUser(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z
move-result v3
if-nez v3, :cond_fc
.line 125
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v5
.line 126
.local v5, "newTime":J
iget-wide v7, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->lastUpdateTime:J
sub-long v7, v5, v7
.line 127
.local v7, "dt":J
const-wide/16 v9, 0x11
cmp-long v3, v7, v9
if-lez v3, :cond_28
.line 128
const-wide/16 v7, 0x11
.line 130
:cond_28
iput-wide v5, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->lastUpdateTime:J
.line 132
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget-boolean v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$User;->self:Z
if-nez v3, :cond_66
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget-boolean v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$User;->bot:Z
if-nez v3, :cond_66
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
if-eqz v3, :cond_4e
iget-object v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$User;->status:Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;
iget v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$UserStatus;->expires:I
iget v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->currentAccount:I
invoke-static {v9}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getInstance(I)Lim/tpelyyftgw/tgnet/ConnectionsManager;
move-result-object v9
invoke-virtual {v9}, Lim/tpelyyftgw/tgnet/ConnectionsManager;->getCurrentTime()I
move-result v9
if-gt v3, v9, :cond_64
:cond_4e
iget v3, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->currentAccount:I
invoke-static {v3}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v3
iget-object v3, v3, Lim/tpelyyftgw/messenger/MessagesController;->onlinePrivacy:Ljava/util/concurrent/ConcurrentHashMap;
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget v9, v9, Lim/tpelyyftgw/tgnet/TLRPC$User;->id:I
invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
invoke-virtual {v3, v9}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_66
:cond_64
const/4 v3, 0x1
goto :goto_67
:cond_66
const/4 v3, 0x0
.line 133
.local v3, "isOnline":Z
:goto_67
const/4 v9, 0x0
if-nez v3, :cond_70
iget v10, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
cmpl-float v10, v10, v9
if-eqz v10, :cond_fc
.line 134
:cond_70
iget-object v10, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v10}, Lim/tpelyyftgw/ui/components/BackupImageView;->getBottom()I
move-result v10
const/high16 v11, 0x40c00000 # 6.0f
invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v11
sub-int/2addr v10, v11
.line 135
.local v10, "top":I
iget-object v11, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v11}, Lim/tpelyyftgw/ui/components/BackupImageView;->getRight()I
move-result v11
const/high16 v12, 0x40e00000 # 7.0f
invoke-static {v12}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v13
sub-int/2addr v11, v13
.line 136
.local v11, "left":I
sget-object v13, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const-string/jumbo v14, "windowBackgroundWhite"
invoke-static {v14}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v14
invoke-virtual {v13, v14}, Landroid/graphics/Paint;->setColor(I)V
.line 137
int-to-float v13, v11
int-to-float v14, v10
invoke-static {v12}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v12
int-to-float v12, v12
iget v15, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
mul-float v12, v12, v15
sget-object v15, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v1, v13, v14, v12, v15}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
.line 138
sget-object v12, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
const-string v13, "chats_onlineCircle"
invoke-static {v13}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v13
invoke-virtual {v12, v13}, Landroid/graphics/Paint;->setColor(I)V
.line 139
int-to-float v12, v11
int-to-float v13, v10
const/high16 v14, 0x40a00000 # 5.0f
invoke-static {v14}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v14
int-to-float v14, v14
iget v15, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
mul-float v14, v14, v15
sget-object v15, Lim/tpelyyftgw/ui/actionbar/Theme;->dialogs_onlineCirclePaint:Landroid/graphics/Paint;
invoke-virtual {v1, v12, v13, v14, v15}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
.line 140
const/high16 v12, 0x43160000 # 150.0f
if-eqz v3, :cond_e3
.line 141
iget v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
const/high16 v13, 0x3f800000 # 1.0f
cmpg-float v14, v9, v13
if-gez v14, :cond_fc
.line 142
long-to-float v14, v7
div-float/2addr v14, v12
add-float/2addr v9, v14
iput v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
.line 143
cmpl-float v9, v9, v13
if-lez v9, :cond_da
.line 144
iput v13, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
.line 146
:cond_da
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v9}, Lim/tpelyyftgw/ui/components/BackupImageView;->invalidate()V
.line 147
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->invalidate()V
goto :goto_fc
.line 150
:cond_e3
iget v13, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
cmpl-float v14, v13, v9
if-lez v14, :cond_fc
.line 151
long-to-float v14, v7
div-float/2addr v14, v12
sub-float/2addr v13, v14
iput v13, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
.line 152
cmpg-float v12, v13, v9
if-gez v12, :cond_f4
.line 153
iput v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->onlineProgress:F
.line 155
:cond_f4
iget-object v9, v0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v9}, Lim/tpelyyftgw/ui/components/BackupImageView;->invalidate()V
.line 156
invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->invalidate()V
.line 162
.end local v3 # "isOnline":Z
.end local v5 # "newTime":J
.end local v7 # "dt":J
.end local v10 # "top":I
.end local v11 # "left":I
:cond_fc
:goto_fc
return v2
.end method
.method public synthetic lambda$new$0$ShareDialogCell(F)V
.registers 4
.param p1, "progress" # F
.line 68
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/CheckBox2;->getProgress()F
move-result v0
const v1, 0x3e126e98 # 0.143f
mul-float v0, v0, v1
const/high16 v1, 0x3f800000 # 1.0f
sub-float/2addr v1, v0
.line 69
.local v1, "scale":F
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setScaleX(F)V
.line 70
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->setScaleY(F)V
.line 71
return-void
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 7
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 169
sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->checkboxSquare_checkPaint:Landroid/graphics/Paint;
const-string v1, "dialogRoundCheckBox"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
.line 170
sget-object v0, Lim/tpelyyftgw/ui/actionbar/Theme;->checkboxSquare_checkPaint:Landroid/graphics/Paint;
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/CheckBox2;->getProgress()F
move-result v1
const/high16 v2, 0x437f0000 # 255.0f
mul-float v1, v1, v2
float-to-int v1, v1
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V
.line 172
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBgRectF:Landroid/graphics/RectF;
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->getLeft()I
move-result v1
int-to-float v1, v1
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->getTop()I
move-result v2
int-to-float v2, v2
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->getRight()I
move-result v3
int-to-float v3, v3
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/BackupImageView;->getBottom()I
move-result v4
int-to-float v4, v4
invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/RectF;->set(FFFF)V
.line 173
const/high16 v0, 0x40f00000 # 7.5f
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
int-to-float v0, v0
.line 174
.local v0, "radius":F
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBgRectF:Landroid/graphics/RectF;
sget-object v2, Lim/tpelyyftgw/ui/actionbar/Theme;->checkboxSquare_checkPaint:Landroid/graphics/Paint;
invoke-virtual {p1, v1, v0, v0, v2}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
.line 175
return-void
.end method
.method protected onMeasure(II)V
.registers 5
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 79
const/high16 v0, 0x42ce0000 # 103.0f
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v0
const/high16 v1, 0x40000000 # 2.0f
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
invoke-super {p0, p1, v0}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 80
return-void
.end method
.method public setChecked(ZZ)V
.registers 4
.param p1, "checked" # Z
.param p2, "animated" # Z
.line 117
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0, p1, p2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setChecked(ZZ)V
.line 118
return-void
.end method
.method public setDialog(IZLjava/lang/CharSequence;)V
.registers 10
.param p1, "uid" # I
.param p2, "checked" # Z
.param p3, "name" # Ljava/lang/CharSequence;
.line 83
const-string v0, "50_50"
const-string v1, ""
const/4 v2, 0x0
const/4 v3, 0x0
if-lez p1, :cond_74
.line 84
iget v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->currentAccount:I
invoke-static {v4}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v4
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
invoke-virtual {v4, v5}, Lim/tpelyyftgw/messenger/MessagesController;->getUser(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$User;
move-result-object v4
iput-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
.line 85
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v5, v4}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$User;)V
.line 86
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
invoke-static {v4}, Lim/tpelyyftgw/messenger/UserObject;->isUserSelf(Lim/tpelyyftgw/tgnet/TLRPC$User;)Z
move-result v4
if-eqz v4, :cond_43
.line 87
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
const v1, 0x7f0f0eb7
const-string v4, "SavedMessages"
invoke-static {v4, v1}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 88
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setAvatarType(I)V
.line 89
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
invoke-virtual {v0, v3, v3, v1, v4}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_ac
.line 91
:cond_43
if-eqz p3, :cond_4b
.line 92
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_64
.line 93
:cond_4b
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
if-eqz v3, :cond_5f
.line 94
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
iget-object v3, v3, Lim/tpelyyftgw/tgnet/TLRPC$User;->first_name:Ljava/lang/String;
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
iget-object v4, v4, Lim/tpelyyftgw/tgnet/TLRPC$User;->last_name:Ljava/lang/String;
invoke-static {v3, v4}, Lim/tpelyyftgw/messenger/ContactsController;->formatName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_64
.line 96
:cond_5f
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 98
:goto_64
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForUser(Lim/tpelyyftgw/tgnet/TLRPC$User;Z)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v3
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
invoke-virtual {v1, v3, v0, v4, v5}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
goto :goto_ac
.line 101
:cond_74
iput-object v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->user:Lim/tpelyyftgw/tgnet/TLRPC$User;
.line 102
iget v3, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->currentAccount:I
invoke-static {v3}, Lim/tpelyyftgw/messenger/MessagesController;->getInstance(I)Lim/tpelyyftgw/messenger/MessagesController;
move-result-object v3
neg-int v4, p1
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v3, v4}, Lim/tpelyyftgw/messenger/MessagesController;->getChat(Ljava/lang/Integer;)Lim/tpelyyftgw/tgnet/TLRPC$Chat;
move-result-object v3
.line 103
.local v3, "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
if-eqz p3, :cond_8d
.line 104
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_9c
.line 105
:cond_8d
if-eqz v3, :cond_97
.line 106
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
iget-object v4, v3, Lim/tpelyyftgw/tgnet/TLRPC$Chat;->title:Ljava/lang/String;
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_9c
.line 108
:cond_97
iget-object v4, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v4, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 110
:goto_9c
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/AvatarDrawable;->setInfo(Lim/tpelyyftgw/tgnet/TLRPC$Chat;)V
.line 111
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-static {v3, v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForChat(Lim/tpelyyftgw/tgnet/TLRPC$Chat;Z)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v4
iget-object v5, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->avatarDrawable:Lim/tpelyyftgw/ui/components/AvatarDrawable;
invoke-virtual {v1, v4, v0, v5, v3}, Lim/tpelyyftgw/ui/components/BackupImageView;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/lang/Object;)V
.line 113
.end local v3 # "chat":Lim/tpelyyftgw/tgnet/TLRPC$Chat;
:goto_ac
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/ShareDialogCell;->checkBox:Lim/tpelyyftgw/ui/components/CheckBox2;
invoke-virtual {v0, p2, v2}, Lim/tpelyyftgw/ui/components/CheckBox2;->setChecked(ZZ)V
.line 114
return-void
.end method