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.
297 lines
7.9 KiB
297 lines
7.9 KiB
.class Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1; |
|
.super Ljava/lang/Object; |
|
.source "JpgAndMp4FileScannerActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/widget/AdapterView$OnItemClickListener; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;->onCreate(Landroid/os/Bundle;)V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 62 |
|
iput-object p1, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V |
|
.locals 8 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Landroid/widget/AdapterView", |
|
"<*>;", |
|
"Landroid/view/View;", |
|
"IJ)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
const/4 v7, 0x2 |
|
|
|
const/4 v6, 0x1 |
|
|
|
.line 65 |
|
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;->access$000(Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;)Ljava/util/ArrayList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
.line 66 |
|
new-instance v2, Ljava/io/File; |
|
|
|
invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V |
|
|
|
.line 67 |
|
new-instance v3, Lcom/viatech/gallery/FileInfo; |
|
|
|
invoke-direct {v3}, Lcom/viatech/gallery/FileInfo;-><init>()V |
|
|
|
.line 68 |
|
invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
iput-object v1, v3, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String; |
|
|
|
.line 69 |
|
invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
iput-object v1, v3, Lcom/viatech/gallery/FileInfo;->path:Ljava/lang/String; |
|
|
|
.line 70 |
|
iput-boolean v6, v3, Lcom/viatech/gallery/FileInfo;->isFromOtherPath:Z |
|
|
|
.line 71 |
|
const-string v1, "jpg" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
const-string v1, "jpeg" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
const-string v1, "JPG" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
const-string v1, "JPEG" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_2 |
|
|
|
.line 72 |
|
:cond_0 |
|
iput v6, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
.line 73 |
|
iput-object v0, v3, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String; |
|
|
|
.line 77 |
|
:cond_1 |
|
:goto_0 |
|
iput-boolean v6, v3, Lcom/viatech/gallery/FileInfo;->downloaded:Z |
|
|
|
.line 78 |
|
iget-object v1, v3, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/FileScanner;->name2Date(Ljava/lang/String;)J |
|
|
|
move-result-wide v4 |
|
|
|
iput-wide v4, v3, Lcom/viatech/gallery/FileInfo;->modifytime:J |
|
|
|
.line 79 |
|
invoke-virtual {v2}, Ljava/io/File;->length()J |
|
|
|
move-result-wide v4 |
|
|
|
iput-wide v4, v3, Lcom/viatech/gallery/FileInfo;->lsize:J |
|
|
|
.line 80 |
|
const/4 v1, 0x0 |
|
|
|
.line 81 |
|
iget v4, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
if-ne v4, v6, :cond_4 |
|
|
|
.line 82 |
|
new-instance v1, Landroid/content/Intent; |
|
|
|
iget-object v4, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
const-class v5, Lcom/viatech/gallery/PhotoActivity; |
|
|
|
invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V |
|
|
|
.line 83 |
|
const-string v4, "key_photo_path" |
|
|
|
invoke-virtual {v1, v4, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; |
|
|
|
.line 84 |
|
const-string v0, "key_photo_current" |
|
|
|
iget-object v4, v3, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String; |
|
|
|
invoke-virtual {v1, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; |
|
|
|
.line 85 |
|
const-string v0, "isFromOtherPath" |
|
|
|
invoke-virtual {v1, v0, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; |
|
|
|
.line 87 |
|
invoke-static {v2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri; |
|
|
|
move-result-object v0 |
|
|
|
iget v2, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
invoke-static {v2}, Lcom/viatech/common/util/FileMediaType;->getOpenMIMEType(I)Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent; |
|
|
|
.line 88 |
|
const-string v0, "fileinfo" |
|
|
|
invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent; |
|
|
|
move-object v0, v1 |
|
|
|
.line 96 |
|
:goto_1 |
|
iget-object v1, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v1, v0, v2}, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;->startActivityForResult(Landroid/content/Intent;I)V |
|
|
|
.line 97 |
|
return-void |
|
|
|
.line 74 |
|
:cond_2 |
|
const-string v1, "mp4" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_3 |
|
|
|
const-string v1, "MP4" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_1 |
|
|
|
.line 75 |
|
:cond_3 |
|
iput v7, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
goto :goto_0 |
|
|
|
.line 89 |
|
:cond_4 |
|
iget v0, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
if-ne v0, v7, :cond_5 |
|
|
|
.line 90 |
|
new-instance v0, Landroid/content/Intent; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity; |
|
|
|
const-class v4, Lcom/viatech/gallery/VideoActivity; |
|
|
|
invoke-direct {v0, v1, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V |
|
|
|
.line 91 |
|
invoke-static {v2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri; |
|
|
|
move-result-object v1 |
|
|
|
iget v2, v3, Lcom/viatech/gallery/FileInfo;->fileType:I |
|
|
|
invoke-static {v2}, Lcom/viatech/common/util/FileMediaType;->getOpenMIMEType(I)Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent; |
|
|
|
.line 92 |
|
const-string v1, "key_file_size" |
|
|
|
iget-wide v4, v3, Lcom/viatech/gallery/FileInfo;->lsize:J |
|
|
|
invoke-virtual {v0, v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent; |
|
|
|
.line 93 |
|
const-string v1, "isFromOtherPath" |
|
|
|
invoke-virtual {v0, v1, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; |
|
|
|
.line 94 |
|
const-string v1, "fileinfo" |
|
|
|
invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent; |
|
|
|
goto :goto_1 |
|
|
|
:cond_5 |
|
move-object v0, v1 |
|
|
|
goto :goto_1 |
|
.end method
|
|
|