ThemesAdapter.smali
.class public Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$a;
.source "ThemesAdapter.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/recyclerview/widget/RecyclerView$a<",
"Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;",
">;"
}
.end annotation
# instance fields
.field private themes:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$a;-><init>()V
.line 2
iput-object p1, p0, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->themes:Ljava/util/List;
return-void
.end method
# virtual methods
.method public getItemCount()I
.registers 2
.line 1
iget-object v0, p0, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->themes:Ljava/util/List;
if-nez v0, :cond_6
const/4 v0, 0x0
goto :goto_a
:cond_6
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
:goto_a
return v0
.end method
.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$v;I)V
.registers 3
.line 1
check-cast p1, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->onBindViewHolder(Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;I)V
return-void
.end method
.method public onBindViewHolder(Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;I)V
.registers 5
.line 2
iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$v;->itemView:Landroid/view/View;
invoke-static {p1}, Landroidx/databinding/e;->b(Landroid/view/View;)Landroidx/databinding/ViewDataBinding;
move-result-object p1
check-cast p1, Lcom/sandboxol/videosubmit/databinding/VideosubmitItemThemeBinding;
if-eqz p1, :cond_24
.line 3
iget-object v0, p0, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->themes:Ljava/util/List;
if-eqz v0, :cond_24
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_24
.line 4
iget-object v0, p1, Lcom/sandboxol/videosubmit/databinding/VideosubmitItemThemeBinding;->tvTheme:Landroid/widget/TextView;
iget-object v1, p0, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->themes:Ljava/util/List;
invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/lang/CharSequence;
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 5
invoke-virtual {p1}, Landroidx/databinding/ViewDataBinding;->executePendingBindings()V
:cond_24
return-void
.end method
.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$v;
.registers 3
.line 1
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;
move-result-object p1
return-object p1
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;
.registers 5
.line 2
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object p2
invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object p2
sget v0, Lcom/sandboxol/videosubmit/R$layout;->videosubmit_item_theme:I
const/4 v1, 0x0
invoke-static {p2, v0, p1, v1}, Landroidx/databinding/e;->a(Landroid/view/LayoutInflater;ILandroid/view/ViewGroup;Z)Landroidx/databinding/ViewDataBinding;
move-result-object p1
check-cast p1, Lcom/sandboxol/videosubmit/databinding/VideosubmitItemThemeBinding;
.line 3
new-instance p2, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;
invoke-direct {p2, p1}, Lcom/sandboxol/videosubmit/view/activity/ThemesAdapter$ThemesViewHolder;-><init>(Lcom/sandboxol/videosubmit/databinding/VideosubmitItemThemeBinding;)V
return-object p2
.end method