DrawerAddCell.smali
.class public Lim/tpelyyftgw/ui/cells/DrawerAddCell;
.super Landroid/widget/FrameLayout;
.source "DrawerAddCell.java"
# instance fields
.field private textView: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 10
.param p1, "context" # Landroid/content/Context;
.line 23
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 25
new-instance v0, Landroid/widget/TextView;
invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
.line 26
const-string v1, "chats_menuItemText"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
.line 27
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const/4 v1, 0x1
const/high16 v2, 0x41700000 # 15.0f
invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 28
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const-string v2, "fonts/rmedium.ttf"
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getTypeface(Ljava/lang/String;)Landroid/graphics/Typeface;
move-result-object v2
invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 29
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLines(I)V
.line 30
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMaxLines(I)V
.line 31
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSingleLine(Z)V
.line 32
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const/16 v1, 0x13
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V
.line 33
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const/high16 v1, 0x42080000 # 34.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
.line 34
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const/high16 v1, -0x40800000 # -1.0f
const/high16 v2, -0x40800000 # -1.0f
const/16 v3, 0x33
const/high16 v4, 0x41b80000 # 23.0f
const/4 v5, 0x0
const/high16 v6, 0x41800000 # 16.0f
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/DrawerAddCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 35
return-void
.end method
# virtual methods
.method protected onAttachedToWindow()V
.registers 5
.line 44
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
.line 45
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const-string v1, "chats_menuItemText"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
.line 46
iget-object v0, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const-string v1, "AddAccount"
const v2, 0x7f0f00ae
invoke-static {v1, v2}, 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 47
invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f081532
invoke-static {v1}, Lnp/NPFog;->d(I)I
move-result v1
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
.line 48
.local v0, "drawable":Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_3d
.line 49
new-instance v1, Landroid/graphics/PorterDuffColorFilter;
const-string v2, "chats_menuItemIcon"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v1, v2, v3}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 51
:cond_3d
iget-object v1, p0, Lim/tpelyyftgw/ui/cells/DrawerAddCell;->textView:Landroid/widget/TextView;
const/4 v2, 0x0
invoke-virtual {v1, v0, v2, v2, v2}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
.line 52
return-void
.end method
.method protected onMeasure(II)V
.registers 6
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 39
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, 0x42400000 # 48.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 40
return-void
.end method