You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
431 lines
12 KiB
431 lines
12 KiB
2 years ago
|
.class public Lcom/viatech/widget/VPaiDialog$Builder;
|
||
|
.super Landroid/app/AlertDialog$Builder;
|
||
|
.source "VPaiDialog.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/viatech/widget/VPaiDialog;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "Builder"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private mAlertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
.field private mContentTextView:Landroid/widget/TextView;
|
||
|
|
||
|
.field private mContentView:Landroid/view/View;
|
||
|
|
||
|
.field private mCustomContentView:Landroid/widget/LinearLayout;
|
||
|
|
||
|
.field private mInflater:Landroid/view/LayoutInflater;
|
||
|
|
||
|
.field private mLinearLayoutProgress:Landroid/widget/LinearLayout;
|
||
|
|
||
|
.field private mSeekBarProgress:Landroid/widget/SeekBar;
|
||
|
|
||
|
.field private mTitleTextView:Landroid/widget/TextView;
|
||
|
|
||
|
.field private mTitleView:Landroid/view/View;
|
||
|
|
||
|
.field private mTvProgress:Landroid/widget/TextView;
|
||
|
|
||
|
.field private mView:Landroid/view/View;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;)V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 34
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
invoke-direct {p0, p1, v0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;I)V
|
||
|
|
||
|
.line 35
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;I)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 38
|
||
|
invoke-direct {p0, p1, p2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;I)V
|
||
|
|
||
|
.line 39
|
||
|
const-string v0, "layout_inflater"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/view/LayoutInflater;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mInflater:Landroid/view/LayoutInflater;
|
||
|
|
||
|
.line 40
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mInflater:Landroid/view/LayoutInflater;
|
||
|
|
||
|
const v1, 0x7f03005e
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
.line 41
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c0227
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTitleView:Landroid/view/View;
|
||
|
|
||
|
.line 42
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c0229
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTitleTextView:Landroid/widget/TextView;
|
||
|
|
||
|
.line 43
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c022c
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mContentView:Landroid/view/View;
|
||
|
|
||
|
.line 44
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c022e
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mContentTextView:Landroid/widget/TextView;
|
||
|
|
||
|
.line 45
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c022b
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/LinearLayout;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mCustomContentView:Landroid/widget/LinearLayout;
|
||
|
|
||
|
.line 47
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c022f
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/LinearLayout;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mLinearLayoutProgress:Landroid/widget/LinearLayout;
|
||
|
|
||
|
.line 48
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c0230
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/SeekBar;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mSeekBarProgress:Landroid/widget/SeekBar;
|
||
|
|
||
|
.line 49
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
const v1, 0x7f0c0231
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTvProgress:Landroid/widget/TextView;
|
||
|
|
||
|
.line 50
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public create()Landroid/app/AlertDialog;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 75
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mView:Landroid/view/View;
|
||
|
|
||
|
invoke-super {p0, v0}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
|
||
|
|
||
|
.line 76
|
||
|
invoke-super {p0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mAlertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
.line 77
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mAlertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getDialog()Landroid/app/AlertDialog;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 53
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mAlertDialog:Landroid/app/AlertDialog;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public setMessage(I)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 1
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/StringRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 101
|
||
|
invoke-virtual {p0}, Lcom/viatech/widget/VPaiDialog$Builder;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/VPaiDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
||
|
|
||
|
.line 102
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 108
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mContentTextView:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 109
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setProgress(I)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 117
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mSeekBarProgress:Landroid/widget/SeekBar;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/widget/SeekBar;->setProgress(I)V
|
||
|
|
||
|
.line 118
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTvProgress:Landroid/widget/TextView;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, ""
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "%"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 119
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setProgressVisible(Z)V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 113
|
||
|
iget-object v1, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mLinearLayoutProgress:Landroid/widget/LinearLayout;
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V
|
||
|
|
||
|
.line 114
|
||
|
return-void
|
||
|
|
||
|
.line 113
|
||
|
:cond_0
|
||
|
const/16 v0, 0x8
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public setTitle(I)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 1
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/StringRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 83
|
||
|
invoke-virtual {p0}, Lcom/viatech/widget/VPaiDialog$Builder;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 84
|
||
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
||
|
|
||
|
.line 85
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 91
|
||
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
.line 92
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTitleView:Landroid/view/View;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
||
|
|
||
|
.line 93
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mTitleTextView:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 95
|
||
|
:cond_0
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public setView(I)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.line 68
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mInflater:Landroid/view/LayoutInflater;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 69
|
||
|
invoke-virtual {p0, v0}, Lcom/viatech/widget/VPaiDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 58
|
||
|
iget-object v0, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mContentView:Landroid/view/View;
|
||
|
|
||
|
const/16 v1, 0x8
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
||
|
|
||
|
.line 59
|
||
|
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
|
||
|
|
||
|
const/4 v1, -0x1
|
||
|
|
||
|
const/4 v2, -0x2
|
||
|
|
||
|
invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
||
|
|
||
|
.line 61
|
||
|
iget-object v1, p0, Lcom/viatech/widget/VPaiDialog$Builder;->mCustomContentView:Landroid/widget/LinearLayout;
|
||
|
|
||
|
invoke-virtual {v1, p1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
|
||
|
|
||
|
.line 62
|
||
|
return-object p0
|
||
|
.end method
|