.class Lcom/viatech/util/OnlineUpgradeManager$1; .super Ljava/lang/Object; .source "OnlineUpgradeManager.java" # interfaces .implements Landroid/content/DialogInterface$OnClickListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/util/OnlineUpgradeManager;->(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 (Lcom/viatech/util/OnlineUpgradeManager;)V .locals 0 .prologue .line 101 iput-object p1, p0, Lcom/viatech/util/OnlineUpgradeManager$1;->this$0:Lcom/viatech/util/OnlineUpgradeManager; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onClick(Landroid/content/DialogInterface;I)V .locals 4 .prologue .line 104 invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V .line 117 new-instance v0, Landroid/content/Intent; const-string v1, "android.intent.action.VIEW" invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V .line 118 const/high16 v1, 0x10000000 invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; .line 119 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-static {}, Lcom/viatech/util/OnlineUpgradeManager;->access$000()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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 const-string v2, "VPAI.apk" 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 .line 120 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "file://" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v1}, 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-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; move-result-object v1 const-string v2, "application/vnd.android.package-archive" invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent; .line 123 :try_start_0 iget-object v1, p0, Lcom/viatech/util/OnlineUpgradeManager$1;->this$0:Lcom/viatech/util/OnlineUpgradeManager; invoke-static {v1}, Lcom/viatech/util/OnlineUpgradeManager;->access$100(Lcom/viatech/util/OnlineUpgradeManager;)Landroid/content/Context; move-result-object v1 invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 .line 127 :goto_0 return-void .line 124 :catch_0 move-exception v0 .line 125 invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V goto :goto_0 .end method