ContentDetailFragment$1.smali

.class Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;
.super Ljava/lang/Object;
.source "ContentDetailFragment.java"

# interfaces
.implements Lhurriyet/mobil/android/hurriyet/views/CustomViewPager$OnPageChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
.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/ContentDetailFragment;


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

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

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

    return-void
.end method


# virtual methods
.method public onPageScrollStateChanged(I)V
    .registers 4

    if-eqz p1, :cond_e

    const/4 v0, 0x1

    if-eq p1, v0, :cond_9

    const/4 v1, 0x2

    if-eq p1, v1, :cond_9

    goto :goto_13

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

    iput-boolean v0, p1, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mIsPageBackLocked:Z

    goto :goto_13

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

    const/4 v0, 0x0

    iput-boolean v0, p1, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mIsPageBackLocked:Z

    :goto_13
    return-void
.end method

.method public onPageScrolled(IFI)V
    .registers 4

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

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mIsSlider:Z
    invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Z

    move-result p1

    if-eqz p1, :cond_12

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

    if-nez p3, :cond_e

    const/4 p2, 0x1

    goto :goto_f

    :cond_e
    const/4 p2, 0x0

    :goto_f
    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->setArrowsVisibility(Z)V

    :cond_12
    return-void
.end method

.method public onPageSelected(I)V
    .registers 7

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

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/HApp;->getVideoRemote()Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/VideoPlayerRemoteController;

    move-result-object v0

    if-eqz v0, :cond_17

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

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/HApp;->getVideoRemote()Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/VideoPlayerRemoteController;

    move-result-object v0

    sget-object v1, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/RemoteMessage;->STOP:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/RemoteMessage;

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/VideoPlayerRemoteController;->msgToAllPlayers(Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/RemoteMessage;)V

    .line 206
    :cond_17
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mNextPageChangedActionIsNotSwipe:Z
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$100(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Z

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_3b

    .line 207
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mNextPageChangedActionIsNotSwipe:Z
    invoke-static {v0, v2}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$102(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;Z)Z

    .line 209
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)I

    move-result v3

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

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v4}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)I

    move-result v4

    if-ge v4, p1, :cond_36

    const/4 v4, 0x1

    goto :goto_37

    :cond_36
    const/4 v4, 0x0

    :goto_37
    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->sendPageChangedAction(IZZ)V
    invoke-static {v0, v3, v4, v2}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$300(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;IZZ)V

    goto :goto_4f

    .line 212
    :cond_3b
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)I

    move-result v3

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

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v4}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)I

    move-result v4

    if-ge v4, p1, :cond_4b

    const/4 v4, 0x1

    goto :goto_4c

    :cond_4b
    const/4 v4, 0x0

    :goto_4c
    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->sendPageChangedAction(IZZ)V
    invoke-static {v0, v3, v4, v1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$300(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;IZZ)V

    .line 215
    :goto_4f
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mIsSlider:Z
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Z

    move-result v0

    if-eqz v0, :cond_8c

    .line 216
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mContentPagerDots:Lhurriyet/mobil/android/hurriyet/views/pagerdots/HurriyetPagerDots;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$400(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/pagerdots/HurriyetPagerDots;

    move-result-object v0

    invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/views/pagerdots/HurriyetPagerDots;->selectPosition(I)V

    .line 217
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

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

    move-result-object v0

    if-eqz v0, :cond_87

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

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

    move-result-object v0

    instance-of v0, v0, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;

    if-eqz v0, :cond_87

    .line 218
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

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

    move-result-object v0

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

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

    .line 219
    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->allContentList:Ljava/util/ArrayList;
    invoke-static {v3}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$500(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-static {p1, v3}, Lhurriyet/mobil/android/hurriyet/utils/SliderAdHelper;->convertAllContentPositionToAdFreePosition(ILjava/util/ArrayList;)I

    move-result v3

    .line 218
    invoke-virtual {v0, v3}, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;->setSliderPosition(I)V

    .line 222
    :cond_87
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # invokes: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->sendAdViewAction(I)V
    invoke-static {v0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$600(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;I)V

    .line 225
    :cond_8c
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mIsSlider:Z
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Z

    move-result v0

    if-eqz v0, :cond_e9

    .line 226
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$200(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)I

    move-result v0

    const/4 v3, 0x4

    if-ge v0, p1, :cond_cb

    .line 227
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->contentPager:Lhurriyet/mobil/android/hurriyet/views/CustomViewPager;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$700(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/CustomViewPager;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/CustomViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/viewpager/widget/PagerAdapter;->getCount()I

    move-result v0

    sub-int/2addr v0, v1

    if-lt p1, v0, :cond_b8

    .line 228
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->nextArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$800(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_c1

    .line 230
    :cond_b8
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->nextArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$800(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

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

    .line 232
    :goto_c1
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->prevArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$900(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

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

    goto :goto_e9

    :cond_cb
    if-gtz p1, :cond_d7

    .line 235
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->prevArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$900(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_e0

    .line 237
    :cond_d7
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->prevArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$900(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

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

    .line 239
    :goto_e0
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # getter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->nextArrow:Landroid/widget/ImageView;
    invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$800(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;)Landroid/widget/ImageView;

    move-result-object v0

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

    .line 244
    :cond_e9
    :goto_e9
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment$1;->this$0:Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;

    # setter for: Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->mSelectedPage:I
    invoke-static {v0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->access$202(Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;I)I

    return-void
.end method