SliderPhotoGalleryV1Fragment$1.smali

.class Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;
.super Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
.source "SliderPhotoGalleryV1Fragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field tempPosition:I

.field final synthetic this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;


# direct methods
.method constructor <init>(Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;)V
    .registers 2

    .line 132
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;-><init>()V

    const/4 p1, 0x0

    .line 139
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->tempPosition:I

    return-void
.end method


# virtual methods
.method public onScrollStateChanged(Landroidx/recyclerview/widget/RecyclerView;I)V
    .registers 3

    .line 136
    invoke-super {p0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;->onScrollStateChanged(Landroidx/recyclerview/widget/RecyclerView;I)V

    return-void
.end method

.method public onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V
    .registers 5

    .line 143
    invoke-super {p0, p1, p2, p3}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;->onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V

    .line 145
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->mDetailContentLLM:Landroidx/recyclerview/widget/LinearLayoutManager;
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;)Landroidx/recyclerview/widget/LinearLayoutManager;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleItemPosition()I

    move-result p1

    const/4 p2, -0x1

    if-eq p1, p2, :cond_73

    .line 149
    iget p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->tempPosition:I

    if-eq p1, p2, :cond_73

    .line 150
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->tempPosition:I

    .line 152
    :try_start_16
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    iget-object p1, p1, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->contentItems:Ljava/util/List;

    iget p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->tempPosition:I

    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ltr/com/hurriyet/androidsdk/model/content/Feed;

    .line 153
    instance-of p2, p1, Lhurriyet/mobil/android/hurriyet/model/BaseEntity;

    if-eqz p2, :cond_73

    .line 154
    instance-of p2, p1, Lhurriyet/mobil/android/hurriyet/model/GalleryDetailImageDTO;

    if-eqz p2, :cond_73

    .line 155
    move-object p2, p1

    check-cast p2, Lhurriyet/mobil/android/hurriyet/model/GalleryDetailImageDTO;

    invoke-virtual {p2}, Lhurriyet/mobil/android/hurriyet/model/GalleryDetailImageDTO;->getSharePosition()I

    move-result p2

    if-lez p3, :cond_37

    const/4 p3, 0x1

    if-ne p2, p3, :cond_37

    return-void

    .line 163
    :cond_37
    check-cast p1, Lhurriyet/mobil/android/hurriyet/model/GalleryDetailImageDTO;

    invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/model/GalleryDetailImageDTO;->getDesc()Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_73

    .line 165
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    iget-object p3, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->mContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
    invoke-static {p3}, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;)Ltr/com/hurriyet/androidsdk/model/content/Content;

    move-result-object p3

    iget-object p3, p3, Ltr/com/hurriyet/androidsdk/model/content/Content;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->setTempDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
    invoke-static {p1, p3}, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)Ltr/com/hurriyet/androidsdk/response/content/DataLayer;

    move-result-object p1

    .line 166
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->mContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/SliderPhotoGalleryV1Fragment;)Ltr/com/hurriyet/androidsdk/model/content/Content;

    move-result-object v0

    iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "/"

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    const-string p3, "RecyclerView Item"

    .line 167
    invoke-static {p3, p2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 168
    iput-object p2, p1, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;

    .line 169
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
    :try_end_73
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_73} :catch_73

    :catch_73
    :cond_73
    return-void
.end method