AuthorProfileFragment.smali
.class public Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "AuthorProfileFragment.java"
# instance fields
.field private adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
.field private author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
.field private columns: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 coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
.field public isAllLoaded:Z
.field public isLoading:Z
.field private loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.field private page:I
.field private recyclerView:Landroidx/recyclerview/widget/RecyclerView;
# direct methods
.method public constructor <init>()V
.registers 1
.line 35
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V
return-void
.end method
.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
.registers 1
.line 35
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
return-object p0
.end method
.method static synthetic access$100(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.registers 1
.line 35
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
return-object p0
.end method
.method static synthetic access$200(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
.registers 1
.line 35
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
return-object p0
.end method
.method static synthetic access$300(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Ljava/util/ArrayList;
.registers 1
.line 35
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->columns:Ljava/util/ArrayList;
return-object p0
.end method
.method static synthetic access$408(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)I
.registers 3
.line 35
iget v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->page:I
add-int/lit8 v1, v0, 0x1
iput v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->page:I
return v0
.end method
.method private initViews(Landroid/view/View;)V
.registers 7
const v0, 0x7f09006a
.line 84
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
const v1, 0x7f100125
.line 85
invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 87
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
sget-object v2, Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;->ANIMATION_TYPE_ENTER_FROM_BOTTOM:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
const/4 v3, 0x0
if-ne v1, v2, :cond_20
const v1, 0x7f080116
.line 88
invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
.line 91
:cond_20
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$1;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)V
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 102
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->columns:Ljava/util/ArrayList;
.line 103
new-instance v0, Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
iget-object v4, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->columns:Ljava/util/ArrayList;
invoke-direct {v0, v1, p0, v2, v4}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;-><init>(Lhurriyet/mobil/android/hurriyet/HurriyetPageController;Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;Ltr/com/hurriyet/androidsdk/response/authors/Author;Ljava/util/ArrayList;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
const v0, 0x7f09006e
.line 104
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/AuthorProfileFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.line 106
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->getContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
const/4 v1, 0x1
.line 107
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->setOrientation(I)V
const v2, 0x7f09006f
.line 109
invoke-virtual {p1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroidx/recyclerview/widget/RecyclerView;
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
.line 110
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
.line 111
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
new-instance v0, Lhurriyet/mobil/android/hurriyet/utils/DividerItemDecoration;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v4, 0x7f0800b5
invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v2
invoke-direct {v0, v2}, Lhurriyet/mobil/android/hurriyet/utils/DividerItemDecoration;-><init>(Landroid/graphics/drawable/Drawable;)V
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
.line 112
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
.line 114
iput v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->page:I
.line 115
iput-boolean v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isLoading:Z
.line 116
iput-boolean v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isAllLoaded:Z
.line 118
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadNextColumns()V
return-void
.end method
.method public static newInstance()Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
.registers 1
.line 51
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;-><init>()V
return-object v0
.end method
# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
.registers 3
.line 69
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
const v0, 0x7f0c0055
.line 70
iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I
return-void
.end method
.method public isTabVisible()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public loadNextColumns()V
.registers 4
.line 123
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isAllLoaded:Z
if-nez v0, :cond_1c
.line 125
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->show()V
const/4 v0, 0x1
.line 127
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isLoading:Z
.line 129
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/response/authors/Author;->getUniqueId()Ljava/lang/String;
move-result-object v0
iget v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->page:I
new-instance v2, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;
invoke-direct {v2, p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)V
invoke-static {v0, v1, v2}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->getAuthor(Ljava/lang/String;ILtr/com/hurriyet/androidsdk/callback/AuthorCallback;)Lretrofit2/Call;
:cond_1c
return-void
.end method
.method protected onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V
.registers 5
.line 56
move-object v0, p1
check-cast v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/AuthorProfileFragmentData;
if-eqz v0, :cond_14
.line 58
iget-object v1, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/AuthorProfileFragmentData;->author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
.line 59
iget-object v1, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/AuthorProfileFragmentData;->coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
if-eqz v1, :cond_10
iget-object v0, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/AuthorProfileFragmentData;->coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
goto :goto_12
:cond_10
sget-object v0, Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;->ANIMATION_TYPE_DEFAULT:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
:goto_12
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->coreFragmentAnimation:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
.line 64
:cond_14
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 3
.line 75
invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 76
iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->author:Ltr/com/hurriyet/androidsdk/response/authors/Author;
if-nez p2, :cond_b
.line 77
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->goBackToPreviousPage()V
return-void
.line 80
:cond_b
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->initViews(Landroid/view/View;)V
return-void
.end method