.class Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter; .super Landroid/widget/BaseAdapter; .source "JpgAndMp4DirScannerActivity.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = "JpgAndMp4DirItemAdapter" .end annotation # instance fields .field final synthetic this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; # direct methods .method constructor (Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)V .locals 0 .prologue .line 214 iput-object p1, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-direct {p0}, Landroid/widget/BaseAdapter;->()V return-void .end method # virtual methods .method public getCount()I .locals 1 .prologue .line 218 iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$200(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)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 1 .prologue .line 223 iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$200(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)Ljava/util/ArrayList; move-result-object v0 invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public getItemId(I)J .locals 2 .prologue .line 228 int-to-long v0, p1 return-wide v0 .end method .method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View; .locals 7 .prologue const/4 v3, 0x0 .line 234 if-nez p2, :cond_0 .line 235 new-instance v1, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$ViewHolder; iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-direct {v1, v0, v3}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$ViewHolder;->(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$1;)V .line 236 iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; const v2, 0x7f030069 invoke-static {v0, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View; move-result-object p2 .line 237 const v0, 0x7f0c0255 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/JpgAndMp4DirScannerActivity$ViewHolder;->dirNameView:Landroid/widget/TextView; .line 238 const v0, 0x7f0c0256 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/JpgAndMp4DirScannerActivity$ViewHolder;->dirIncludeFilesNumView:Landroid/widget/TextView; .line 239 invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V move-object v2, v1 .line 243 :goto_0 iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$200(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)Ljava/util/ArrayList; move-result-object v0 invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 if-ge p1, v0, :cond_2 .line 244 iget-object v0, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-static {v0}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$200(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)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/io/File; .line 245 invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String; move-result-object v1 .line 246 invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File; move-result-object v3 invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String; move-result-object v3 .line 247 iget-object v4, v2, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$ViewHolder;->dirNameView:Landroid/widget/TextView; new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;->()V const-string v6, "/" invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 const-string v5, "/" invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {v3, v1}, 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 {v4, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 248 const/4 v1, 0x0 .line 249 iget-object v3, p0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$JpgAndMp4DirItemAdapter;->this$0:Lcom/viatech/gallery/JpgAndMp4DirScannerActivity; invoke-static {v3}, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;->access$100(Lcom/viatech/gallery/JpgAndMp4DirScannerActivity;)Ljava/util/ArrayList; move-result-object v3 invoke-virtual {v3}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator; move-result-object v4 move v3, v1 :goto_1 invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_1 invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/io/File; .line 250 invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File; move-result-object v1 invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; move-result-object v1 invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; move-result-object v5 invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_3 .line 251 add-int/lit8 v1, v3, 0x1 :goto_2 move v3, v1 .line 253 goto :goto_1 .line 241 :cond_0 invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$ViewHolder; move-object v2, v0 goto :goto_0 .line 254 :cond_1 iget-object v0, v2, Lcom/viatech/gallery/JpgAndMp4DirScannerActivity$ViewHolder;->dirIncludeFilesNumView:Landroid/widget/TextView; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)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 256 :cond_2 return-object p2 :cond_3 move v1, v3 goto :goto_2 .end method