b.smali
.class final Lcom/sandboxol/editor/view/widget/b;
.super Ljava/lang/Object;
.source "LiveDataRecyclerView.kt"
# interfaces
.implements Landroidx/lifecycle/q;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->set(Landroidx/lifecycle/p;Landroidx/fragment/app/Fragment;Lcom/sandboxol/common/widget/ILoadingView;Lkotlin/jvm/a/a;Lcom/sandboxol/editor/view/fragment/testcenter/a;Ljava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/lifecycle/q<",
"Ljava/util/List<",
"+TT;>;>;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;
.field final synthetic b:Lcom/sandboxol/common/widget/ILoadingView;
.field final synthetic c:Ljava/util/List;
.field final synthetic d:Lcom/sandboxol/editor/view/fragment/testcenter/a;
# direct methods
.method constructor <init>(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;Lcom/sandboxol/common/widget/ILoadingView;Ljava/util/List;Lcom/sandboxol/editor/view/fragment/testcenter/a;)V
.registers 5
iput-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->a:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;
iput-object p2, p0, Lcom/sandboxol/editor/view/widget/b;->b:Lcom/sandboxol/common/widget/ILoadingView;
iput-object p3, p0, Lcom/sandboxol/editor/view/widget/b;->c:Ljava/util/List;
iput-object p4, p0, Lcom/sandboxol/editor/view/widget/b;->d:Lcom/sandboxol/editor/view/fragment/testcenter/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Ljava/util/List;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+TT;>;)V"
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result v0
if-eqz v0, :cond_2e
.line 2
iget-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->b:Lcom/sandboxol/common/widget/ILoadingView;
invoke-interface {p1}, Lcom/sandboxol/common/widget/ILoadingView;->finishEmpty()V
.line 3
iget-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->a:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;
# getter for: Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;
invoke-static {p1}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->access$getRecyclerViewLiveData$p(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;)Landroidx/recyclerview/widget/RecyclerView;
move-result-object p1
const/16 v0, 0x8
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V
.line 4
iget-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->c:Ljava/util/List;
if-eqz p1, :cond_5f
.line 5
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_1e
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_5f
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/View;
.line 6
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
goto :goto_1e
.line 7
:cond_2e
iget-object v0, p0, Lcom/sandboxol/editor/view/widget/b;->b:Lcom/sandboxol/common/widget/ILoadingView;
invoke-interface {v0}, Lcom/sandboxol/common/widget/ILoadingView;->finishSuccess()V
.line 8
iget-object v0, p0, Lcom/sandboxol/editor/view/widget/b;->d:Lcom/sandboxol/editor/view/fragment/testcenter/a;
const-string v1, "it"
invoke-static {p1, v1}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0, p1}, Lcom/sandboxol/editor/view/fragment/testcenter/a;->a(Ljava/util/List;)V
.line 9
iget-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->a:Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;
# getter for: Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;
invoke-static {p1}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->access$getRecyclerViewLiveData$p(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;)Landroidx/recyclerview/widget/RecyclerView;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V
.line 10
iget-object p1, p0, Lcom/sandboxol/editor/view/widget/b;->c:Ljava/util/List;
if-eqz p1, :cond_5f
.line 11
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_4f
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_5f
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/View;
.line 12
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
goto :goto_4f
:cond_5f
return-void
.end method
.method public bridge synthetic c(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/sandboxol/editor/view/widget/b;->a(Ljava/util/List;)V
return-void
.end method