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.
228 lines
6.6 KiB
228 lines
6.6 KiB
.class Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter; |
|
.super Landroid/support/v7/widget/RecyclerView$Adapter; |
|
.source "AttachPopupWindow.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/gallery/AttachPopupWindow; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x2 |
|
name = "AttachRecyclerAdapter" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder; |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private list:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Ljava/lang/String;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field final synthetic this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Lcom/viatech/gallery/AttachPopupWindow;Ljava/util/List;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 221 |
|
iput-object p1, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V |
|
|
|
.line 222 |
|
iput-object p2, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
.line 223 |
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$500(Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;)Ljava/util/List; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 217 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public getItemCount()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 247 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
.line 248 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public onBindViewHolder(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V |
|
.locals 5 |
|
|
|
.prologue |
|
const/high16 v4, 0x42480000 # 50.0f |
|
|
|
.line 233 |
|
instance-of v0, p1, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 234 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
if-ge p2, v0, :cond_0 |
|
|
|
.line 235 |
|
iget-object v0, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->list:Ljava/util/List; |
|
|
|
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/String; |
|
|
|
.line 236 |
|
iget-object v1, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/AttachPopupWindow;->access$300(Lcom/viatech/gallery/AttachPopupWindow;)Landroid/content/Context; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v1}, Lcom/viatech/util/VPaiPicasso;->localPicasso(Landroid/content/Context;)Lcom/squareup/picasso/Picasso; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "file://" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 237 |
|
invoke-virtual {v1, v0}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
.line 238 |
|
invoke-static {v1}, Lcom/viatech/gallery/AttachPopupWindow;->access$300(Lcom/viatech/gallery/AttachPopupWindow;)Landroid/content/Context; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v1, v4}, Lcom/viatech/util/UIUtils;->dp2px(Landroid/content/Context;F)F |
|
|
|
move-result v1 |
|
|
|
float-to-int v1, v1 |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;->this$0:Lcom/viatech/gallery/AttachPopupWindow; |
|
|
|
invoke-static {v2}, Lcom/viatech/gallery/AttachPopupWindow;->access$300(Lcom/viatech/gallery/AttachPopupWindow;)Landroid/content/Context; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {v2, v4}, Lcom/viatech/util/UIUtils;->dp2px(Landroid/content/Context;F)F |
|
|
|
move-result v2 |
|
|
|
float-to-int v2, v2 |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/squareup/picasso/RequestCreator;->resize(II)Lcom/squareup/picasso/RequestCreator; |
|
|
|
move-result-object v0 |
|
|
|
.line 239 |
|
invoke-virtual {v0}, Lcom/squareup/picasso/RequestCreator;->centerCrop()Lcom/squareup/picasso/RequestCreator; |
|
|
|
move-result-object v0 |
|
|
|
check-cast p1, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder; |
|
|
|
iget-object v1, p1, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder;->iv:Landroid/widget/ImageView; |
|
|
|
.line 240 |
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;)V |
|
|
|
.line 243 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 227 |
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f030039 |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
.line 228 |
|
new-instance v1, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder; |
|
|
|
invoke-direct {v1, p0, v0}, Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter$AttachHolder;-><init>(Lcom/viatech/gallery/AttachPopupWindow$AttachRecyclerAdapter;Landroid/view/View;)V |
|
|
|
return-object v1 |
|
.end method
|
|
|