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

235 lines
7.6 KiB

.class Lcom/viatech/util/CaptureImage$3$1;
.super Ljava/lang/Object;
.source "CaptureImage.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/util/CaptureImage$3;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/viatech/util/CaptureImage$3;
.field final synthetic val$path:Ljava/lang/String;
# direct methods
.method constructor <init>(Lcom/viatech/util/CaptureImage$3;Ljava/lang/String;)V
.locals 0
.prologue
.line 105
iput-object p1, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iput-object p2, p0, Lcom/viatech/util/CaptureImage$3$1;->val$path:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 6
.prologue
const v5, 0x7f0b00b3
const/4 v4, 0x1
.line 108
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->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 109
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->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;->onCapturing()V
.line 111
:cond_0
new-instance v0, Ljava/io/File;
sget-object v1, Lcom/viatech/Config;->c:Ljava/lang/String;
iget-object v2, p0, Lcom/viatech/util/CaptureImage$3$1;->val$path:Ljava/lang/String;
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
move-result-object v0
.line 112
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MEDIA_SCANNER_SCAN_FILE"
invoke-direct {v1, v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
.line 113
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->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;->sendBroadcast(Landroid/content/Intent;)V
.line 114
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->this$0:Lcom/viatech/util/CaptureImage;
invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$400(Lcom/viatech/util/CaptureImage;)Landroid/widget/TextView;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v2, v2, Lcom/viatech/util/CaptureImage$3;->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
const v3, 0x7f070169
invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)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
sget-object v2, Lcom/viatech/Config;->c:Ljava/lang/String;
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
iget-object v2, p0, Lcom/viatech/util/CaptureImage$3$1;->val$path:Ljava/lang/String;
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
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 115
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->this$0:Lcom/viatech/util/CaptureImage;
invoke-static {v0}, Lcom/viatech/util/CaptureImage;->access$500(Lcom/viatech/util/CaptureImage;)Lcom/viatech/community/views/ProgressWheel;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Lcom/viatech/community/views/ProgressWheel;->setVisibility(I)V
.line 116
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->val$okButton:Landroid/widget/Button;
iget-object v1, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v1, v1, Lcom/viatech/util/CaptureImage$3;->this$0:Lcom/viatech/util/CaptureImage;
invoke-static {v1}, Lcom/viatech/util/CaptureImage;->access$200(Lcom/viatech/util/CaptureImage;)Landroid/app/Activity;
move-result-object v1
invoke-virtual {v1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/Button;->setTextColor(I)V
.line 117
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->val$okButton:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setClickable(Z)V
.line 118
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->val$openButton:Landroid/widget/Button;
iget-object v1, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v1, v1, Lcom/viatech/util/CaptureImage$3;->this$0:Lcom/viatech/util/CaptureImage;
invoke-static {v1}, Lcom/viatech/util/CaptureImage;->access$200(Lcom/viatech/util/CaptureImage;)Landroid/app/Activity;
move-result-object v1
invoke-virtual {v1}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
invoke-virtual {v0, v1}, Landroid/widget/Button;->setTextColor(I)V
.line 119
iget-object v0, p0, Lcom/viatech/util/CaptureImage$3$1;->this$1:Lcom/viatech/util/CaptureImage$3;
iget-object v0, v0, Lcom/viatech/util/CaptureImage$3;->val$openButton:Landroid/widget/Button;
invoke-virtual {v0, v4}, Landroid/widget/Button;->setClickable(Z)V
.line 121
return-void
.end method