今奥全景相机
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.

245 lines
7.1 KiB

.class Lcom/viatech/update/UpdateManager$4;
.super Ljava/lang/Object;
.source "UpdateManager.java"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/update/UpdateManager;->showUpgradeDialog(Landroid/os/Message;)I
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/update/UpdateManager;
.field final synthetic val$curVersion:I
# direct methods
.method constructor <init>(Lcom/viatech/update/UpdateManager;I)V
.locals 0
.prologue
.line 403
iput-object p1, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
iput p2, p0, Lcom/viatech/update/UpdateManager$4;->val$curVersion:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.locals 3
.prologue
.line 406
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$1300(Lcom/viatech/update/UpdateManager;)Z
move-result v0
.line 407
if-eqz v0, :cond_0
.line 409
:try_start_0
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$1400(Lcom/viatech/update/UpdateManager;)Landroid/app/Dialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
.line 410
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
move-result-object v0
const-string v1, "mShowing"
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 411
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 412
const/4 v1, 0x0
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 482
:goto_0
return-void
.line 413
:catch_0
move-exception v0
.line 414
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.line 419
:cond_0
:try_start_1
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
move-result-object v0
const-string v1, "mShowing"
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 420
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 421
const/4 v1, 0x1
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
.line 425
:goto_1
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$1500(Lcom/viatech/update/UpdateManager;)Lcom/viatech/device/VPaiDevice;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
move-result v0
if-eqz v0, :cond_1
.line 426
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$1500(Lcom/viatech/update/UpdateManager;)Lcom/viatech/device/VPaiDevice;
move-result-object v0
iget-object v1, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v1}, Lcom/viatech/update/UpdateManager;->access$900(Lcom/viatech/update/UpdateManager;)Ljava/lang/String;
move-result-object v1
new-instance v2, Lcom/viatech/update/UpdateManager$4$1;
invoke-direct {v2, p0}, Lcom/viatech/update/UpdateManager$4$1;-><init>(Lcom/viatech/update/UpdateManager$4;)V
invoke-virtual {v0, v1, v2}, Lcom/viatech/device/VPaiDevice;->upgradeVtpDevice(Ljava/lang/String;Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V
.line 473
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v0}, Lcom/viatech/update/UpdateManager;->access$1400(Lcom/viatech/update/UpdateManager;)Landroid/app/Dialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
goto :goto_0
.line 422
:catch_1
move-exception v0
.line 423
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_1
.line 476
:cond_1
iget-object v0, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
sput-object v0, Lcom/viatech/update/UpgradeDeviceActivity;->sUpdateManager:Lcom/viatech/update/UpdateManager;
.line 477
new-instance v0, Landroid/content/Intent;
iget-object v1, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v1}, Lcom/viatech/update/UpdateManager;->access$300(Lcom/viatech/update/UpdateManager;)Landroid/content/Context;
move-result-object v1
const-class v2, Lcom/viatech/update/UpgradeDeviceActivity;
invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 478
const-string v1, "upgrade_change_log"
iget-object v2, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v2}, Lcom/viatech/update/UpdateManager;->access$600(Lcom/viatech/update/UpdateManager;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 479
const-string v1, "curent_version"
iget v2, p0, Lcom/viatech/update/UpdateManager$4;->val$curVersion:I
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 480
iget-object v1, p0, Lcom/viatech/update/UpdateManager$4;->this$0:Lcom/viatech/update/UpdateManager;
invoke-static {v1}, Lcom/viatech/update/UpdateManager;->access$300(Lcom/viatech/update/UpdateManager;)Landroid/content/Context;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
goto :goto_0
.end method