.class Lcom/viatech/util/CaptureImage$2; .super Ljava/lang/Object; .source "CaptureImage.java" # interfaces .implements Landroid/content/DialogInterface$OnClickListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/util/CaptureImage;->(Landroid/app/Activity;Lcom/viatech/util/CaptureImage$ICaptureListener;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/viatech/util/CaptureImage; # direct methods .method constructor (Lcom/viatech/util/CaptureImage;)V .locals 0 .prologue .line 60 iput-object p1, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public onClick(Landroid/content/DialogInterface;I)V .locals 3 .prologue .line 64 iget-object v0, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$200(Lcom/viatech/util/CaptureImage;)Landroid/app/Activity; move-result-object v0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V iget-object v2, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v2}, Lcom/viatech/util/CaptureImage;->access$200(Lcom/viatech/util/CaptureImage;)Landroid/app/Activity; move-result-object v2 invoke-virtual {v2}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context; move-result-object v2 invoke-virtual {v2}, Landroid/content/Context;->getPackageName()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, ".provider" 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 iget-object v2, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v2}, Lcom/viatech/util/CaptureImage;->access$300(Lcom/viatech/util/CaptureImage;)Ljava/io/File; move-result-object v2 invoke-static {v0, v1, v2}, Landroid/support/v4/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri; move-result-object v0 .line 65 new-instance v1, Landroid/content/Intent; const-string v2, "android.intent.action.VIEW" invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V .line 66 const-string v2, "image/*" invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent; .line 67 const/4 v0, 0x1 invoke-virtual {v1, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; .line 68 iget-object v0, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$200(Lcom/viatech/util/CaptureImage;)Landroid/app/Activity; move-result-object v0 invoke-virtual {v0, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V .line 69 iget-object v0, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$000(Lcom/viatech/util/CaptureImage;)Lcom/viatech/util/CaptureImage$ICaptureListener; move-result-object v0 if-eqz v0, :cond_0 .line 70 iget-object v0, p0, Lcom/viatech/util/CaptureImage$2;->this$0:Lcom/viatech/util/CaptureImage; invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$000(Lcom/viatech/util/CaptureImage;)Lcom/viatech/util/CaptureImage$ICaptureListener; move-result-object v0 invoke-interface {v0}, Lcom/viatech/util/CaptureImage$ICaptureListener;->captureFinished()V .line 72 :cond_0 return-void .end method