LiveDataRecyclerView.smali

.class public final Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;
.super Landroid/widget/FrameLayout;
.source "LiveDataRecyclerView.kt"


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;

.field private fetchData:Lkotlin/jvm/a/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/jvm/a/a<",
            "Lkotlin/n;",
            ">;"
        }
    .end annotation
.end field

.field private iLoadingView:Lcom/sandboxol/common/widget/ILoadingView;

.field private final recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 8

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x6

    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    invoke-direct/range {v0 .. v5}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/f;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 9

    const/4 v3, 0x0

    const/4 v4, 0x4

    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    invoke-direct/range {v0 .. v5}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/f;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    .line 2
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 3
    sget p2, Lcom/sandboxol/editor/R$layout;->livedata_recyclerview:I

    invoke-static {p1, p2, p0}, Landroid/widget/FrameLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 4
    sget p1, Lcom/sandboxol/editor/R$id;->recyclerview_livedata:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string p2, "findViewById(R.id.recyclerview_livedata)"

    invoke-static {p1, p2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p1, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;

    .line 5
    sget p1, Lcom/sandboxol/editor/R$id;->swipe_refresh:I

    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    const/4 p2, 0x0

    .line 6
    invoke-virtual {p1, p2}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setEnableLoadMore(Z)Lcom/scwang/smartrefresh/layout/a/j;

    .line 7
    new-instance p2, Lcom/sandboxol/editor/view/widget/a;

    invoke-direct {p2, p0, p1}, Lcom/sandboxol/editor/view/widget/a;-><init>(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;)V

    invoke-virtual {p1, p2}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setOnRefreshListener(Lcom/scwang/smartrefresh/layout/b/d;)Lcom/scwang/smartrefresh/layout/a/j;

    return-void
.end method

.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/f;)V
    .registers 6

    and-int/lit8 p5, p4, 0x2

    if-eqz p5, :cond_5

    const/4 p2, 0x0

    :cond_5
    and-int/lit8 p4, p4, 0x4

    if-eqz p4, :cond_a

    const/4 p3, 0x0

    .line 1
    :cond_a
    invoke-direct {p0, p1, p2, p3}, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public static final synthetic access$getFetchData$p(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;)Lkotlin/jvm/a/a;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->fetchData:Lkotlin/jvm/a/a;

    return-object p0
.end method

.method public static final synthetic access$getRecyclerViewLiveData$p(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;)Landroidx/recyclerview/widget/RecyclerView;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;

    return-object p0
.end method

.method public static final synthetic access$setFetchData$p(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;Lkotlin/jvm/a/a;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->fetchData:Lkotlin/jvm/a/a;

    return-void
.end method

.method public static synthetic set$default(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;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;ILjava/lang/Object;)V
    .registers 16

    and-int/lit8 p7, p7, 0x20

    if-eqz p7, :cond_8

    .line 1
    invoke-static {}, Lkotlin/collections/l;->a()Ljava/util/List;

    move-result-object p6

    :cond_8
    move-object v6, p6

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    invoke-virtual/range {v0 .. v6}, 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

    return-void
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .registers 2

    iget-object v0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->_$_findViewCache:Ljava/util/HashMap;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_7
    return-void
.end method

.method public _$_findCachedViewById(I)Landroid/view/View;
    .registers 4

    iget-object v0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->_$_findViewCache:Ljava/util/HashMap;

    if-nez v0, :cond_b

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->_$_findViewCache:Ljava/util/HashMap;

    :cond_b
    iget-object v0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    if-nez v0, :cond_26

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_26
    return-object v0
.end method

.method public final getRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->recyclerViewLiveData:Landroidx/recyclerview/widget/RecyclerView;

    return-object v0
.end method

.method public final 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
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Landroidx/lifecycle/p<",
            "Ljava/util/List<",
            "TT;>;>;",
            "Landroidx/fragment/app/Fragment;",
            "Lcom/sandboxol/common/widget/ILoadingView;",
            "Lkotlin/jvm/a/a<",
            "Lkotlin/n;",
            ">;",
            "Lcom/sandboxol/editor/view/fragment/testcenter/a<",
            "TT;>;",
            "Ljava/util/List<",
            "+",
            "Landroid/view/View;",
            ">;)V"
        }
    .end annotation

    const-string v0, "mutableLiveData"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "fragment"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "iLoadingView"

    invoke-static {p3, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "fetchData"

    invoke-static {p4, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "adapter"

    invoke-static {p5, v0}, Lkotlin/jvm/internal/i;->c(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1
    iput-object p3, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->iLoadingView:Lcom/sandboxol/common/widget/ILoadingView;

    .line 2
    iput-object p4, p0, Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;->fetchData:Lkotlin/jvm/a/a;

    .line 3
    new-instance p4, Lcom/sandboxol/editor/view/widget/b;

    invoke-direct {p4, p0, p3, p6, p5}, Lcom/sandboxol/editor/view/widget/b;-><init>(Lcom/sandboxol/editor/view/widget/LiveDataRecyclerView;Lcom/sandboxol/common/widget/ILoadingView;Ljava/util/List;Lcom/sandboxol/editor/view/fragment/testcenter/a;)V

    invoke-virtual {p1, p2, p4}, Landroidx/lifecycle/LiveData;->a(Landroidx/lifecycle/k;Landroidx/lifecycle/q;)V

    return-void
.end method