SearchAllAuthors.smali

.class public Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "SearchAllAuthors.java"


# instance fields
.field private authorList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/io/Serializable;",
            ">;"
        }
    .end annotation
.end field

.field private mLinearLayoutManager:Landroidx/recyclerview/widget/LinearLayoutManager;

.field mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;
    .annotation runtime Lbutterknife/BindView;
        value = 0x7f090178
    .end annotation
.end field

.field private mSearchAdapter:Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter;


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

    .line 28
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V

    return-void
.end method

.method public static newInstance()Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;
    .registers 1

    .line 43
    new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;

    invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;-><init>()V

    return-object v0
.end method


# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
    .registers 3

    .line 58
    invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V

    const v0, 0x7f0c006f

    .line 59
    iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I

    return-void
.end method

.method protected isTabVisible()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public onBackTVClicked(Landroid/view/View;)V
    .registers 2
    .annotation runtime Lbutterknife/OnClick;
        value = {
            0x7f090177
        }
    .end annotation

    .line 39
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->goBackToPreviousPage()V

    return-void
.end method

.method protected onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V
    .registers 5

    .line 48
    move-object v0, p1

    check-cast v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/SearchAllAuthorsFragmentData;

    if-eqz v0, :cond_11

    .line 50
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->authorList:Ljava/util/List;

    .line 51
    iget-object v0, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/SearchAllAuthorsFragmentData;->authors:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 53
    :cond_11
    invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 6

    .line 64
    invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 65
    new-instance p1, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-direct {p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mLinearLayoutManager:Landroidx/recyclerview/widget/LinearLayoutManager;

    const/4 p2, 0x1

    .line 66
    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V

    .line 67
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mLinearLayoutManager:Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 68
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    new-instance p2, Lhurriyet/mobil/android/hurriyet/utils/DividerItemDecorationLeftPadding;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p2, v0}, Lhurriyet/mobil/android/hurriyet/utils/DividerItemDecorationLeftPadding;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V

    .line 70
    new-instance p1, Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->getContext()Landroid/content/Context;

    move-result-object p2

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->authorList:Ljava/util/List;

    const/4 v2, 0x0

    invoke-direct {p1, p2, v0, v1, v2}, Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter;-><init>(Landroid/content/Context;Lhurriyet/mobil/android/hurriyet/HurriyetPageController;Ljava/util/List;Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SearchAdapterInterface;)V

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mSearchAdapter:Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter;

    .line 71
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SearchAllAuthors;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p2, p1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    return-void
.end method