[AppleScript] 纯文本查看 复制代码
.method protected onCreateDialog(I)Landroid/app/Dialog;
.registers 9
const/4 v2, 0x0
sparse-switch p1, :sswitch_data_100
invoke-super {p0, p1}, Lcom/niugubao/simustock/MyBaseActivity;->onCreateDialog(I)Landroid/app/Dialog;
move-result-object v0
:goto_8
return-object v0
:sswitch_9
invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f030003
const/4 v3, 0x0
invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
const v0, 0x7f080012
invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
const v1, 0x7f080013
invoke-virtual {v3, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v1
check-cast v1, Landroid/widget/TextView;
:try_start_27
invoke-virtual {p0}, Lcom/niugubao/simustock/HomePageActivity;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v4
invoke-virtual {p0}, Lcom/niugubao/simustock/HomePageActivity;->getPackageName()Ljava/lang/String;
move-result-object v5
const/4 v6, 0x0
invoke-virtual {v4, v5, v6}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v4
iget-object v4, v4, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
new-instance v5, Ljava/lang/StringBuilder;
const-string v6, "本地版本号:"
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
const-string v5, ",最新版本号:"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
iget-object v5, p0, Lcom/niugubao/simustock/HomePageActivity;->m:Ljava/lang/String;
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:try_end_54
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_27 .. :try_end_54} :catch_fc
:goto_54
new-instance v4, Ljava/lang/StringBuffer;
invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V
iget-object v0, p0, Lcom/niugubao/simustock/HomePageActivity;->o:Ljava/util/List;
if-eqz v0, :cond_78
iget-object v0, p0, Lcom/niugubao/simustock/HomePageActivity;->o:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_78
:goto_65
iget-object v0, p0, Lcom/niugubao/simustock/HomePageActivity;->o:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lt v2, v0, :cond_a3
invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;
move-result-object v0
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:cond_78
new-instance v0, Landroid/app/AlertDialog$Builder;
invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const-string v1, "软件更新"
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v0
invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
move-result-object v0
const-string v1, "更新"
new-instance v2, Lcom/niugubao/simustock/v;
invoke-direct {v2, p0}, Lcom/niugubao/simustock/v;-><init>(Lcom/niugubao/simustock/HomePageActivity;)V
invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v0
const-string v1, "取消"
new-instance v2, Lcom/niugubao/simustock/w;
invoke-direct {v2, p0}, Lcom/niugubao/simustock/w;-><init>(Lcom/niugubao/simustock/HomePageActivity;)V
invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v0
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object v0
goto/16 :goto_8
:cond_a3
new-instance v0, Ljava/lang/StringBuilder;
add-int/lit8 v5, v2, 0x1
invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v5
invoke-direct {v0, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const-string v5, " "
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
iget-object v0, p0, Lcom/niugubao/simustock/HomePageActivity;->o:Ljava/util/List;
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
const-string v0, "<br/>"
invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_65
:sswitch_cf
new-instance v0, Landroid/app/AlertDialog$Builder;
invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const-string v1, "退出"
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v0
const-string v1, "您确认退出牛股宝模拟炒股吗?"
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v0
const-string v1, "是"
new-instance v2, Lcom/niugubao/simustock/x;
invoke-direct {v2, p0}, Lcom/niugubao/simustock/x;-><init>(Lcom/niugubao/simustock/HomePageActivity;)V
invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v0
const-string v1, "否"
new-instance v2, Lcom/niugubao/simustock/y;
invoke-direct {v2, p0}, Lcom/niugubao/simustock/y;-><init>(Lcom/niugubao/simustock/HomePageActivity;)V
invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v0
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object v0
goto/16 :goto_8
:catch_fc
move-exception v0
goto/16 :goto_54
nop
:sswitch_data_100
.sparse-switch
0x1 -> :sswitch_9
0x1f41 -> :sswitch_cf
.end sparse-switch
.end method
.method public onKeyDown(ILandroid/view/KeyEvent;)Z
.registers 4
const/4 v0, 0x4
if-ne p1, v0, :cond_a
const/16 v0, 0x1f41
invoke-virtual {p0, v0}, Lcom/niugubao/simustock/HomePageActivity;->showDialog(I)V
const/4 v0, 0x1
:goto_9
return v0
:cond_a
invoke-super {p0, p1, p2}, Lcom/niugubao/simustock/MyBaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z
move-result v0
goto :goto_9
.end method
.method protected onStart()V
.registers 1
invoke-static {p0}, Lcom/niugubao/h/e;->a(Landroid/app/Activity;)V
invoke-super {p0}, Lcom/niugubao/simustock/MyBaseActivity;->onStart()V
return-void
.end method