AuthorProfileFragment$2.smali
.class Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;
.super Ljava/lang/Object;
.source "AuthorProfileFragment.java"
# interfaces
.implements Ltr/com/hurriyet/androidsdk/callback/AuthorCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadNextColumns()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)V
.registers 2
.line 129
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onFailure(Ltr/com/hurriyet/androidsdk/model/ErrorResponse;)V
.registers 3
.line 161
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
move-result-object p1
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V
.line 163
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
const/4 v0, 0x0
iput-boolean v0, p1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isLoading:Z
return-void
.end method
.method public onSuccess(Ljava/util/ArrayList;ILtr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/model/content/Content;",
">;I",
"Ltr/com/hurriyet/androidsdk/response/content/DataLayer;",
")V"
}
.end annotation
.line 134
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
move-result-object v0
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V
.line 136
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v0
if-lez v0, :cond_52
.line 138
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
move-result-object v0
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;->getItemCount()I
move-result v0
const/4 v1, 0x1
sub-int/2addr v0, v1
.line 139
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v2
.line 141
iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->columns:Ljava/util/ArrayList;
invoke-static {v3}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$300(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Ljava/util/ArrayList;
move-result-object v3
invoke-virtual {v3, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
.line 142
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
move-result-object p1
invoke-virtual {p1, v0, v2}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;->notifyItemRangeInserted(II)V
.line 144
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# operator++ for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->page:I
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$408(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)I
.line 146
invoke-static {p3}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.line 147
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->adapter:Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;
move-result-object p1
invoke-virtual {p1, p3}, Lhurriyet/mobil/android/hurriyet/adapters/AuthorProfileAdapter;->setDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.line 149
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
# getter for: Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->columns:Ljava/util/ArrayList;
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->access$300(Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;)Ljava/util/ArrayList;
move-result-object p1
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
if-ne p1, p2, :cond_52
.line 150
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
iput-boolean v1, p1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isAllLoaded:Z
.line 154
:cond_52
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment$2;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;
const/4 p2, 0x0
iput-boolean p2, p1, Lhurriyet/mobil/android/hurriyet/fragments/AuthorProfileFragment;->isLoading:Z
return-void
.end method