ProgressBtnView.smali
.class public Lcom/cleanmaster/base/widget/ProgressBtnView;
.super Landroid/widget/FrameLayout;
.source "ProgressBtnView.java"
# instance fields
.field private a:Landroid/view/View;
.field private b:Landroid/widget/TextView;
.field private c:Landroid/widget/ProgressBar;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
.prologue
.line 36
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 37
invoke-direct {p0, p1}, Lcom/cleanmaster/base/widget/ProgressBtnView;->a(Landroid/content/Context;)V
.line 38
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 3
.prologue
.line 31
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 32
invoke-direct {p0, p1}, Lcom/cleanmaster/base/widget/ProgressBtnView;->a(Landroid/content/Context;)V
.line 33
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
.prologue
.line 26
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 27
invoke-direct {p0, p1}, Lcom/cleanmaster/base/widget/ProgressBtnView;->a(Landroid/content/Context;)V
.line 28
return-void
.end method
.method private a(Landroid/content/Context;)V
.registers 4
.prologue
.line 42
:try_start_0
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f0402b4
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->a:Landroid/view/View;
:try_end_d
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_d} :catch_29
.line 47
:goto_d
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->a:Landroid/view/View;
if-nez v0, :cond_12
.line 52
:goto_11
return-void
.line 50
:cond_12
const v0, 0x7f10038f
invoke-virtual {p0, v0}, Lcom/cleanmaster/base/widget/ProgressBtnView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
.line 51
const v0, 0x7f10099f
invoke-virtual {p0, v0}, Lcom/cleanmaster/base/widget/ProgressBtnView;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ProgressBar;
iput-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
goto :goto_11
.line 44
:catch_29
move-exception v0
goto :goto_d
.end method
# virtual methods
.method public setProgerssMax(I)V
.registers 3
.prologue
.line 73
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
if-nez v0, :cond_5
.line 77
:goto_4
return-void
.line 76
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setMax(I)V
goto :goto_4
.end method
.method public setProgress(I)V
.registers 3
.prologue
.line 66
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
if-nez v0, :cond_5
.line 70
:goto_4
return-void
.line 69
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setProgress(I)V
goto :goto_4
.end method
.method public setProgressDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 3
.prologue
.line 101
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
if-nez v0, :cond_5
.line 105
:goto_4
return-void
.line 104
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->c:Landroid/widget/ProgressBar;
invoke-virtual {v0, p1}, Landroid/widget/ProgressBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V
goto :goto_4
.end method
.method public setText(I)V
.registers 3
.prologue
.line 55
invoke-virtual {p0}, Lcom/cleanmaster/base/widget/ProgressBtnView;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/cleanmaster/base/widget/ProgressBtnView;->setText(Ljava/lang/CharSequence;)V
.line 56
return-void
.end method
.method public setText(Ljava/lang/CharSequence;)V
.registers 3
.prologue
.line 59
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 63
:goto_4
return-void
.line 62
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_4
.end method
.method public setTextColor(I)V
.registers 3
.param p1 # I
.annotation build Landroid/support/annotation/ColorInt;
.end annotation
.end param
.prologue
.line 94
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 98
:goto_4
return-void
.line 97
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
goto :goto_4
.end method
.method public setTextSize(F)V
.registers 3
.prologue
.line 80
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 84
:goto_4
return-void
.line 83
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextSize(F)V
goto :goto_4
.end method
.method public setTypeface(Landroid/graphics/Typeface;I)V
.registers 4
.prologue
.line 87
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
if-nez v0, :cond_5
.line 91
:goto_4
return-void
.line 90
:cond_5
iget-object v0, p0, Lcom/cleanmaster/base/widget/ProgressBtnView;->b:Landroid/widget/TextView;
invoke-virtual {v0, p1, p2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
goto :goto_4
.end method