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.
147 lines
3.9 KiB
147 lines
3.9 KiB
2 years ago
|
.class Lcom/viatech/gallery/PhotoActivity$7;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "PhotoActivity.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/viatech/widget/DownloadDialog$DownloadDialogListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/gallery/PhotoActivity;->initView()V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/viatech/gallery/PhotoActivity;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/viatech/gallery/PhotoActivity;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 554
|
||
|
iput-object p1, p0, Lcom/viatech/gallery/PhotoActivity$7;->this$0:Lcom/viatech/gallery/PhotoActivity;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onDownloadEnd(Ljava/lang/String;)V
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
.line 557
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
.line 559
|
||
|
:try_start_0
|
||
|
new-instance v0, Ljava/io/File;
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
.line 560
|
||
|
invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 561
|
||
|
new-instance v1, Landroid/graphics/BitmapFactory$Options;
|
||
|
|
||
|
invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V
|
||
|
|
||
|
.line 562
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z
|
||
|
|
||
|
.line 563
|
||
|
iget-object v2, p0, Lcom/viatech/gallery/PhotoActivity$7;->this$0:Lcom/viatech/gallery/PhotoActivity;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/gallery/PhotoActivity;->access$700(Lcom/viatech/gallery/PhotoActivity;)Landroid/content/Context;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "r"
|
||
|
|
||
|
invoke-virtual {v2, v0, v3}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 564
|
||
|
invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-static {v0, v2, v1}, Landroid/graphics/BitmapFactory;->decodeFileDescriptor(Ljava/io/FileDescriptor;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
|
||
|
|
||
|
.line 565
|
||
|
iget v0, v1, Landroid/graphics/BitmapFactory$Options;->outWidth:I
|
||
|
|
||
|
.line 566
|
||
|
iget v1, v1, Landroid/graphics/BitmapFactory$Options;->outHeight:I
|
||
|
|
||
|
.line 567
|
||
|
new-instance v2, Lcom/via/vpailib/mediarecorder/JpegInsertTag;
|
||
|
|
||
|
invoke-direct {v2}, Lcom/via/vpailib/mediarecorder/JpegInsertTag;-><init>()V
|
||
|
|
||
|
.line 569
|
||
|
invoke-virtual {v2, p1, v0, v1}, Lcom/via/vpailib/mediarecorder/JpegInsertTag;->repalcePanoTag(Ljava/lang/String;II)I
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
.line 574
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 570
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 571
|
||
|
const-string v1, "Vpai_PhotoActivity"
|
||
|
|
||
|
new-instance v2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v3, "e:"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|