PageRecyclerViewBindingAdapters.smali

.class public Lcom/sandboxol/common/binding/adapter/PageRecyclerViewBindingAdapters;
.super Ljava/lang/Object;
.source "PageRecyclerViewBindingAdapters.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static setPageRecyclerView(Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;Lcom/sandboxol/common/widget/rv/IListLayout;Lcom/sandboxol/common/widget/rv/pagerv/PageListModel;Lcom/sandboxol/common/widget/rv/datarv/LayoutManagers$LayoutManagerFactory;ZZZIIZLcom/sandboxol/common/widget/rv/helper/ItemEnterOrExitVisibleHelper$OnScrollStatusListener;)V
    .registers 11

    if-nez p1, :cond_b

    .line 1
    new-instance p1, Lcom/sandboxol/common/widget/rv/pagerv/PageListLayout;

    invoke-direct {p1}, Lcom/sandboxol/common/widget/rv/pagerv/PageListLayout;-><init>()V

    invoke-virtual {p0, p1}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setListLayout(Lcom/sandboxol/common/widget/rv/IListLayout;)V

    goto :goto_e

    .line 2
    :cond_b
    invoke-virtual {p0, p1}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setListLayout(Lcom/sandboxol/common/widget/rv/IListLayout;)V

    :goto_e
    if-eqz p7, :cond_14

    .line 3
    invoke-virtual {p0, p2, p4, p7}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setModel(Lcom/sandboxol/common/widget/rv/pagerv/PageListModel;ZI)V

    goto :goto_17

    .line 4
    :cond_14
    invoke-virtual {p0, p2, p4}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setModel(Lcom/sandboxol/common/widget/rv/pagerv/PageListModel;Z)V

    :goto_17
    if-nez p3, :cond_21

    .line 5
    invoke-static {}, Lcom/sandboxol/common/widget/rv/datarv/LayoutManagers;->linear()Lcom/sandboxol/common/widget/rv/datarv/LayoutManagers$LayoutManagerFactory;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setLayoutFactory(Lcom/sandboxol/common/widget/rv/datarv/LayoutManagers$LayoutManagerFactory;)V

    goto :goto_24

    .line 6
    :cond_21
    invoke-virtual {p0, p3}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setLayoutFactory(Lcom/sandboxol/common/widget/rv/datarv/LayoutManagers$LayoutManagerFactory;)V

    :goto_24
    if-eqz p8, :cond_33

    .line 7
    new-instance p1, Landroidx/recyclerview/widget/StaggeredGridLayoutManager;

    const/4 p2, 0x1

    invoke-direct {p1, p8, p2}, Landroidx/recyclerview/widget/StaggeredGridLayoutManager;-><init>(II)V

    const/4 p2, 0x0

    .line 8
    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/StaggeredGridLayoutManager;->a(I)V

    .line 9
    invoke-virtual {p0, p1}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$i;)V

    :cond_33
    if-eqz p10, :cond_38

    .line 10
    invoke-virtual {p0, p10}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setItemListener(Lcom/sandboxol/common/widget/rv/helper/ItemEnterOrExitVisibleHelper$OnScrollStatusListener;)V

    .line 11
    :cond_38
    invoke-virtual {p0, p5}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->setNestedScrollingEnabled(Z)V

    .line 12
    invoke-virtual {p0, p9}, Lcom/sandboxol/common/widget/rv/pagerv/PageRecyclerView;->disableSetItem(Z)V

    return-void
.end method