AuthorsFragment.smali

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


# static fields
.field private static IS_NO_CONNECTION_SHOWED:Z = false

.field public static final TAG:Ljava/lang/String; = "AuthorsFragment"


# instance fields
.field private appSpeedPageLoadTimer:J

.field private authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

.field private authorsDataList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lhurriyet/mobil/android/hurriyet/model/AuthorsDataItem;",
            ">;"
        }
    .end annotation
.end field

.field private authorsList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Ltr/com/hurriyet/androidsdk/response/authors/Author;",
            ">;"
        }
    .end annotation
.end field

.field private columnsList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Ltr/com/hurriyet/androidsdk/model/content/Content;",
            ">;"
        }
    .end annotation
.end field

.field private dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

.field private loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

.field private onClickListener:Landroid/view/View$OnClickListener;

.field private recyclerView:Landroidx/recyclerview/widget/RecyclerView;

.field private scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;

.field private viewNoConnection:Landroid/view/View;


# direct methods
.method static constructor <clinit>()V
    .registers 0

    return-void
.end method

.method public constructor <init>()V
    .registers 3

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

    const-wide/16 v0, 0x0

    .line 60
    iput-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->appSpeedPageLoadTimer:J

    .line 119
    new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$1;

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

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->onClickListener:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)Landroid/view/View;
    .registers 1

    .line 44
    iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    return-object p0
.end method

.method static synthetic access$102(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .registers 2

    .line 44
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    return-object p1
.end method

.method static synthetic access$202(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .registers 2

    .line 44
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;

    return-object p1
.end method

.method static synthetic access$302(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
    .registers 2

    .line 44
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    return-object p1
.end method

.method static synthetic access$400(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
    .registers 1

    .line 44
    iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    return-object p0
.end method

.method static synthetic access$500(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)V
    .registers 1

    .line 44
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->onResponseReceived()V

    return-void
.end method

.method private findViews(Landroid/view/View;)V
    .registers 3

    const v0, 0x7f090070

    .line 82
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    const v0, 0x7f090072

    .line 83
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

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

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

    const v0, 0x7f090071

    .line 84
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    return-void
.end method

.method private initViews()V
    .registers 6

    .line 88
    new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

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

    const/4 v1, 0x1

    .line 89
    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V

    .line 90
    iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

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

    .line 92
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 94
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetHelper;->checkInternetConnection()Z

    move-result v0

    if-nez v0, :cond_2c

    sget-boolean v0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->IS_NO_CONNECTION_SHOWED:Z

    if-nez v0, :cond_2c

    .line 95
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 96
    sput-boolean v1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->IS_NO_CONNECTION_SHOWED:Z

    goto :goto_33

    .line 98
    :cond_2c
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 101
    :goto_33
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetHelper;->checkInternetConnection()Z

    move-result v0

    const/4 v2, 0x0

    if-eqz v0, :cond_3e

    .line 102
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadContent()V

    goto :goto_4f

    .line 104
    :cond_3e
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getOfflineAuthors()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_4f

    .line 106
    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    .line 107
    invoke-static {v0, v2}, Lhurriyet/mobil/android/hurriyet/model/AuthorsDataItem;->generateListWith(Ljava/util/ArrayList;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsDataList:Ljava/util/ArrayList;

    .line 108
    invoke-direct {p0, v2, v1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->initializeAdapter(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Z)V

    .line 112
    :cond_4f
    :goto_4f
    new-instance v0, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

    const v3, 0x7f10006d

    .line 115
    invoke-static {v3}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v3

    const v4, 0x7f10010a

    .line 116
    invoke-static {v4}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v1, v2, v3, v4}, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;-><init>(Landroidx/recyclerview/widget/RecyclerView;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Ljava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;

    return-void
.end method

.method private initializeAdapter(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Z)V
    .registers 10

    .line 187
    new-instance v6, Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

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

    iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsDataList:Ljava/util/ArrayList;

    iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    move-object v0, v6

    move-object v4, p0

    move v5, p2

    invoke-direct/range {v0 .. v5}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;-><init>(Lhurriyet/mobil/android/hurriyet/HurriyetPageController;Ljava/util/ArrayList;Ljava/util/ArrayList;Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;Z)V

    iput-object v6, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

    if-eqz p1, :cond_15

    .line 189
    invoke-virtual {v6, p1}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;->setDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V

    .line 191
    :cond_15
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

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

    .line 192
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;->loadAds()V

    return-void
.end method

.method private loadContent()V
    .registers 3

    .line 129
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    if-eqz v0, :cond_1c

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1c

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;

    if-eqz v0, :cond_1c

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1c

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    if-eqz v0, :cond_1c

    .line 131
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->onResponseReceived()V

    return-void

    .line 134
    :cond_1c
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->show()V

    .line 135
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getDeviceID()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;

    invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)V

    invoke-static {v0, v1}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->getAuthors(Ljava/lang/String;Ltr/com/hurriyet/androidsdk/callback/AuthorsCallback;)Lretrofit2/Call;

    move-result-object v0

    invoke-virtual {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->addRequestCall(Lretrofit2/Call;)V

    return-void
.end method

.method public static newInstance()Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;
    .registers 3

    .line 63
    new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

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

    .line 64
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, v0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->appSpeedPageLoadTimer:J

    return-object v0
.end method

.method private onResponseReceived()V
    .registers 3

    .line 162
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_65

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    if-eqz v0, :cond_65

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x1

    if-lt v0, v1, :cond_65

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;

    if-eqz v0, :cond_65

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v0, v1, :cond_1c

    goto :goto_65

    .line 165
    :cond_1c
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    if-eqz v0, :cond_2a

    .line 166
    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;

    invoke-virtual {v1, v0}, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;->setDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V

    .line 167
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V

    :cond_2a
    const/4 v0, 0x0

    .line 172
    sget-boolean v1, Lhurriyet/mobil/android/hurriyet/HConstants;->IS_AD_ENABLED:Z

    if-eqz v1, :cond_3e

    .line 173
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getAppContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "101"

    invoke-static {v0, v1}, Lcom/appcore/clientdata/ClientData;->loadData(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    .line 174
    invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->useAndRemoveInterstitialAd(Ljava/util/ArrayList;)V

    .line 176
    :cond_3e
    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    invoke-static {v1, v0}, Lhurriyet/mobil/android/hurriyet/model/AuthorsDataItem;->generateListWith(Ljava/util/ArrayList;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsDataList:Ljava/util/ArrayList;

    .line 177
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;

    move-result-object v0

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/HApp;->setAllAuthors(Ljava/util/ArrayList;)V

    .line 179
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_60

    .line 180
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->initializeAdapter(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Z)V

    .line 181
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->sendAppSpeedEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V

    .line 183
    :cond_60
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V

    :cond_65
    :goto_65
    return-void
.end method

.method private sendAppSpeedEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
    .registers 7

    .line 243
    iget-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->appSpeedPageLoadTimer:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_21

    if-eqz p1, :cond_21

    const v0, 0x7f100108

    .line 245
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v0

    iget-object p1, p1, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;

    .line 247
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iget-wide v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->appSpeedPageLoadTimer:J

    sub-long/2addr v1, v3

    .line 244
    invoke-static {v0, p1, v1, v2}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logPageLoadTime(Ljava/lang/String;Ljava/lang/String;J)V

    const-wide/16 v0, -0x1

    .line 248
    iput-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->appSpeedPageLoadTimer:J

    :cond_21
    return-void
.end method

.method private useAndRemoveInterstitialAd(Ljava/util/ArrayList;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Ltr/com/hurriyet/androidsdk/model/content/AdFeed;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_3

    return-void

    .line 208
    :cond_3
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;->getMaInterstitialAdHelper()Lhurriyet/mobil/android/hurriyet/features/ads/MaInterstitialAdHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/ads/MaInterstitialAdHelper;->removeAd()V

    .line 209
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_16
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5a

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;

    .line 212
    invoke-virtual {v3}, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;->getAdType()Ltr/com/hurriyet/androidsdk/model/content/AdType;

    move-result-object v4

    sget-object v5, Ltr/com/hurriyet/androidsdk/model/content/AdType;->INTERSTITIAL:Ltr/com/hurriyet/androidsdk/model/content/AdType;

    if-ne v4, v5, :cond_57

    .line 216
    new-instance v0, Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;

    invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;-><init>()V

    .line 217
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getUserId()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;->mHurPassID:Ljava/lang/String;

    const-string v1, "1"

    .line 218
    iput-object v1, v0, Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;->mContentID:Ljava/lang/String;

    const-string v1, "yazarlar"

    .line 219
    iput-object v1, v0, Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;->mCategoryName:Ljava/lang/String;

    .line 221
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    check-cast v1, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;

    invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;->getMaInterstitialAdHelper()Lhurriyet/mobil/android/hurriyet/features/ads/MaInterstitialAdHelper;

    move-result-object v1

    const-class v4, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;

    invoke-virtual {v4}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$3;

    invoke-direct {v5, p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment$3;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;)V

    invoke-virtual {v1, v3, v4, v0, v5}, Lhurriyet/mobil/android/hurriyet/features/ads/MaInterstitialAdHelper;->loadAdDelayed(Ltr/com/hurriyet/androidsdk/model/content/AdFeed;Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetInterstitialAdListener;)V

    const/4 v1, 0x1

    goto :goto_5a

    :cond_57
    add-int/lit8 v2, v2, 0x1

    goto :goto_16

    :cond_5a
    :goto_5a
    if-eqz v1, :cond_5f

    .line 238
    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    :cond_5f
    return-void
.end method


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

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

    const v0, 0x7f0c0056

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

    return-void
.end method

.method public isTabVisible()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public onDestroy()V
    .registers 3

    .line 259
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

    const/4 v1, 0x0

    if-eqz v0, :cond_a

    .line 260
    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;->onDestroy()V

    .line 261
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorsAdapter;

    .line 263
    :cond_a
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

    .line 264
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    .line 265
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->viewNoConnection:Landroid/view/View;

    .line 266
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    .line 267
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsList:Ljava/util/ArrayList;

    .line 268
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->columnsList:Ljava/util/ArrayList;

    .line 269
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->authorsDataList:Ljava/util/ArrayList;

    .line 270
    iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;

    .line 271
    invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onDestroy()V

    return-void
.end method

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

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

    .line 77
    invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->findViews(Landroid/view/View;)V

    .line 78
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->initViews()V

    return-void
.end method

.method public scrollToTop()V
    .registers 3

    .line 196
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorsFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v0, :cond_8

    const/4 v1, 0x0

    .line 197
    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollToPosition(I)V

    :cond_8
    return-void
.end method