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

205 lines
5.9 KiB

.class Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;
.super Landroid/widget/BaseAdapter;
.source "JpgAndMp4FileScannerActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "JpgAndMp4FileItemAdapter"
.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 158
iput-object p1, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;
invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V
return-void
.end method
# virtual methods
.method public getCount()I
.locals 1
.prologue
.line 162
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->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}, Ljava/util/ArrayList;->size()I
move-result v0
return v0
.end method
.method public getItem(I)Ljava/lang/Object;
.locals 2
.prologue
.line 167
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->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}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_0
.line 168
const/4 v0, 0x0
.line 170
:goto_0
return-object v0
:cond_0
new-instance v1, Ljava/io/File;
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->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, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
move-object v0, v1
goto :goto_0
.end method
.method public getItemId(I)J
.locals 2
.prologue
.line 175
int-to-long v0, p1
return-wide v0
.end method
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.locals 4
.prologue
const/4 v3, 0x0
.line 181
if-nez p2, :cond_1
.line 182
new-instance v1, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$ViewHolder;
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;
invoke-direct {v1, v0, v3}, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$ViewHolder;-><init>(Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$1;)V
.line 183
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4FileScannerActivity;
const v2, 0x7f03006a
invoke-static {v0, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object p2
.line 184
const v0, 0x7f0c0257
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, v1, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$ViewHolder;->fileNameView:Landroid/widget/TextView;
.line 185
invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
.line 189
:goto_0
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->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}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
.line 190
new-instance v2, Ljava/io/File;
iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$JpgAndMp4FileItemAdapter;->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, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 191
invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String;
move-result-object v0
.line 192
iget-object v1, v1, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$ViewHolder;->fileNameView:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 194
:cond_0
return-object p2
.line 187
:cond_1
invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/gallery/JpgAndMp4FileScannerActivity$ViewHolder;
move-object v1, v0
goto :goto_0
.end method