.class public final Lcom/lytefast/flexinput/adapters/FileListAdapter$b; .super Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .source "FileListAdapter.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/lytefast/flexinput/adapters/FileListAdapter; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "b" .end annotation # instance fields .field private final bcK:Landroid/animation/AnimatorSet; .field private final bcL:Landroid/animation/AnimatorSet; .field bcM:Lcom/facebook/drawee/view/SimpleDraweeView; .field bcN:Landroid/widget/ImageView; .field bcO:Landroid/widget/TextView; .field bcP:Landroid/widget/TextView; .field bcQ:Lcom/lytefast/flexinput/model/Attachment; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/lytefast/flexinput/model/Attachment<", "+", "Ljava/io/File;", ">;" } .end annotation .end field .field final synthetic bcR:Lcom/lytefast/flexinput/adapters/FileListAdapter; # direct methods .method public constructor (Lcom/lytefast/flexinput/adapters/FileListAdapter;Landroid/view/View;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/view/View;", ")V" } .end annotation const-string v0, "itemView" invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcR:Lcom/lytefast/flexinput/adapters/FileListAdapter; invoke-direct {p0, p2}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->(Landroid/view/View;)V sget p1, Lcom/lytefast/flexinput/R$e;->thumb_iv:I invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p1 const-string v0, "itemView.findViewById(R.id.thumb_iv)" invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Lcom/facebook/drawee/view/SimpleDraweeView; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; sget p1, Lcom/lytefast/flexinput/R$e;->type_iv:I invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p1 const-string v0, "itemView.findViewById(R.id.type_iv)" invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Landroid/widget/ImageView; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcN:Landroid/widget/ImageView; sget p1, Lcom/lytefast/flexinput/R$e;->file_name_tv:I invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p1 const-string v0, "itemView.findViewById(R.id.file_name_tv)" invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Landroid/widget/TextView; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcO:Landroid/widget/TextView; sget p1, Lcom/lytefast/flexinput/R$e;->file_subtitle_tv:I invoke-virtual {p2, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p1 const-string v0, "itemView.findViewById(R.id.file_subtitle_tv)" invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Landroid/widget/TextView; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcP:Landroid/widget/TextView; iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->itemView:Landroid/view/View; const-string v0, "this.itemView" invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 invoke-virtual {p1, v0}, Landroid/view/View;->setClickable(Z)V iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->itemView:Landroid/view/View; new-instance v0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$1; invoke-direct {v0, p0}, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$1;->(Lcom/lytefast/flexinput/adapters/FileListAdapter$b;)V check-cast v0, Landroid/view/View$OnClickListener; invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object p1 sget v0, Lcom/lytefast/flexinput/R$a;->selection_shrink:I invoke-static {p1, v0}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator; move-result-object p1 const-string v0, "null cannot be cast to non-null type android.animation.AnimatorSet" if-eqz p1, :cond_1 check-cast p1, Landroid/animation/AnimatorSet; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcK:Landroid/animation/AnimatorSet; iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcK:Landroid/animation/AnimatorSet; iget-object v1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-virtual {p1, v1}, Landroid/animation/AnimatorSet;->setTarget(Ljava/lang/Object;)V invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object p1 sget p2, Lcom/lytefast/flexinput/R$a;->selection_grow:I invoke-static {p1, p2}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator; move-result-object p1 if-eqz p1, :cond_0 check-cast p1, Landroid/animation/AnimatorSet; iput-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcL:Landroid/animation/AnimatorSet; iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcL:Landroid/animation/AnimatorSet; iget-object p2, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-virtual {p1, p2}, Landroid/animation/AnimatorSet;->setTarget(Ljava/lang/Object;)V return-void :cond_0 new-instance p1, Lkotlin/r; invoke-direct {p1, v0}, Lkotlin/r;->(Ljava/lang/String;)V throw p1 :cond_1 new-instance p1, Lkotlin/r; invoke-direct {p1, v0}, Lkotlin/r;->(Ljava/lang/String;)V throw p1 .end method .method public static final synthetic a(Lcom/lytefast/flexinput/adapters/FileListAdapter$b;)Lcom/lytefast/flexinput/model/Attachment; .locals 0 iget-object p0, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcQ:Lcom/lytefast/flexinput/model/Attachment; return-object p0 .end method # virtual methods .method public final d(ZZ)V .locals 2 iget-object v0, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->itemView:Landroid/view/View; const-string v1, "itemView" invoke-static {v0, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v0, p1}, Landroid/view/View;->setSelected(Z)V new-instance v0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$a; invoke-direct {v0, p2}, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$a;->(Z)V const/high16 p2, 0x3f800000 # 1.0f if-eqz p1, :cond_0 iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-virtual {p1}, Lcom/facebook/drawee/view/SimpleDraweeView;->getScaleX()F move-result p1 cmpg-float p1, p1, p2 if-nez p1, :cond_1 iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcK:Landroid/animation/AnimatorSet; invoke-virtual {v0, p1}, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$a;->a(Landroid/animation/AnimatorSet;)V return-void :cond_0 iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-virtual {p1}, Lcom/facebook/drawee/view/SimpleDraweeView;->getScaleX()F move-result p1 cmpg-float p1, p1, p2 if-eqz p1, :cond_1 iget-object p1, p0, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcL:Landroid/animation/AnimatorSet; invoke-virtual {v0, p1}, Lcom/lytefast/flexinput/adapters/FileListAdapter$b$a;->a(Landroid/animation/AnimatorSet;)V :cond_1 return-void .end method .method final v(Ljava/io/File;)V .locals 16 move-object/from16 v1, p0 iget-object v0, v1, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcR:Lcom/lytefast/flexinput/adapters/FileListAdapter; invoke-static {v0}, Lcom/lytefast/flexinput/adapters/FileListAdapter;->b(Lcom/lytefast/flexinput/adapters/FileListAdapter;)Landroid/content/ContentResolver; move-result-object v2 sget-object v3, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri; const/4 v0, 0x2 new-array v4, v0, [Ljava/lang/String; const-string v0, "_id" const/4 v8, 0x0 aput-object v0, v4, v8 const/4 v9, 0x1 const-string v5, "mini_thumb_magic" aput-object v5, v4, v9 new-array v6, v9, [Ljava/lang/String; invoke-virtual/range {p1 .. p1}, Ljava/io/File;->getPath()Ljava/lang/String; move-result-object v5 aput-object v5, v6, v8 const-string v5, "_data=?" const/4 v7, 0x0 invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor; move-result-object v2 if-eqz v2, :cond_4 check-cast v2, Ljava/io/Closeable; :try_start_0 move-object v3, v2 check-cast v3, Landroid/database/Cursor; invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z move-result v4 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_2 const/4 v5, 0x0 if-nez v4, :cond_0 invoke-static {v2, v5}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :cond_0 :try_start_1 invoke-interface {v3, v8}, Landroid/database/Cursor;->getLong(I)J move-result-wide v6 invoke-interface {v3, v9}, Landroid/database/Cursor;->getLong(I)J move-result-wide v3 const-wide/16 v10, 0x0 cmp-long v12, v3, v10 if-nez v12, :cond_1 iget-object v3, v1, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcR:Lcom/lytefast/flexinput/adapters/FileListAdapter; invoke-static {v3}, Lcom/lytefast/flexinput/adapters/FileListAdapter;->b(Lcom/lytefast/flexinput/adapters/FileListAdapter;)Landroid/content/ContentResolver; move-result-object v3 invoke-static {v3, v6, v7, v9, v5}, Landroid/provider/MediaStore$Images$Thumbnails;->getThumbnail(Landroid/content/ContentResolver;JILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap; move-result-object v3 if-eqz v3, :cond_1 invoke-virtual {v3}, Landroid/graphics/Bitmap;->recycle()V :cond_1 iget-object v3, v1, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcR:Lcom/lytefast/flexinput/adapters/FileListAdapter; invoke-static {v3}, Lcom/lytefast/flexinput/adapters/FileListAdapter;->b(Lcom/lytefast/flexinput/adapters/FileListAdapter;)Landroid/content/ContentResolver; move-result-object v10 sget-object v11, Landroid/provider/MediaStore$Images$Thumbnails;->EXTERNAL_CONTENT_URI:Landroid/net/Uri; new-array v12, v9, [Ljava/lang/String; aput-object v0, v12, v8 const-string v13, "image_id=?" new-array v14, v9, [Ljava/lang/String; invoke-static {v6, v7}, Ljava/lang/Long;->toString(J)Ljava/lang/String; move-result-object v0 aput-object v0, v14, v8 const/4 v15, 0x0 invoke-virtual/range {v10 .. v15}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor; move-result-object v0 if-eqz v0, :cond_3 move-object v3, v0 check-cast v3, Ljava/io/Closeable; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_2 :try_start_2 move-object v0, v3 check-cast v0, Landroid/database/Cursor; invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z move-result v4 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 if-nez v4, :cond_2 :try_start_3 invoke-static {v3, v5}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_2 invoke-static {v2, v5}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :cond_2 :try_start_4 invoke-interface {v0, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String; move-result-object v0 iget-object v4, v1, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-static {}, Lcom/facebook/drawee/backends/pipeline/c;->gz()Lcom/facebook/drawee/backends/pipeline/e; move-result-object v6 iget-object v7, v1, Lcom/lytefast/flexinput/adapters/FileListAdapter$b;->bcM:Lcom/facebook/drawee/view/SimpleDraweeView; invoke-virtual {v7}, Lcom/facebook/drawee/view/SimpleDraweeView;->getController()Lcom/facebook/drawee/d/a; move-result-object v7 invoke-virtual {v6, v7}, Lcom/facebook/drawee/backends/pipeline/e;->a(Lcom/facebook/drawee/d/a;)Lcom/facebook/drawee/controller/a; move-result-object v6 check-cast v6, Lcom/facebook/drawee/backends/pipeline/e; sget-object v7, Landroid/provider/MediaStore$Images$Thumbnails;->EXTERNAL_CONTENT_URI:Landroid/net/Uri; invoke-static {v7, v0}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri; move-result-object v0 invoke-virtual {v6, v0}, Lcom/facebook/drawee/backends/pipeline/e;->m(Landroid/net/Uri;)Lcom/facebook/drawee/backends/pipeline/e; move-result-object v0 invoke-virtual {v0}, Lcom/facebook/drawee/backends/pipeline/e;->gV()Lcom/facebook/drawee/controller/a; move-result-object v0 check-cast v0, Lcom/facebook/drawee/backends/pipeline/e; invoke-virtual {v0}, Lcom/facebook/drawee/backends/pipeline/e;->gW()Lcom/facebook/drawee/controller/AbstractDraweeController; move-result-object v0 check-cast v0, Lcom/facebook/drawee/d/a; invoke-virtual {v4, v0}, Lcom/facebook/drawee/view/SimpleDraweeView;->setController(Lcom/facebook/drawee/d/a;)V sget-object v0, Lkotlin/Unit;->bmG:Lkotlin/Unit; :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_0 :try_start_5 invoke-static {v3, v5}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_2 goto :goto_0 :catchall_0 move-exception v0 move-object v4, v0 :try_start_6 throw v4 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_1 :catchall_1 move-exception v0 move-object v5, v0 :try_start_7 invoke-static {v3, v4}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v5 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_2 :cond_3 :goto_0 invoke-static {v2, v5}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V return-void :catchall_2 move-exception v0 move-object v3, v0 :try_start_8 throw v3 :try_end_8 .catchall {:try_start_8 .. :try_end_8} :catchall_3 :catchall_3 move-exception v0 move-object v4, v0 invoke-static {v2, v3}, Lkotlin/d/a;->a(Ljava/io/Closeable;Ljava/lang/Throwable;)V throw v4 :cond_4 return-void .end method