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.
145 lines
4.9 KiB
145 lines
4.9 KiB
2 years ago
|
.class Lcom/viatech/util/OnlineUpgradeManager$4;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "OnlineUpgradeManager.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/content/DialogInterface$OnClickListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/util/OnlineUpgradeManager;-><init>(Landroid/content/Context;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/viatech/util/OnlineUpgradeManager;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 180
|
||
|
iput-object p1, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onClick(Landroid/content/DialogInterface;I)V
|
||
|
.locals 6
|
||
|
|
||
|
.prologue
|
||
|
.line 183
|
||
|
invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V
|
||
|
|
||
|
.line 184
|
||
|
iget-object v0, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/util/OnlineUpgradeManager;->access$200(Lcom/viatech/util/OnlineUpgradeManager;)Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 185
|
||
|
invoke-static {}, Lcom/viatech/util/HttpDownloadManager;->instance()Lcom/viatech/util/HttpDownloadManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/util/OnlineUpgradeManager;->access$200(Lcom/viatech/util/OnlineUpgradeManager;)Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/viatech/util/HttpDownloadManager;->cancelDownload(Lcom/viatech/util/DownloadTask;)V
|
||
|
|
||
|
.line 186
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/util/OnlineUpgradeManager;->access$100(Lcom/viatech/util/OnlineUpgradeManager;)Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
|
||
|
|
||
|
.line 187
|
||
|
iget-object v0, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-static {v0}, Lcom/viatech/util/OnlineUpgradeManager;->access$300(Lcom/viatech/util/OnlineUpgradeManager;)Lcom/viatech/util/OnlineUpgradeManager$UpgradeInfo;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v0, v0, Lcom/viatech/util/OnlineUpgradeManager$UpgradeInfo;->url:Ljava/lang/String;
|
||
|
|
||
|
.line 188
|
||
|
const-string v1, "VPAI_OnlineUpgradeManager"
|
||
|
|
||
|
new-instance v2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v3, "url = "
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 189
|
||
|
iget-object v1, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
new-instance v2, Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
const-string v3, "VPAI.apk"
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
.line 190
|
||
|
invoke-static {}, Lcom/viatech/util/OnlineUpgradeManager;->access$000()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-direct {v2, v3, v0, v4, v5}, Lcom/viatech/util/DownloadTask;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/viatech/util/HttpDownloadManager$OnDownloadListener;Ljava/lang/String;)V
|
||
|
|
||
|
.line 189
|
||
|
invoke-static {v1, v2}, Lcom/viatech/util/OnlineUpgradeManager;->access$202(Lcom/viatech/util/OnlineUpgradeManager;Lcom/viatech/util/DownloadTask;)Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
.line 191
|
||
|
invoke-static {}, Lcom/viatech/util/HttpDownloadManager;->instance()Lcom/viatech/util/HttpDownloadManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/viatech/util/OnlineUpgradeManager$4;->this$0:Lcom/viatech/util/OnlineUpgradeManager;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/util/OnlineUpgradeManager;->access$200(Lcom/viatech/util/OnlineUpgradeManager;)Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/viatech/util/HttpDownloadManager;->requestDownloadWithNoAddToList(Lcom/viatech/util/DownloadTask;)V
|
||
|
|
||
|
.line 192
|
||
|
return-void
|
||
|
.end method
|