PaymentInfoCell.smali
.class public Lim/tpelyyftgw/ui/cells/PaymentInfoCell;
.super Landroid/widget/FrameLayout;
.source "PaymentInfoCell.java"
# instance fields
.field private detailExTextView:Landroid/widget/TextView;
.field private detailTextView:Landroid/widget/TextView;
.field private imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.field private nameTextView:Landroid/widget/TextView;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 19
.param p1, "context" # Landroid/content/Context;
.line 31
move-object/from16 v0, p0
move-object/from16 v1, p1
invoke-direct/range {p0 .. p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 33
new-instance v2, Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-direct {v2, v1}, Lim/tpelyyftgw/ui/components/BackupImageView;-><init>(Landroid/content/Context;)V
iput-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
.line 34
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/4 v4, 0x5
const/4 v5, 0x3
if-eqz v3, :cond_16
const/4 v8, 0x5
goto :goto_17
:cond_16
const/4 v8, 0x3
:goto_17
const/high16 v9, 0x41200000 # 10.0f
const/high16 v10, 0x41200000 # 10.0f
const/high16 v11, 0x41200000 # 10.0f
const/4 v12, 0x0
const/high16 v6, 0x42c80000 # 100.0f
const/high16 v7, 0x42c80000 # 100.0f
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 36
new-instance v2, Landroid/widget/TextView;
invoke-direct {v2, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
.line 37
const-string/jumbo v3, "windowBackgroundWhiteBlackText"
invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v6
invoke-virtual {v2, v6}, Landroid/widget/TextView;->setTextColor(I)V
.line 38
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
const/high16 v6, 0x41600000 # 14.0f
const/4 v7, 0x1
invoke-virtual {v2, v7, v6}, Landroid/widget/TextView;->setTextSize(IF)V
.line 39
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setLines(I)V
.line 40
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
const-string v8, "fonts/rmedium.ttf"
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v8
invoke-virtual {v2, v8}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 41
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setMaxLines(I)V
.line 42
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 43
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
sget-object v8, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v2, v8}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 44
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
sget-boolean v8, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v8, :cond_6b
const/4 v8, 0x5
goto :goto_6c
:cond_6b
const/4 v8, 0x3
:goto_6c
or-int/lit8 v8, v8, 0x30
invoke-virtual {v2, v8}, Landroid/widget/TextView;->setGravity(I)V
.line 45
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
const/high16 v8, -0x40800000 # -1.0f
const/high16 v9, -0x40000000 # -2.0f
sget-boolean v10, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v10, :cond_7d
const/4 v10, 0x5
goto :goto_7e
:cond_7d
const/4 v10, 0x3
:goto_7e
or-int/lit8 v10, v10, 0x30
sget-boolean v11, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v15, 0x41200000 # 10.0f
const/high16 v16, 0x42f60000 # 123.0f
if-eqz v11, :cond_8b
const/high16 v11, 0x41200000 # 10.0f
goto :goto_8d
:cond_8b
const/high16 v11, 0x42f60000 # 123.0f
:goto_8d
const/high16 v12, 0x41100000 # 9.0f
sget-boolean v13, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v13, :cond_96
const/high16 v13, 0x42f60000 # 123.0f
goto :goto_98
:cond_96
const/high16 v13, 0x41200000 # 10.0f
:goto_98
const/4 v14, 0x0
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v8
invoke-virtual {v0, v2, v8}, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 47
new-instance v2, Landroid/widget/TextView;
invoke-direct {v2, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
.line 48
invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v3
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V
.line 49
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7, v6}, Landroid/widget/TextView;->setTextSize(IF)V
.line 50
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
invoke-virtual {v2, v5}, Landroid/widget/TextView;->setMaxLines(I)V
.line 51
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
sget-object v3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 52
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_c7
const/4 v3, 0x5
goto :goto_c8
:cond_c7
const/4 v3, 0x3
:goto_c8
or-int/lit8 v3, v3, 0x30
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V
.line 53
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
const/high16 v8, -0x40800000 # -1.0f
const/high16 v9, -0x40000000 # -2.0f
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_d9
const/4 v3, 0x5
goto :goto_da
:cond_d9
const/4 v3, 0x3
:goto_da
or-int/lit8 v10, v3, 0x30
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_e3
const/high16 v11, 0x41200000 # 10.0f
goto :goto_e5
:cond_e3
const/high16 v11, 0x42f60000 # 123.0f
:goto_e5
const/high16 v12, 0x42040000 # 33.0f
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_ee
const/high16 v13, 0x42f60000 # 123.0f
goto :goto_f0
:cond_ee
const/high16 v13, 0x41200000 # 10.0f
:goto_f0
const/4 v14, 0x0
invoke-static/range {v8 .. v14}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 55
new-instance v2, Landroid/widget/TextView;
invoke-direct {v2, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
.line 56
const-string/jumbo v3, "windowBackgroundWhiteGrayText2"
invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v3
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V
.line 57
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
const/high16 v3, 0x41500000 # 13.0f
invoke-virtual {v2, v7, v3}, Landroid/widget/TextView;->setTextSize(IF)V
.line 58
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setLines(I)V
.line 59
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setMaxLines(I)V
.line 60
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {v2, v7}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 61
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
sget-object v3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
.line 62
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_12e
const/4 v3, 0x5
goto :goto_12f
:cond_12e
const/4 v3, 0x3
:goto_12f
or-int/lit8 v3, v3, 0x30
invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V
.line 63
iget-object v2, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
const/high16 v6, -0x40800000 # -1.0f
const/high16 v7, -0x40000000 # -2.0f
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_13f
goto :goto_140
:cond_13f
const/4 v4, 0x3
:goto_140
or-int/lit8 v8, v4, 0x30
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_149
const/high16 v9, 0x41200000 # 10.0f
goto :goto_14b
:cond_149
const/high16 v9, 0x42f60000 # 123.0f
:goto_14b
const/high16 v10, 0x42b40000 # 90.0f
sget-boolean v3, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v3, :cond_154
const/high16 v11, 0x42f60000 # 123.0f
goto :goto_156
:cond_154
const/high16 v11, 0x41200000 # 10.0f
:goto_156
const/4 v12, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {v0, v2, v3}, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 64
return-void
.end method
# virtual methods
.method protected onLayout(ZIIII)V
.registers 10
.param p1, "changed" # Z
.param p2, "left" # I
.param p3, "top" # I
.param p4, "right" # I
.param p5, "bottom" # I
.line 73
invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V
.line 74
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->getBottom()I
move-result v0
const/high16 v1, 0x40400000 # 3.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
add-int/2addr v0, v1
.line 75
.end local p3 # "top":I
.local v0, "top":I
iget-object p3, p0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {p3}, Landroid/widget/TextView;->getLeft()I
move-result v1
iget-object v2, p0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {v2}, Landroid/widget/TextView;->getRight()I
move-result v2
iget-object v3, p0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
invoke-virtual {v3}, Landroid/widget/TextView;->getMeasuredHeight()I
move-result v3
add-int/2addr v3, v0
invoke-virtual {p3, v1, v0, v2, v3}, Landroid/widget/TextView;->layout(IIII)V
.line 76
return-void
.end method
.method protected onMeasure(II)V
.registers 6
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 68
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, 0x42f00000 # 120.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v1
invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 69
return-void
.end method
.method public setInvoice(Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;Ljava/lang/String;)V
.registers 26
.param p1, "invoice" # Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;
.param p2, "botname" # Ljava/lang/String;
.line 79
move-object/from16 v0, p0
move-object/from16 v10, p1
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
iget-object v2, v10, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;->title:Ljava/lang/String;
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 80
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
iget-object v2, v10, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;->description:Ljava/lang/String;
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 81
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
move-object/from16 v11, p2
invoke-virtual {v1, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 84
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->isTablet()Z
move-result v1
const v2, 0x3f333333 # 0.7f
if-eqz v1, :cond_2c
.line 85
invoke-static {}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getMinTabletSide()I
move-result v1
int-to-float v1, v1
mul-float v1, v1, v2
float-to-int v1, v1
move v12, v1
.local v1, "maxPhotoWidth":I
goto :goto_3d
.line 87
.end local v1 # "maxPhotoWidth":I
:cond_2c
sget-object v1, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v1, v1, Landroid/graphics/Point;->x:I
sget-object v3, Lim/tpelyyftgw/messenger/AndroidUtilities;->displaySize:Landroid/graphics/Point;
iget v3, v3, Landroid/graphics/Point;->y:I
invoke-static {v1, v3}, Ljava/lang/Math;->min(II)I
move-result v1
int-to-float v1, v1
mul-float v1, v1, v2
float-to-int v1, v1
move v12, v1
.line 89
.local v12, "maxPhotoWidth":I
:goto_3d
const/16 v1, 0x280
.line 90
.local v1, "width":I
const/16 v2, 0x168
.line 91
.local v2, "height":I
int-to-float v3, v1
const/high16 v4, 0x40000000 # 2.0f
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v4
sub-int v4, v12, v4
int-to-float v4, v4
div-float v13, v3, v4
.line 92
.local v13, "scale":F
int-to-float v3, v1
div-float/2addr v3, v13
float-to-int v14, v3
.line 93
.end local v1 # "width":I
.local v14, "width":I
int-to-float v1, v2
div-float/2addr v1, v13
float-to-int v15, v1
.line 94
.end local v2 # "height":I
.local v15, "height":I
iget-object v1, v10, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;->photo:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
const/4 v2, 0x5
const/4 v3, 0x3
if-eqz v1, :cond_127
iget-object v1, v10, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;->photo:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
iget-object v1, v1, Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;->mime_type:Ljava/lang/String;
const-string v4, "image/"
invoke-virtual {v1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_127
.line 95
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_71
const/4 v4, 0x5
goto :goto_72
:cond_71
const/4 v4, 0x3
:goto_72
or-int/lit8 v18, v4, 0x30
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
const/high16 v5, 0x41200000 # 10.0f
const/high16 v6, 0x42f60000 # 123.0f
if-eqz v4, :cond_7f
const/high16 v19, 0x41200000 # 10.0f
goto :goto_81
:cond_7f
const/high16 v19, 0x42f60000 # 123.0f
:goto_81
const/high16 v20, 0x41100000 # 9.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_8a
const/high16 v21, 0x42f60000 # 123.0f
goto :goto_8c
:cond_8a
const/high16 v21, 0x41200000 # 10.0f
:goto_8c
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 96
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_a1
const/4 v4, 0x5
goto :goto_a2
:cond_a1
const/4 v4, 0x3
:goto_a2
or-int/lit8 v18, v4, 0x30
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_ab
const/high16 v19, 0x41200000 # 10.0f
goto :goto_ad
:cond_ab
const/high16 v19, 0x42f60000 # 123.0f
:goto_ad
const/high16 v20, 0x42040000 # 33.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_b6
const/high16 v21, 0x42f60000 # 123.0f
goto :goto_b8
:cond_b6
const/high16 v21, 0x41200000 # 10.0f
:goto_b8
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 97
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_cc
goto :goto_cd
:cond_cc
const/4 v2, 0x3
:goto_cd
or-int/lit8 v18, v2, 0x30
sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v2, :cond_d6
const/high16 v19, 0x41200000 # 10.0f
goto :goto_d8
:cond_d6
const/high16 v19, 0x42f60000 # 123.0f
:goto_d8
const/high16 v20, 0x42b40000 # 90.0f
sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v2, :cond_e1
const/high16 v21, 0x42f60000 # 123.0f
goto :goto_e3
:cond_e1
const/high16 v21, 0x41200000 # 10.0f
:goto_e3
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 98
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setVisibility(I)V
.line 99
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v14}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v3, v2
const/4 v2, 0x1
invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
aput-object v4, v3, v2
const-string v2, "%d_%d"
invoke-static {v1, v2, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v16
.line 100
.local v16, "filter":Ljava/lang/String;
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/BackupImageView;->getImageReceiver()Lim/tpelyyftgw/messenger/ImageReceiver;
move-result-object v1
iget-object v2, v10, Lim/tpelyyftgw/tgnet/TLRPC$TL_messageMediaInvoice;->photo:Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;
invoke-static {v2}, Lim/tpelyyftgw/messenger/WebFile;->createWithWebDocument(Lim/tpelyyftgw/tgnet/TLRPC$WebDocument;)Lim/tpelyyftgw/messenger/WebFile;
move-result-object v2
invoke-static {v2}, Lim/tpelyyftgw/messenger/ImageLocation;->getForWebFile(Lim/tpelyyftgw/messenger/WebFile;)Lim/tpelyyftgw/messenger/ImageLocation;
move-result-object v2
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, -0x1
const/4 v7, 0x0
const/4 v9, 0x1
move-object/from16 v3, v16
move-object/from16 v8, p1
invoke-virtual/range {v1 .. v9}, Lim/tpelyyftgw/messenger/ImageReceiver;->setImage(Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;Lim/tpelyyftgw/messenger/ImageLocation;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Object;I)V
.line 101
.end local v16 # "filter":Ljava/lang/String;
goto :goto_187
.line 102
:cond_127
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->nameTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_133
const/4 v4, 0x5
goto :goto_134
:cond_133
const/4 v4, 0x3
:goto_134
or-int/lit8 v18, v4, 0x30
const/high16 v19, 0x41880000 # 17.0f
const/high16 v20, 0x41100000 # 9.0f
const/high16 v21, 0x41880000 # 17.0f
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 103
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_151
const/4 v4, 0x5
goto :goto_152
:cond_151
const/4 v4, 0x3
:goto_152
or-int/lit8 v18, v4, 0x30
const/high16 v19, 0x41880000 # 17.0f
const/high16 v20, 0x42040000 # 33.0f
const/high16 v21, 0x41880000 # 17.0f
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v4
invoke-virtual {v1, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 104
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->detailExTextView:Landroid/widget/TextView;
const/high16 v16, -0x40800000 # -1.0f
const/high16 v17, -0x40000000 # -2.0f
sget-boolean v4, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z
if-eqz v4, :cond_16e
goto :goto_16f
:cond_16e
const/4 v2, 0x3
:goto_16f
or-int/lit8 v18, v2, 0x30
const/high16 v19, 0x41880000 # 17.0f
const/high16 v20, 0x42b40000 # 90.0f
const/high16 v21, 0x41880000 # 17.0f
const/16 v22, 0x0
invoke-static/range {v16 .. v22}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v2
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 105
iget-object v1, v0, Lim/tpelyyftgw/ui/cells/PaymentInfoCell;->imageView:Lim/tpelyyftgw/ui/components/BackupImageView;
const/16 v2, 0x8
invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/BackupImageView;->setVisibility(I)V
.line 107
:goto_187
return-void
.end method