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

.class Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;
.super Ljava/lang/Object;
.source "JpgAndMp4DirScannerActivity.java"
# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->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/JpgAndMp4DirScannerActivity;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)V
.locals 0
.prologue
.line 60
iput-object p1, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;
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 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/widget/AdapterView",
"<*>;",
"Landroid/view/View;",
"IJ)V"
}
.end annotation
.prologue
.line 63
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;
invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$000(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;
move-result-object v0
invoke-virtual {v0, p3}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->getItem(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/io/File;
.line 64
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
.line 65
iget-object v1, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;
invoke-static {v1}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$100(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)Ljava/util/ArrayList;
move-result-object v1
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_0
:goto_0
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/io/File;
.line 66
invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v4
invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_0
.line 67
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 70
:cond_1
new-instance v0, Landroid/content/Intent;
iget-object v1, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;
const-class v3, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;
invoke-direct {v0, v1, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 71
const-string v1, "fileList"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putStringArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;
.line 72
iget-object v1, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;
const/4 v2, 0x0
invoke-virtual {v1, v0, v2}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->startActivityForResult(Landroid/content/Intent;I)V
.line 73
return-void
.end method