NewsDetailFragment.smali
.class public Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "NewsDetailFragment.java"
# interfaces
.implements Landroid/speech/tts/TextToSpeech$OnInitListener;
# static fields
.field private static final ANIMATION_DELAY:I = 0x32
.field private static final ARTICLE:Ljava/lang/String; = "article"
.field private static final IS_INIT_POSITION:Ljava/lang/String; = "is_init_position"
.field private static final IS_SLIDER:Ljava/lang/String; = "is_slider"
.field private static final LIST_POSITION:Ljava/lang/String; = "list_position"
.field private static final NO_DELAY:I = 0x0
.field public static final TAG:Ljava/lang/String; = "NewsDetailFragment"
# instance fields
.field private adConfigurations:Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
.field private final adapterListener:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;
.field private appSpeedPageLoadTimer:J
.field private contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
.field private dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
.field private descriptiveLeftMargin:I
.field private detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
.field private detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
.field private detailPagerItemPosition:I
.field private feedList:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/model/content/Feed;",
">;"
}
.end annotation
.end field
.field private headerImage:Landroid/widget/ImageView;
.field private hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
.field private hurriyetVideoPlayerListener:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayerListener;
.field private interstitialAdListener:Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetInterstitialAdListener;
.field private itemAdViewContainer:Landroid/widget/AbsoluteLayout;
.field private lastKnownScrollState:I
.field private linFractional:Landroid/widget/LinearLayout;
.field private linSeekBarDescriptive:Landroid/widget/LinearLayout;
.field private mDetailContentLLM:Landroidx/recyclerview/widget/LinearLayoutManager;
.field private mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.field private mFABCloseAnimation:Landroid/view/animation/Animation;
.field private mFABCoordinatorLayout:Landroidx/coordinatorlayout/widget/CoordinatorLayout;
.field private mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.field private mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.field private mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
.field private mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
.field private mFABTextSizeSeekBarValueCurrentInt:I
.field private mFABTextSizeSeekBarValueCurrentString:Ljava/lang/String;
.field private mFABTextSizeSeekBarValueTemp:I
.field private mFABTextSizeSeekBarValues:[I
.field private mFABTextSizeSeekBarValuesDesc:[Ljava/lang/String;
.field private mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.field private mFabTutorialStarter:Ljava/lang/Runnable;
.field private mFadeInAnimation:Landroid/view/animation/Animation;
.field private mFadeOutAnimation:Landroid/view/animation/Animation;
.field private mIsAlive:Z
.field private mIsFABOpen:Z
.field private mIsInitPosition:Z
.field private mIsPaused:Z
.field private mIsSlider:Z
.field private mIsSucceededToLoadDetails:Z
.field private mIsTTSRunning:Z
.field private mIsTrackStopped:Z
.field private mLoadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.field private mPreviousModifiedDate:Ljava/lang/String;
.field mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
.field private mShouldFABClose:Z
.field private mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
.field private mTextToSpeech:Landroid/speech/tts/TextToSpeech;
.field private m_iAmVisible:Z
.field private newsDetailTitle:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
.field private newsDetailTitleContainer:Landroid/widget/LinearLayout;
.field private noDataText:Landroid/view/View;
.field private final onClickListener:Landroid/view/View$OnClickListener;
.field private final onTouchListener:Landroid/view/View$OnTouchListener;
.field private pauseListener:Ljava/lang/Runnable;
.field private scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
.field private scrollView:Landroidx/core/widget/NestedScrollView;
.field private strNews:Ljava/lang/String;
.field private suggestedRelatedNewsAdapter:Lhurriyet/mobil/android/hurriyet/adapters/SuggestedRelatedNewsAdapter;
.field private final swipeToRefreshLayoutListener:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;
.field private toggleTTS:Landroid/widget/ImageView;
.field private tvReadListInformationText:Landroid/widget/TextView;
.field private txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
.field private userSegmentIdList:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private vFABBackground:Landroid/view/View;
.field private videoPlayerHeight:I
.field private webView:Landroid/webkit/WebView;
# direct methods
.method public constructor <init>()V
.registers 3
.line 201
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V
const/4 v0, 0x0
.line 128
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFabTutorialStarter:Ljava/lang/Runnable;
const/4 v0, 0x1
.line 144
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTrackStopped:Z
const/4 v0, 0x0
.line 148
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsAlive:Z
.line 149
iput v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->lastKnownScrollState:I
const-wide/16 v0, 0x0
.line 151
iput-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->appSpeedPageLoadTimer:J
const-string v0, ""
.line 172
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mPreviousModifiedDate:Ljava/lang/String;
.line 313
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$2;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
.line 356
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$3;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$3;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->swipeToRefreshLayoutListener:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;
.line 369
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$4;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$4;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onTouchListener:Landroid/view/View$OnTouchListener;
.line 390
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$5;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$5;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->interstitialAdListener:Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetInterstitialAdListener;
.line 406
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$6;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$6;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adapterListener:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;
.line 850
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$15;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$15;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayerListener:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayerListener;
.line 202
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->appSpeedPageLoadTimer:J
return-void
.end method
.method static synthetic access$002(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;I)I
.registers 2
.line 99
iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->videoPlayerHeight:I
return p1
.end method
.method static synthetic access$100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
return-object p0
.end method
.method static synthetic access$1000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->stopVoiceReading()V
return-void
.end method
.method static synthetic access$1100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->loadContent()V
return-void
.end method
.method static synthetic access$1200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
return p0
.end method
.method static synthetic access$1202(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)Z
.registers 2
.line 99
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
return p1
.end method
.method static synthetic access$1300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTTSRunning:Z
return p0
.end method
.method static synthetic access$1302(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)Z
.registers 2
.line 99
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTTSRunning:Z
return p1
.end method
.method static synthetic access$1400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTrackStopped:Z
return p0
.end method
.method static synthetic access$1402(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)Z
.registers 2
.line 99
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTrackStopped:Z
return p1
.end method
.method static synthetic access$1500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mShouldFABClose:Z
return p0
.end method
.method static synthetic access$1502(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)Z
.registers 2
.line 99
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mShouldFABClose:Z
return p1
.end method
.method static synthetic access$1600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/RelativeLayout;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
return-object p0
.end method
.method static synthetic access$1700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hideAdjustingTextSize()V
return-void
.end method
.method static synthetic access$1800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/ImageView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
return-object p0
.end method
.method static synthetic access$1900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
return p0
.end method
.method static synthetic access$200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adjustTextSize()V
return-void
.end method
.method static synthetic access$2000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroidx/recyclerview/widget/LinearLayoutManager;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mDetailContentLLM:Landroidx/recyclerview/widget/LinearLayoutManager;
return-object p0
.end method
.method static synthetic access$2100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ljava/lang/String;
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getCurrentPageID()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method static synthetic access$2200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adConfigurations:Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
return-object p0
.end method
.method static synthetic access$2202(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;)Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adConfigurations:Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
return-object p1
.end method
.method static synthetic access$2302(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ljava/lang/Runnable;)Ljava/lang/Runnable;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pauseListener:Ljava/lang/Runnable;
return-object p1
.end method
.method static synthetic access$2402(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Landroid/webkit/WebView;)Landroid/webkit/WebView;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
return-object p1
.end method
.method static synthetic access$2500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
return-object p0
.end method
.method static synthetic access$2600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setMarginSeekbar()V
return-void
.end method
.method static synthetic access$2700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)I
.registers 1
.line 99
iget p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueTemp:I
return p0
.end method
.method static synthetic access$2702(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;I)I
.registers 2
.line 99
iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueTemp:I
return p1
.end method
.method static synthetic access$2800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)I
.registers 1
.line 99
iget p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentInt:I
return p0
.end method
.method static synthetic access$2802(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;I)I
.registers 2
.line 99
iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentInt:I
return p1
.end method
.method static synthetic access$2900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)[I
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValues:[I
return-object p0
.end method
.method static synthetic access$300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
return-object p0
.end method
.method static synthetic access$3000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ljava/lang/String;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentString:Ljava/lang/String;
return-object p0
.end method
.method static synthetic access$3002(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ljava/lang/String;)Ljava/lang/String;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentString:Ljava/lang/String;
return-object p1
.end method
.method static synthetic access$3100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)[Ljava/lang/String;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValuesDesc:[Ljava/lang/String;
return-object p0
.end method
.method static synthetic access$3200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
return-object p0
.end method
.method static synthetic access$3300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
return-object p0
.end method
.method static synthetic access$3400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/view/View;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->noDataText:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$3500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroidx/recyclerview/widget/RecyclerView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
return-object p0
.end method
.method static synthetic access$3602(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
return-object p1
.end method
.method static synthetic access$3702(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)Z
.registers 2
.line 99
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSucceededToLoadDetails:Z
return p1
.end method
.method static synthetic access$3800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->showRefreshSnack(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
return-void
.end method
.method static synthetic access$3900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->prepareAuthorAds()V
return-void
.end method
.method static synthetic access$400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ltr/com/hurriyet/androidsdk/model/content/Content;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
return-object p0
.end method
.method static synthetic access$4000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initializeDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
return-void
.end method
.method static synthetic access$402(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/model/content/Content;)Ltr/com/hurriyet/androidsdk/model/content/Content;
.registers 2
.line 99
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
return-object p1
.end method
.method static synthetic access$4100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->sendLogScreenEvent()V
return-void
.end method
.method static synthetic access$4200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->requestInterstitial()V
return-void
.end method
.method static synthetic access$4300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initializeScrollTrackingHelper()V
return-void
.end method
.method static synthetic access$4400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Z)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initializeAdapter(Z)V
return-void
.end method
.method static synthetic access$4500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->sendAppSpeedEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
return-void
.end method
.method static synthetic access$4600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitle:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
return-object p0
.end method
.method static synthetic access$4700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/ImageView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->headerImage:Landroid/widget/ImageView;
return-object p0
.end method
.method static synthetic access$4800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/LinearLayout;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitleContainer:Landroid/widget/LinearLayout;
return-object p0
.end method
.method static synthetic access$4900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initVideoPlayer(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
return-void
.end method
.method static synthetic access$500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ltr/com/hurriyet/androidsdk/model/content/ContentType;)Ljava/lang/String;
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getAnalyticsCategoryType(Ltr/com/hurriyet/androidsdk/model/content/ContentType;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method static synthetic access$5000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->addFirstAds()V
return-void
.end method
.method static synthetic access$5100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->addSwipeTutorialFooter()V
return-void
.end method
.method static synthetic access$5200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Ljava/util/ArrayList;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->addEditorTags(Ljava/util/ArrayList;)V
return-void
.end method
.method static synthetic access$5300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->processHtmlNodes()V
return-void
.end method
.method static synthetic access$5400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setReadingListIcon()V
return-void
.end method
.method static synthetic access$5500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ljava/util/List;
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserSegmentIdList()Ljava/util/List;
move-result-object p0
return-object p0
.end method
.method static synthetic access$5600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsInitPosition:Z
return p0
.end method
.method static synthetic access$5700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)I
.registers 1
.line 99
iget p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailPagerItemPosition:I
return p0
.end method
.method static synthetic access$5800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mLoadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
return-object p0
.end method
.method static synthetic access$5900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/AbsoluteLayout;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->itemAdViewContainer:Landroid/widget/AbsoluteLayout;
return-object p0
.end method
.method static synthetic access$600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->startVoiceReading()V
return-void
.end method
.method static synthetic access$6000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;IZ)V
.registers 3
.line 99
invoke-direct {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setVideoMode(IZ)V
return-void
.end method
.method static synthetic access$6100(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->portraitMode()V
return-void
.end method
.method static synthetic access$6200(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return-object p0
.end method
.method static synthetic access$6300(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return-object p0
.end method
.method static synthetic access$6400(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return-object p0
.end method
.method static synthetic access$6500(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
return-object p0
.end method
.method static synthetic access$6600(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/view/View;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->vFABBackground:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$6700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Ljava/lang/Runnable;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFabTutorialStarter:Ljava/lang/Runnable;
return-object p0
.end method
.method static synthetic access$6800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Landroid/widget/TextView;
.registers 1
.line 99
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
return-object p0
.end method
.method static synthetic access$6900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;Landroid/view/View;)V
.registers 2
.line 99
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeIn(Landroid/view/View;)V
return-void
.end method
.method static synthetic access$700(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dbOperations()V
return-void
.end method
.method static synthetic access$7000(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)Z
.registers 1
.line 99
iget-boolean p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsAlive:Z
return p0
.end method
.method static synthetic access$800(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->closeFABForReadingList()V
return-void
.end method
.method static synthetic access$900(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
.registers 1
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->reOpenFAB()V
return-void
.end method
.method private addColumnDetailAds()V
.registers 4
.line 1046
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
sget-object v1, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->COLUMN:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
if-ne v0, v1, :cond_34
sget-boolean v0, Lhurriyet/mobil/android/hurriyet/HConstants;->IS_AD_ENABLED:Z
if-eqz v0, :cond_34
.line 1048
:try_start_c
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getAppContext()Landroid/content/Context;
move-result-object v0
const-string v1, "100"
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;
if-eqz v0, :cond_34
.line 1050
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1e
:goto_1e
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_34
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ltr/com/hurriyet/androidsdk/model/content/Feed;
.line 1051
instance-of v2, v1, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
if-eqz v2, :cond_1e
.line 1052
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_33
.catch Ljava/lang/ClassCastException; {:try_start_c .. :try_end_33} :catch_34
goto :goto_1e
:catch_34
:cond_34
return-void
.end method
.method private addEditorTags(Ljava/util/ArrayList;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ltr/com/hurriyet/androidsdk/model/content/EditorTag;",
">;)V"
}
.end annotation
.line 900
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_4
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_39
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;
.line 901
new-instance v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;
invoke-direct {v1}, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;-><init>()V
.line 902
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;->getName()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;->name:Ljava/lang/String;
.line 903
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;->getEmail()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;->email:Ljava/lang/String;
.line 904
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;->getLocation()Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;->location:Ljava/lang/String;
.line 905
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;->getPhoto()Ltr/com/hurriyet/androidsdk/response/content/Photo;
move-result-object v2
iput-object v2, v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;->photo:Ltr/com/hurriyet/androidsdk/response/content/Photo;
.line 906
invoke-virtual {v0}, Ltr/com/hurriyet/androidsdk/model/content/EditorTag;->getTwitter()Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lhurriyet/mobil/android/hurriyet/model/EditorTagFeed;->twitter:Ljava/lang/String;
.line 907
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_4
:cond_39
return-void
.end method
.method private addFirstAds()V
.registers 6
.line 768
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_6
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_27
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ltr/com/hurriyet/androidsdk/model/content/Feed;
.line 769
instance-of v2, v1, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
if-eqz v2, :cond_6
move-object v2, v1
check-cast v2, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;->getAdType()Ltr/com/hurriyet/androidsdk/model/content/AdType;
move-result-object v3
sget-object v4, Ltr/com/hurriyet/androidsdk/model/content/AdType;->BANNER:Ltr/com/hurriyet/androidsdk/model/content/AdType;
if-ne v3, v4, :cond_6
.line 771
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
goto :goto_28
:cond_27
const/4 v2, 0x0
.line 776
:goto_28
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->getAdViewItems()Ljava/util/HashMap;
move-result-object v0
if-eqz v0, :cond_4a
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->getAdViewItems()Ljava/util/HashMap;
move-result-object v0
invoke-virtual {v0}, Ljava/util/HashMap;->size()I
move-result v0
if-lez v0, :cond_4a
.line 777
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->getAdViewItems()Ljava/util/HashMap;
move-result-object v0
const/4 v1, 0x0
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 780
:cond_4a
new-instance v0, Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetAdView;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adConfigurations:Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
invoke-direct {v0, v1, v2, v3}, Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetAdView;-><init>(Landroid/content/Context;Ltr/com/hurriyet/androidsdk/model/content/AdFeed;Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;)V
.line 782
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$12;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$12;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetAdView;->addExternalAdListener(Lcom/google/android/gms/ads/AdListener;)V
.line 790
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->itemAdViewContainer:Landroid/widget/AbsoluteLayout;
invoke-virtual {v1, v0}, Landroid/widget/AbsoluteLayout;->addView(Landroid/view/View;)V
.line 792
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetAdView;->loadAd()V
return-void
.end method
.method private addSwipeTutorialFooter()V
.registers 3
.line 1062
sget-boolean v0, Lhurriyet/mobil/android/hurriyet/HConstants;->IS_DETAIL_SWIPE_TUTORIAL_ENABLED:Z
if-nez v0, :cond_5
return-void
.line 1065
:cond_5
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
if-nez v0, :cond_10
.line 1066
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
.line 1068
:cond_10
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
new-instance v1, Lhurriyet/mobil/android/hurriyet/model/SwipeTutorialFeed;
invoke-direct {v1}, Lhurriyet/mobil/android/hurriyet/model/SwipeTutorialFeed;-><init>()V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-void
.end method
.method private adjustTextSize()V
.registers 3
.line 1166
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->closeFAB()V
.line 1167
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setEnabled(Z)V
.line 1168
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeIn(Landroid/view/View;)V
return-void
.end method
.method private animateClose(Landroid/view/View;)V
.registers 3
const/16 v0, 0x8
.line 1254
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
return-void
.end method
.method private animateFadeIn(Landroid/view/View;)V
.registers 3
const/4 v0, 0x0
.line 1242
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
const/4 v0, 0x1
.line 1243
invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V
return-void
.end method
.method private animateFadeOut(Landroid/view/View;)V
.registers 3
const/16 v0, 0x8
.line 1248
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
const/4 v0, 0x0
.line 1249
invoke-virtual {p1, v0}, Landroid/view/View;->setEnabled(Z)V
return-void
.end method
.method private closeFAB()V
.registers 2
.line 1184
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeOut(Landroid/view/View;)V
.line 1185
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
.line 1186
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
.line 1187
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
const/4 v0, 0x1
.line 1188
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
const/4 v0, 0x0
.line 1189
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setClickableOfFAB(Z)V
return-void
.end method
.method private closeFABForReadingList()V
.registers 6
.line 1195
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 1197
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeOut(Landroid/view/View;)V
.line 1198
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
.line 1199
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
.line 1200
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateClose(Landroid/view/View;)V
.line 1202
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v0
if-eqz v0, :cond_3a
.line 1203
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 1204
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->vFABBackground:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 1205
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
.line 1206
new-instance v2, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$17;
invoke-direct {v2, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$17;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const/16 v3, 0x9c4
int-to-long v3, v3
invoke-virtual {v0, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
.line 1218
:cond_3a
iput-boolean v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
return-void
.end method
.method private dbOperations()V
.registers 10
.line 1258
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSucceededToLoadDetails:Z
const/4 v1, 0x0
if-eqz v0, :cond_97
.line 1259
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->isNewsExist(Ljava/lang/String;)Z
move-result v0
const v2, 0x7f100064
if-nez v0, :cond_54
.line 1260
invoke-direct {p0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->saveOrDeleteNews(Z)V
.line 1261
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
const v1, 0x7f100025
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 1262
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const v3, 0x7f080107
invoke-static {v1, v3}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 1265
iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
if-eqz v3, :cond_a9
.line 1266
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
.line 1268
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getAnalyticsCategoryType(Ltr/com/hurriyet/androidsdk/model/content/ContentType;)Ljava/lang/String;
move-result-object v4
.line 1269
invoke-static {v2}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v5
const v0, 0x7f1000c7
.line 1270
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v6
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
iget-object v7, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
.line 1272
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v8
.line 1266
invoke-static/range {v3 .. v8}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
goto :goto_a9
.line 1275
:cond_54
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
const v1, 0x7f100267
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
const/4 v0, 0x1
.line 1276
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->saveOrDeleteNews(Z)V
.line 1277
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const v3, 0x7f080106
invoke-static {v1, v3}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 1279
iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
if-eqz v3, :cond_a9
.line 1280
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
.line 1282
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getAnalyticsCategoryType(Ltr/com/hurriyet/androidsdk/model/content/ContentType;)Ljava/lang/String;
move-result-object v4
.line 1283
invoke-static {v2}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v5
const v0, 0x7f1000c8
.line 1284
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v6
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
iget-object v7, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
.line 1286
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v8
.line 1280
invoke-static/range {v3 .. v8}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
goto :goto_a9
.line 1290
:cond_97
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const v2, 0x7f10023a
invoke-static {v2}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v2
invoke-static {v0, v2, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
:cond_a9
:goto_a9
return-void
.end method
.method private deleteNews(Ljava/lang/String;)V
.registers 3
.line 1306
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
if-eqz v0, :cond_7
.line 1307
invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;->deleteFromReadingList(Ljava/lang/String;)V
:cond_7
return-void
.end method
.method private findViews(Landroid/view/View;)V
.registers 3
const v0, 0x7f090283
.line 256
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->noDataText:Landroid/view/View;
const v0, 0x7f090286
.line 257
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
const v0, 0x7f090277
.line 258
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/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
const v0, 0x7f0900e1
.line 259
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABCoordinatorLayout:Landroidx/coordinatorlayout/widget/CoordinatorLayout;
const v0, 0x7f090165
.line 260
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
const v0, 0x7f090167
.line 261
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
const v0, 0x7f090168
.line 262
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
const v0, 0x7f090166
.line 263
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
const v0, 0x7f09022e
.line 264
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->vFABBackground:Landroid/view/View;
const v0, 0x7f09039c
.line 265
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
const v0, 0x7f09030b
.line 266
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
const v0, 0x7f09034b
.line 267
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
const v0, 0x7f09041f
.line 268
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
const v0, 0x7f090231
.line 269
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linSeekBarDescriptive:Landroid/widget/LinearLayout;
const v0, 0x7f09022f
.line 270
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linFractional:Landroid/widget/LinearLayout;
const v0, 0x7f090282
.line 271
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/NewsDetailFragment;->mLoadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
const v0, 0x7f0903b6
.line 272
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
const v0, 0x7f090206
.line 273
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
const v0, 0x7f090205
.line 274
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ImageView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->headerImage:Landroid/widget/ImageView;
const v0, 0x7f09032d
.line 275
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/core/widget/NestedScrollView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->scrollView:Landroidx/core/widget/NestedScrollView;
const v0, 0x7f090287
.line 276
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitle:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
const v0, 0x7f090288
.line 277
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitleContainer:Landroid/widget/LinearLayout;
const v0, 0x7f0901e1
.line 279
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/AbsoluteLayout;
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->itemAdViewContainer:Landroid/widget/AbsoluteLayout;
return-void
.end method
.method private getAnalyticsCategoryType(Ltr/com/hurriyet/androidsdk/model/content/ContentType;)Ljava/lang/String;
.registers 3
.line 500
sget-object v0, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->NEWS:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
if-ne p1, v0, :cond_14
.line 501
iget-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
if-eqz p1, :cond_c
const p1, 0x7f1000a8
goto :goto_f
:cond_c
const p1, 0x7f1000a2
:goto_f
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object p1
return-object p1
.line 502
:cond_14
sget-object v0, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->COLUMN:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
if-ne p1, v0, :cond_20
const p1, 0x7f10009a
.line 503
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_20
const p1, 0x7f10007b
.line 507
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method private getCurrentPageID()Ljava/lang/String;
.registers 4
.line 493
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
instance-of v0, v0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
if-eqz v0, :cond_13
.line 494
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->getCurrentVisibleItemPosition()I
move-result v0
goto :goto_14
:cond_13
const/4 v0, -0x2
.line 496
:goto_14
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-class v2, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private getUserSegmentIdList()Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 485
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->userSegmentIdList:Ljava/util/List;
if-nez v0, :cond_12
.line 486
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getAppContext()Landroid/content/Context;
move-result-object v0
const-string v1, "115"
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/List;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->userSegmentIdList:Ljava/util/List;
.line 488
:cond_12
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->userSegmentIdList:Ljava/util/List;
return-object v0
.end method
.method private hideAdjustingTextSize()V
.registers 3
.line 1172
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setEnabled(Z)V
.line 1173
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeOut(Landroid/view/View;)V
return-void
.end method
.method private initAnimations()V
.registers 3
.line 1235
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const v1, 0x7f010031
invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABCloseAnimation:Landroid/view/animation/Animation;
.line 1236
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const v1, 0x7f010032
invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFadeInAnimation:Landroid/view/animation/Animation;
.line 1237
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const v1, 0x7f010033
invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFadeOutAnimation:Landroid/view/animation/Animation;
return-void
.end method
.method private initVideoPlayer(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 12
.line 803
new-instance v9, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoTransferData;
iget-object v0, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotNode:Ltr/com/hurriyet/androidsdk/response/content/SpotNode;
iget-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/SpotNode;->largeImage:Ljava/lang/String;
iget-object v0, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotNode:Ltr/com/hurriyet/androidsdk/response/content/SpotNode;
iget-object v2, v0, Ltr/com/hurriyet/androidsdk/response/content/SpotNode;->sourceUrl:Ljava/lang/String;
iget-object v3, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->title:Ljava/lang/String;
const-wide/16 v4, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
move-object v0, v9
invoke-direct/range {v0 .. v8}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoTransferData;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JIIZ)V
.line 812
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotNode:Ltr/com/hurriyet/androidsdk/response/content/SpotNode;
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/response/content/SpotNode;->adTagUnitUrlAndroid:Ljava/lang/String;
iput-object p1, v9, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoTransferData;->mediaAdEmbedUrl:Ljava/lang/String;
.line 814
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setVisibility(I)V
.line 816
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayerListener:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayerListener;
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setExternalListener(Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayerListener;)V
.line 817
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {p1, v9}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setVideoTransferData(Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoTransferData;)V
.line 818
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmThumbImg()Landroid/widget/ImageView;
move-result-object p1
const/16 v0, 0x8
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
.line 819
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTitleTv()Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
move-result-object p1
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setVisibility(I)V
.line 820
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTitleArea()Landroid/widget/RelativeLayout;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 821
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
const v0, 0x7f060147
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setSeekbarBackground(I)V
.line 822
invoke-static {}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/VideoPlayDecisionMaker;->isAutoPlayAllowed()Z
move-result p1
if-eqz p1, :cond_69
.line 823
new-instance p1, Landroid/os/Handler;
invoke-direct {p1}, Landroid/os/Handler;-><init>()V
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$13;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$13;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const-wide/16 v1, 0x1f4
invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_78
.line 836
:cond_69
new-instance p1, Landroid/os/Handler;
invoke-direct {p1}, Landroid/os/Handler;-><init>()V
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$14;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$14;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const-wide/16 v1, 0x0
invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:goto_78
return-void
.end method
.method private initViews()V
.registers 5
.line 283
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
const/4 v1, 0x2
new-array v1, v1, [I
fill-array-data v1, :array_86
invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setColorSchemeResources([I)V
.line 284
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->swipeToRefreshLayoutListener:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;
invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setOnRefreshListener(Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;)V
.line 286
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getContext()Landroid/content/Context;
move-result-object v1
const/4 v2, 0x1
const/4 v3, 0x0
invoke-direct {v0, v1, v2, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mDetailContentLLM:Landroidx/recyclerview/widget/LinearLayoutManager;
.line 287
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
.line 288
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onTouchListener:Landroid/view/View$OnTouchListener;
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 289
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
invoke-static {v0, v3}, Landroidx/core/view/ViewCompat;->setNestedScrollingEnabled(Landroid/view/View;Z)V
.line 291
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
if-eqz v0, :cond_3d
.line 293
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getPaddingBottom()I
move-result v1
invoke-virtual {v0, v3, v3, v3, v1}, Landroidx/recyclerview/widget/RecyclerView;->setPadding(IIII)V
.line 296
:cond_3d
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 297
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 298
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 299
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 300
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->onClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 302
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsPaused:Z
if-nez v0, :cond_7f
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetHelper;->checkInternetConnection()Z
move-result v0
if-nez v0, :cond_79
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getOfflineAuthorsActive()Z
move-result v0
if-eqz v0, :cond_79
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
sget-object v1, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->COLUMN:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
if-ne v0, v1, :cond_79
goto :goto_7f
.line 305
:cond_79
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mLoadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->show()V
goto :goto_82
.line 303
:cond_7f
:goto_7f
invoke-direct {p0, v3}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initializeAdapter(Z)V
.line 308
:goto_82
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->seekBarOperations()V
return-void
:array_86
.array-data 4
0x7f060111
0x7f06010d
.end array-data
.end method
.method private initializeAdapter(Z)V
.registers 12
.line 935
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
if-nez v0, :cond_5
return-void
.line 938
:cond_5
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotNode:Ltr/com/hurriyet/androidsdk/response/content/SpotNode;
if-eqz v0, :cond_12
.line 939
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotNode:Ltr/com/hurriyet/androidsdk/response/content/SpotNode;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->userSegmentIdList:Ljava/util/List;
invoke-virtual {v0, v1}, Ltr/com/hurriyet/androidsdk/response/content/SpotNode;->replaceUserSegments(Ljava/util/List;)V
.line 941
:cond_12
new-instance v0, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
iget-object v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
.line 943
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->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;->getMaStickyVideoHelper()Lhurriyet/mobil/android/hurriyet/activities/main/MaStickyVideoHelper;
move-result-object v4
iget-object v5, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adapterListener:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;
iget-object v6, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-boolean v7, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
iget-boolean v8, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsInitPosition:Z
.line 948
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getContext()Landroid/content/Context;
move-result-object v9
move-object v2, v0
invoke-direct/range {v2 .. v9}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;-><init>(Lhurriyet/mobil/android/hurriyet/HurriyetPageController;Lhurriyet/mobil/android/hurriyet/activities/main/MaStickyVideoHelper;Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;Ltr/com/hurriyet/androidsdk/model/content/Content;ZZLandroid/content/Context;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
.line 951
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v1, v1, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->setNewsUrl(Ljava/lang/String;)V
.line 953
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
if-eqz v0, :cond_42
.line 954
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {v1, v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->setFeedList(Ljava/util/ArrayList;)V
.line 956
:cond_42
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
if-eqz p1, :cond_5e
.line 959
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->setFeedList(Ljava/util/ArrayList;)V
.line 960
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
invoke-virtual {p1, v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->setDetailContent(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.line 961
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->notifyDataSetChanged()V
:cond_5e
return-void
.end method
.method private initializeDataLayer(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.registers 3
if-eqz p1, :cond_10
.line 913
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
.line 914
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v0
if-eqz v0, :cond_10
.line 915
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/VideoEventTrackingHelper;->getInstance()Lhurriyet/mobil/android/hurriyet/utils/VideoEventTrackingHelper;
move-result-object v0
iput-object p1, v0, Lhurriyet/mobil/android/hurriyet/utils/VideoEventTrackingHelper;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
:cond_10
return-void
.end method
.method private initializeScrollTrackingHelper()V
.registers 6
.line 922
:try_start_0
new-instance v0, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
const v3, 0x7f10005f
.line 925
invoke-static {v3}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v3
iget-object v4, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
iget-object v4, v4, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
if-nez v4, :cond_16
const-string v4, ""
goto :goto_1a
:cond_16
iget-object v4, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
iget-object v4, v4, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
:goto_1a
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/NewsDetailFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
.line 929
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v1
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;->setTrackingEnabled(Z)V
:try_end_26
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_26} :catch_26
:catch_26
return-void
.end method
.method private isNewsExist(Ljava/lang/String;)Z
.registers 3
.line 1302
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
if-eqz v0, :cond_c
invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;->isNewsExist(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_c
const/4 p1, 0x1
goto :goto_d
:cond_c
const/4 p1, 0x0
:goto_d
return p1
.end method
.method private landscapeMode()V
.registers 4
.line 1551
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
sget-object v1, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;->FULL_LAND:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setFullScreen(Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;)V
.line 1552
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V
.line 1554
invoke-static {}, Lcom/appcore/utils/helpers/AppHelpers;->getScreenWidth()I
move-result v0
.line 1555
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {v2}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v2
iput v0, v2, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 1556
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
const v2, 0x7f060036
invoke-virtual {v0, v2}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setSeekbarBackground(I)V
.line 1557
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v2, 0x400
invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V
.line 1559
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getMainActivity()Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;
move-result-object v0
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;->hideBottomNavigationBar()V
.line 1560
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setVisibility(I)V
.line 1562
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->setHeaderVisibility(I)V
.line 1563
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitle:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setVisibility(I)V
.line 1564
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitleContainer:Landroid/widget/LinearLayout;
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 1566
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
.line 1567
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTextureView()Landroid/view/TextureView;
move-result-object v0
invoke-virtual {v0}, Landroid/view/TextureView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;
const/16 v1, -0x14
.line 1568
iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I
.line 1569
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTextureView()Landroid/view/TextureView;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/TextureView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 1570
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setEnabled(Z)V
return-void
.end method
.method private loadContent()V
.registers 6
.line 637
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
if-eqz v0, :cond_7
.line 638
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
.line 640
:cond_7
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
.line 641
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;
move-result-object v0
iget-object v0, v0, Lhurriyet/mobil/android/hurriyet/HApp;->app:Ltr/com/hurriyet/androidsdk/model/content/App;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v1, v1, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
iget-boolean v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
new-instance v3, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$11;
invoke-direct {v3, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$11;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const-string v4, ""
invoke-static {v0, v1, v2, v4, v3}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->getContent(Ltr/com/hurriyet/androidsdk/model/content/App;Ljava/lang/String;ZLjava/lang/String;Ltr/com/hurriyet/androidsdk/callback/ContentCallback;)Lretrofit2/Call;
return-void
.end method
.method public static newInstance(Ltr/com/hurriyet/androidsdk/model/content/Content;ZZI)Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;
.registers 7
.line 188
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;
invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;-><init>()V
.line 189
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
const-string v2, "article"
.line 190
invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
const-string p0, "is_slider"
.line 191
invoke-virtual {v1, p0, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
const-string p0, "is_init_position"
.line 192
invoke-virtual {v1, p0, p2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
const-string p0, "list_position"
.line 193
invoke-virtual {v1, p0, p3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
.line 194
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setArguments(Landroid/os/Bundle;)V
return-object v0
.end method
.method private portraitMode()V
.registers 4
.line 1574
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
sget-object v1, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;->EMBED:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setFullScreen(Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/enums/PlayerMode;)V
.line 1575
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V
.line 1578
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
iget v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->videoPlayerHeight:I
iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
.line 1579
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
const v2, 0x7f060147
invoke-virtual {v0, v2}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->setSeekbarBackground(I)V
.line 1580
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v2, 0x400
invoke-virtual {v0, v2}, Landroid/view/Window;->clearFlags(I)V
.line 1581
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setVisibility(I)V
.line 1583
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->setHeaderVisibility(I)V
.line 1584
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitle:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setVisibility(I)V
.line 1585
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->newsDetailTitleContainer:Landroid/widget/LinearLayout;
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 1587
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
.line 1588
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTextureView()Landroid/view/TextureView;
move-result-object v0
invoke-virtual {v0}, Landroid/view/TextureView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;
.line 1589
iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I
.line 1590
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hurriyetVideoPlayer:Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;
invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/HurriyetVideoPlayer;->getmTextureView()Landroid/view/TextureView;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/TextureView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 1591
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setEnabled(Z)V
return-void
.end method
.method private prepareAuthorAds()V
.registers 4
.line 989
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
sget-object v1, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->COLUMN:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
if-ne v0, v1, :cond_3d
sget-boolean v0, Lhurriyet/mobil/android/hurriyet/HConstants;->IS_AD_ENABLED:Z
if-nez v0, :cond_d
goto :goto_3d
.line 992
:cond_d
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
.line 994
:try_start_14
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getAppContext()Landroid/content/Context;
move-result-object v0
const-string v1, "100"
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;
if-nez v0, :cond_23
return-void
.line 998
:cond_23
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_27
:goto_27
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3d
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ltr/com/hurriyet/androidsdk/model/content/Feed;
.line 999
instance-of v2, v1, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
if-eqz v2, :cond_27
.line 1000
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_3c
.catch Ljava/lang/ClassCastException; {:try_start_14 .. :try_end_3c} :catch_3d
goto :goto_27
:catch_3d
:cond_3d
:goto_3d
return-void
.end method
.method private prepareTextToSpeech()V
.registers 3
.line 1359
:try_start_0
new-instance v0, Landroid/speech/tts/TextToSpeech;
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;
move-result-object v1
invoke-direct {v0, v1, p0}, Landroid/speech/tts/TextToSpeech;-><init>(Landroid/content/Context;Landroid/speech/tts/TextToSpeech$OnInitListener;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
:try_end_b
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_b} :catch_c
goto :goto_10
:catch_c
move-exception v0
.line 1361
invoke-static {v0}, Lcom/appcore/utils/L;->ex(Ljava/lang/Exception;)V
:goto_10
return-void
.end method
.method private processHtmlNodes()V
.registers 6
.line 1072
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
if-eqz v0, :cond_77
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
if-eqz v0, :cond_77
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_13
goto :goto_77
.line 1075
:cond_13
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 1076
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v1, v1, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_20
:goto_20
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_60
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;
.line 1077
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getType()Ljava/lang/String;
move-result-object v3
if-nez v3, :cond_33
goto :goto_20
.line 1080
:cond_33
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getType()Ljava/lang/String;
move-result-object v3
const-string v4, "Text"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_4c
.line 1082
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getText()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "\n "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_20
.line 1083
:cond_4c
invoke-virtual {v2}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getType()Ljava/lang/String;
move-result-object v3
const-string v4, "Video"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_20
.line 1084
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserSegmentIdList()Ljava/util/List;
move-result-object v3
invoke-virtual {v2, v3}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->replaceUserSegments(Ljava/util/List;)V
goto :goto_20
.line 1087
:cond_60
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
:cond_77
:goto_77
return-void
.end method
.method private reOpenFAB()V
.registers 4
.line 1223
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f060111
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
.line 1224
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const v2, 0x7f080108
invoke-static {v1, v2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 1226
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->vFABBackground:Landroid/view/View;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeOut(Landroid/view/View;)V
.line 1227
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeIn(Landroid/view/View;)V
const/4 v0, 0x0
.line 1229
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
.line 1230
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mShouldFABClose:Z
const/4 v0, 0x1
.line 1231
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->setClickableOfFAB(Z)V
return-void
.end method
.method private requestInterstitial()V
.registers 7
.line 1029
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_58
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
if-eqz v0, :cond_58
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_11
goto :goto_58
.line 1032
:cond_11
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->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 1033
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_24
:goto_24
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_58
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ltr/com/hurriyet/androidsdk/model/content/Feed;
.line 1034
instance-of v2, v1, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
if-eqz v2, :cond_24
check-cast v1, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;
invoke-virtual {v1}, Ltr/com/hurriyet/androidsdk/model/content/AdFeed;->getAdType()Ltr/com/hurriyet/androidsdk/model/content/AdType;
move-result-object v2
sget-object v3, Ltr/com/hurriyet/androidsdk/model/content/AdType;->INTERSTITIAL:Ltr/com/hurriyet/androidsdk/model/content/AdType;
if-ne v2, v3, :cond_24
.line 1035
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v2
check-cast v2, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;
invoke-virtual {v2}, Lhurriyet/mobil/android/hurriyet/activities/main/MainActivity;->getMaInterstitialAdHelper()Lhurriyet/mobil/android/hurriyet/features/ads/MaInterstitialAdHelper;
move-result-object v2
.line 1036
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getCurrentPageID()Ljava/lang/String;
move-result-object v3
iget-object v4, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->adapterListener:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;
.line 1037
invoke-interface {v4}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter$NewsDetailAdapterListener;->getAdConfigurations()Lhurriyet/mobil/android/hurriyet/features/ads/PublisherRequestConfigurations;
move-result-object v4
iget-object v5, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->interstitialAdListener:Lhurriyet/mobil/android/hurriyet/features/ads/HurriyetInterstitialAdListener;
.line 1035
invoke-virtual {v2, v1, v3, v4, 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
goto :goto_24
:cond_58
:goto_58
return-void
.end method
.method private saveNews(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 9
.line 1295
new-instance v6, Lhurriyet/mobil/android/hurriyet/model/ReadingList;
iget-object v1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->title:Ljava/lang/String;
iget-object v2, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->categoryName:Ljava/lang/String;
iget-object v3, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->editor:Ljava/lang/String;
iget-object v4, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->type:Ltr/com/hurriyet/androidsdk/model/content/ContentType;
invoke-virtual {p1}, Ltr/com/hurriyet/androidsdk/model/content/ContentType;->name()Ljava/lang/String;
move-result-object v5
move-object v0, v6
invoke-direct/range {v0 .. v5}, Lhurriyet/mobil/android/hurriyet/model/ReadingList;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1296
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
if-eqz p1, :cond_1b
.line 1297
invoke-virtual {p1, v6}, Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;->saveToReadingList(Lhurriyet/mobil/android/hurriyet/model/ReadingList;)V
:cond_1b
return-void
.end method
.method private saveOrDeleteNews(Z)V
.registers 2
if-nez p1, :cond_8
.line 628
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->saveNews(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
goto :goto_f
.line 630
:cond_8
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->deleteNews(Ljava/lang/String;)V
:goto_f
return-void
.end method
.method private seekBarOperations()V
.registers 4
.line 516
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f030002
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getIntArray(I)[I
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValues:[I
.line 517
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f030003
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValuesDesc:[Ljava/lang/String;
.line 518
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValues:[I
array-length v1, v1
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setRangeCount(I)V
.line 519
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValues:[I
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getNewsTextSize()I
move-result v2
invoke-virtual {p0, v1, v2}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getArrayIndex([II)I
move-result v1
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setInitialIndex(I)V
.line 520
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
move-result-object v0
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$7;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$7;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
.line 530
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$8;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$8;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
.line 540
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$9;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$9;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V
.line 602
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linFractional:Landroid/widget/LinearLayout;
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$10;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$10;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
return-void
.end method
.method private sendAppSpeedEvent(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
.registers 7
.line 1019
iget-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->appSpeedPageLoadTimer:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_21
if-eqz p1, :cond_21
const v0, 0x7f100106
.line 1021
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 1023
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v1
iget-wide v3, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->appSpeedPageLoadTimer:J
sub-long/2addr v1, v3
.line 1020
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 1024
iput-wide v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->appSpeedPageLoadTimer:J
:cond_21
return-void
.end method
.method private sendLogScreenEvent()V
.registers 3
.line 1008
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getUserVisibleHint()Z
move-result v0
if-eqz v0, :cond_26
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
if-nez v0, :cond_b
goto :goto_26
.line 1011
:cond_b
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->getAppLaunchType()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/utils/AppLaunchType;->isPush(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1b
.line 1012
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
const-string v1, "push"
iput-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->clicksLabel:Ljava/lang/String;
.line 1014
:cond_1b
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
iget-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->cd_hnewsid:Ljava/lang/String;
iput-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->clicksArticleID:Ljava/lang/String;
.line 1015
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->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_26
:goto_26
return-void
.end method
.method private setClickableOfFAB(Z)V
.registers 3
.line 1177
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setClickable(Z)V
.line 1178
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setClickable(Z)V
.line 1179
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setClickable(Z)V
.line 1180
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setClickable(Z)V
return-void
.end method
.method private setMarginSeekbar()V
.registers 4
.line 613
:try_start_0
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValuesDesc:[Ljava/lang/String;
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
invoke-virtual {v2}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->getCurrentIndex()I
move-result v2
aget-object v1, v1, v2
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setText(Ljava/lang/CharSequence;)V
.line 614
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->invalidate()V
.line 615
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->getSlotPositions()[F
move-result-object v0
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;->getCurrentIndex()I
move-result v1
aget v0, v0, v1
float-to-int v0, v0
iput v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->descriptiveLeftMargin:I
.line 616
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
const/4 v1, -0x2
invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
.line 617
iget v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->descriptiveLeftMargin:I
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linSeekBarDescriptive:Landroid/widget/LinearLayout;
invoke-virtual {v2}, Landroid/widget/LinearLayout;->getWidth()I
move-result v2
div-int/lit8 v2, v2, 0x2
sub-int/2addr v1, v2
const v2, 0x7f070512
invoke-static {v2}, Lhurriyet/mobil/android/hurriyet/HApp;->getDimenWithID(I)I
move-result v2
add-int/2addr v1, v2
iput v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->descriptiveLeftMargin:I
const/4 v2, 0x0
.line 618
invoke-virtual {v0, v1, v2, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V
.line 619
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linSeekBarDescriptive:Landroid/widget/LinearLayout;
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
:try_end_49
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_49} :catch_49
:catch_49
return-void
.end method
.method private setReadingListIcon()V
.registers 4
.line 1091
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->detailURL:Ljava/lang/String;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->isNewsExist(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1b
.line 1092
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const v2, 0x7f080107
invoke-static {v1, v2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
goto :goto_2b
.line 1094
:cond_1b
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const v2, 0x7f080106
invoke-static {v1, v2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
:goto_2b
return-void
.end method
.method private setVideoMode(IZ)V
.registers 3
.line 1541
iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
if-eqz p2, :cond_14
iget-boolean p2, p2, Ltr/com/hurriyet/androidsdk/model/content/Content;->spotVideo:Z
if-eqz p2, :cond_14
const/4 p2, 0x1
if-ne p1, p2, :cond_f
.line 1543
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->landscapeMode()V
goto :goto_14
:cond_f
if-nez p1, :cond_14
.line 1545
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->portraitMode()V
:cond_14
:goto_14
return-void
.end method
.method private showRefreshSnack(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 5
.line 977
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
invoke-virtual {v0}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->isRefreshing()Z
move-result v0
if-eqz v0, :cond_46
.line 978
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setRefreshing(Z)V
.line 979
iget-object v0, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->modifiedDate:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_38
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mPreviousModifiedDate:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_38
iget-object v0, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->modifiedDate:Ljava/lang/String;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mPreviousModifiedDate:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_29
goto :goto_38
.line 982
:cond_29
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
const v1, 0x7f100031
invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v1
sget-object v2, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;->SNACK_SUCCESS:Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;
invoke-interface {v0, v1, v2}, Lhurriyet/mobil/android/hurriyet/HurriyetPageController;->showSnackBar(Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;)V
goto :goto_46
.line 980
:cond_38
:goto_38
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
const v1, 0x7f100030
invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v1
sget-object v2, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;->SNACK_SUCCESS:Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;
invoke-interface {v0, v1, v2}, Lhurriyet/mobil/android/hurriyet/HurriyetPageController;->showSnackBar(Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;)V
.line 985
:cond_46
:goto_46
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->modifiedDate:Ljava/lang/String;
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mPreviousModifiedDate:Ljava/lang/String;
return-void
.end method
.method private startVoiceReading()V
.registers 3
.line 1334
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x80
invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V
.line 1335
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->closeFAB()V
const/4 v0, 0x1
.line 1337
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTTSRunning:Z
.line 1339
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V
.line 1340
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeIn(Landroid/view/View;)V
.line 1341
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V
.line 1342
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
invoke-virtual {p0, v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->readFromText(Ljava/lang/String;Landroid/speech/tts/TextToSpeech;)V
return-void
.end method
.method private stopVoiceReading()V
.registers 3
.line 1346
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x80
invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V
const/4 v0, 0x0
.line 1348
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTTSRunning:Z
.line 1350
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
invoke-direct {p0, v0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->animateFadeOut(Landroid/view/View;)V
.line 1352
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
if-eqz v0, :cond_24
invoke-virtual {v0}, Landroid/speech/tts/TextToSpeech;->isSpeaking()Z
move-result v0
if-eqz v0, :cond_24
.line 1353
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
invoke-virtual {v0}, Landroid/speech/tts/TextToSpeech;->stop()I
:cond_24
return-void
.end method
# virtual methods
.method public getArrayIndex([II)I
.registers 6
const/4 v0, 0x0
const/4 v1, 0x0
.line 465
:goto_2
array-length v2, p1
if-ge v1, v2, :cond_e
.line 467
aget v2, p1, v1
if-ne v2, p2, :cond_b
move v0, v1
goto :goto_e
:cond_b
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_e
:goto_e
return v0
.end method
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
.registers 3
.line 207
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
const v0, 0x7f0c0063
.line 208
iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I
.line 209
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object p1
const/4 v0, 0x4
invoke-virtual {p1, v0}, Landroidx/fragment/app/FragmentActivity;->setRequestedOrientation(I)V
return-void
.end method
.method public getDataLayer()Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
.registers 2
.line 481
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
return-object v0
.end method
.method public getDetailContent()Ltr/com/hurriyet/androidsdk/model/content/Content;
.registers 2
.line 1595
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
return-object v0
.end method
.method public isTabVisible()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public onCreate(Landroid/os/Bundle;)V
.registers 6
.line 214
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onCreate(Landroid/os/Bundle;)V
const/4 p1, 0x1
.line 215
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsAlive:Z
.line 216
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
const-string v0, "article"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object p1
check-cast p1, Ltr/com/hurriyet/androidsdk/model/content/Content;
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
.line 217
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
const-string v0, "is_slider"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
move-result p1
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsSlider:Z
.line 218
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
const-string v0, "is_init_position"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z
move-result p1
iput-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsInitPosition:Z
.line 219
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
const-string v0, "list_position"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
move-result p1
iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailPagerItemPosition:I
.line 221
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->title:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\n\n "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->description:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
.line 223
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
if-eqz p1, :cond_b5
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object p1, p1, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
if-lez p1, :cond_b5
.line 224
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
.line 225
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
iget-object v0, v0, Ltr/com/hurriyet/androidsdk/model/content/Content;->details:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_73
:goto_73
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_9e
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;
.line 226
invoke-virtual {v1}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getType()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_73
invoke-virtual {v1}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getType()Ljava/lang/String;
move-result-object v2
const-string v3, "Text"
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_73
.line 228
invoke-virtual {v1}, Ltr/com/hurriyet/androidsdk/response/content/HtmlNode;->getText()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "\n "
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_73
.line 231
:cond_9e
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
.line 235
:cond_b5
new-instance p1, Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
invoke-direct {p1}, Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;-><init>()V
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
.line 236
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getNewsTextSize()I
move-result p1
iput p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentInt:I
.line 237
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getNewsTextSizeDesc()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentString:Ljava/lang/String;
return-void
.end method
.method public onDestroy()V
.registers 3
.line 1491
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
if-eqz v0, :cond_9
.line 1493
:try_start_4
invoke-virtual {v0}, Landroid/speech/tts/TextToSpeech;->stop()I
:try_end_7
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_7} :catch_8
goto :goto_9
:catch_8
nop
.line 1497
:cond_9
:goto_9
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
const/4 v1, 0x0
if-eqz v0, :cond_13
.line 1498
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->destroy()V
.line 1499
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
:cond_13
const/4 v0, 0x0
.line 1501
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsAlive:Z
.line 1502
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mSwipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
.line 1503
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContentRV:Landroidx/recyclerview/widget/RecyclerView;
.line 1504
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mDetailContentLLM:Landroidx/recyclerview/widget/LinearLayoutManager;
.line 1505
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
.line 1506
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->dataLayer:Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
.line 1507
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
.line 1508
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABCoordinatorLayout:Landroidx/coordinatorlayout/widget/CoordinatorLayout;
.line 1509
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFAB:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.line 1510
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSize:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.line 1511
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABVoiceReading:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.line 1512
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABReadingList:Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.line 1513
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFabTutorialStarter:Ljava/lang/Runnable;
.line 1514
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->vFABBackground:Landroid/view/View;
.line 1515
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->tvReadListInformationText:Landroid/widget/TextView;
.line 1516
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
.line 1517
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
.line 1518
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBar:Lhurriyet/mobil/android/hurriyet/views/FractionalSeekBar;
.line 1519
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->txtSeekBarDescriptive:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
.line 1520
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linSeekBarDescriptive:Landroid/widget/LinearLayout;
.line 1521
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->linFractional:Landroid/widget/LinearLayout;
.line 1522
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mLoadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.line 1523
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pauseListener:Ljava/lang/Runnable;
.line 1524
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->strNews:Ljava/lang/String;
.line 1525
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValues:[I
.line 1526
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValueCurrentString:Ljava/lang/String;
.line 1527
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarValuesDesc:[Ljava/lang/String;
.line 1528
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mReadingListDB:Lhurriyet/mobil/android/hurriyet/database/ReadingListDB;
.line 1529
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->feedList:Ljava/util/ArrayList;
.line 1530
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
.line 1531
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mPreviousModifiedDate:Ljava/lang/String;
.line 1532
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABCloseAnimation:Landroid/view/animation/Animation;
.line 1533
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFadeInAnimation:Landroid/view/animation/Animation;
.line 1534
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFadeOutAnimation:Landroid/view/animation/Animation;
.line 1535
iput-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
.line 1537
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onDestroy()V
return-void
.end method
.method public onInit(I)V
.registers 4
.line 1450
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->isViewDestroyed()Z
move-result v0
if-nez v0, :cond_53
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
if-nez v0, :cond_b
goto :goto_53
:cond_b
if-nez p1, :cond_48
.line 1454
new-instance p1, Ljava/util/Locale;
const-string v0, "tr"
const-string v1, "TR"
invoke-direct {p1, v0, v1}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V
.line 1455
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
invoke-virtual {v0, p1}, Landroid/speech/tts/TextToSpeech;->isLanguageAvailable(Ljava/util/Locale;)I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_34
.line 1457
:try_start_1f
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
invoke-virtual {v0, p1}, Landroid/speech/tts/TextToSpeech;->setLanguage(Ljava/util/Locale;)I
:try_end_24
.catch Ljava/lang/Exception; {:try_start_1f .. :try_end_24} :catch_25
goto :goto_3d
:catch_25
const p1, 0x7f100033
.line 1463
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object p1
sget-object v0, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;->SNACK_INFO:Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABCoordinatorLayout:Landroidx/coordinatorlayout/widget/CoordinatorLayout;
invoke-static {p1, v0, v1}, Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper;->showSnackBar(Ljava/lang/String;Lhurriyet/mobil/android/hurriyet/utils/SnackbarHelper$SnackBarType;Landroid/view/View;)V
goto :goto_3d
.line 1466
:cond_34
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
invoke-virtual {p1, v0}, Landroid/speech/tts/TextToSpeech;->setLanguage(Ljava/util/Locale;)I
.line 1469
:goto_3d
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$19;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$19;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
invoke-virtual {p1, v0}, Landroid/speech/tts/TextToSpeech;->setOnUtteranceProgressListener(Landroid/speech/tts/UtteranceProgressListener;)I
goto :goto_53
:cond_48
const-string p1, "TTS"
const-string v0, "Initialization Failed!"
.line 1485
filled-new-array {p1, v0}, [Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/appcore/utils/L;->e([Ljava/lang/String;)V
:cond_53
:goto_53
return-void
.end method
.method public onPause()V
.registers 3
const/4 v0, 0x1
.line 1430
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsPaused:Z
.line 1431
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mTextToSpeech:Landroid/speech/tts/TextToSpeech;
if-eqz v0, :cond_a
.line 1432
invoke-virtual {v0}, Landroid/speech/tts/TextToSpeech;->stop()I
.line 1434
:cond_a
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->pauseListener:Ljava/lang/Runnable;
if-eqz v0, :cond_11
.line 1435
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
.line 1437
:cond_11
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
if-eqz v0, :cond_25
.line 1438
invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V
.line 1439
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V
.line 1440
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->onPause()V
const/4 v0, 0x0
.line 1441
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->webView:Landroid/webkit/WebView;
:cond_25
const/4 v0, 0x0
.line 1443
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->m_iAmVisible:Z
.line 1444
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x80
invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V
.line 1445
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onPause()V
return-void
.end method
.method public onResume()V
.registers 5
.line 1406
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onResume()V
.line 1407
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsPaused:Z
if-nez v0, :cond_1d
.line 1408
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetHelper;->checkInternetConnection()Z
move-result v0
if-eqz v0, :cond_1d
.line 1409
invoke-static {}, Lcom/appcore/CoreApp;->get()Lcom/appcore/CoreApp;
move-result-object v0
iget-object v0, v0, Lcom/appcore/CoreApp;->mHandler:Landroid/os/Handler;
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$18;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$18;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const-wide/16 v2, 0x3e8
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
.line 1419
:cond_1d
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object v0
check-cast v0, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;
iget v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailPagerItemPosition:I
invoke-virtual {v0, v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/ContentDetailFragment;->putFragment(ILandroidx/fragment/app/Fragment;)V
.line 1420
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->prepareTextToSpeech()V
.line 1422
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x80
invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V
.line 1423
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentActivity;->setRequestedOrientation(I)V
.line 1424
iput-boolean v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->m_iAmVisible:Z
.line 1425
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
invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/hurriyetvideoplayer/VideoPlayerRemoteController;->setFragmentVisibility(Z)V
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.registers 5
.line 242
invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 243
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->findViews(Landroid/view/View;)V
.line 244
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initViews()V
.line 245
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->initAnimations()V
.line 247
new-instance p1, Landroid/os/Handler;
invoke-direct {p1}, Landroid/os/Handler;-><init>()V
new-instance p2, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$1;
invoke-direct {p2, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
const-wide/16 v0, 0x1f4
invoke-virtual {p1, p2, v0, v1}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
return-void
.end method
.method public readFromText(Ljava/lang/String;Landroid/speech/tts/TextToSpeech;)V
.registers 8
.line 1313
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x0
const/16 v2, 0x12
if-lt v0, v2, :cond_1b
.line 1314
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
invoke-static {}, Landroid/speech/tts/TextToSpeech;->getMaxSpeechInputLength()I
move-result v2
if-le v0, v2, :cond_1b
.line 1315
invoke-static {}, Landroid/speech/tts/TextToSpeech;->getMaxSpeechInputLength()I
move-result v0
add-int/lit8 v0, v0, -0x1
invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p1
.line 1323
:cond_1b
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
const-string v2, "utteranceId"
const-string v3, ""
.line 1324
invoke-virtual {v0, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 1326
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x15
if-lt v2, v4, :cond_31
.line 1327
invoke-virtual {p2, p1, v1, v0, v3}, Landroid/speech/tts/TextToSpeech;->speak(Ljava/lang/CharSequence;ILandroid/os/Bundle;Ljava/lang/String;)I
goto :goto_35
:cond_31
const/4 v0, 0x0
.line 1329
invoke-virtual {p2, p1, v1, v0}, Landroid/speech/tts/TextToSpeech;->speak(Ljava/lang/String;ILjava/util/HashMap;)I
:goto_35
return-void
.end method
.method public setDetailContent(Ltr/com/hurriyet/androidsdk/model/content/Content;)V
.registers 2
.line 1599
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->detailContent:Ltr/com/hurriyet/androidsdk/model/content/Content;
return-void
.end method
.method public setMenuVisibility(Z)V
.registers 2
.line 799
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->setMenuVisibility(Z)V
return-void
.end method
.method public setUserVisibleHint(Z)V
.registers 5
if-eqz p1, :cond_5
.line 1369
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->requestInterstitial()V
:cond_5
const/4 v0, 0x1
const/4 v1, 0x0
if-eqz p1, :cond_14
.line 1372
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->sendLogScreenEvent()V
.line 1375
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
if-eqz v2, :cond_1b
.line 1376
invoke-virtual {v2, v0}, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;->setTrackingEnabled(Z)V
goto :goto_1b
.line 1379
:cond_14
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->scrollTrackingHelper:Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;
if-eqz v2, :cond_1b
.line 1380
invoke-virtual {v2, v1}, Lhurriyet/mobil/android/hurriyet/utils/RecyclerViewScrollTrackingHelper;->setTrackingEnabled(Z)V
.line 1384
:cond_1b
:goto_1b
invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->isResumed()Z
move-result v2
if-eqz v2, :cond_66
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->contentAdapter:Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;
if-eqz v2, :cond_66
.line 1385
invoke-virtual {v2}, Lhurriyet/mobil/android/hurriyet/adapters/NewsDetailAdapter;->notifyDataSetChanged()V
.line 1386
iget-boolean v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
if-eqz v2, :cond_36
iget-boolean v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTTSRunning:Z
if-nez v2, :cond_36
iget-boolean v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTrackStopped:Z
if-eqz v2, :cond_36
.line 1387
iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mShouldFABClose:Z
.line 1389
:cond_36
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mFABTextSizeSeekBarArea:Landroid/widget/RelativeLayout;
invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getVisibility()I
move-result v0
if-nez v0, :cond_4c
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsTrackStopped:Z
if-eqz v0, :cond_4c
iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mShouldFABClose:Z
if-eqz v0, :cond_4c
.line 1390
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->reOpenFAB()V
.line 1391
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->hideAdjustingTextSize()V
.line 1393
:cond_4c
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleTTS:Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getVisibility()I
move-result v0
if-nez v0, :cond_5d
.line 1394
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->reOpenFAB()V
.line 1395
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->stopVoiceReading()V
.line 1396
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->prepareTextToSpeech()V
:cond_5d
if-nez p1, :cond_66
.line 1398
iget-boolean p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->mIsFABOpen:Z
if-eqz p1, :cond_66
.line 1399
invoke-virtual {p0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;->toggleFAB(I)V
:cond_66
return-void
.end method
.method public toggleFAB(I)V
.registers 6
.line 1099
invoke-static {}, Lcom/appcore/CoreApp;->get()Lcom/appcore/CoreApp;
move-result-object v0
iget-object v0, v0, Lcom/appcore/CoreApp;->mHandler:Landroid/os/Handler;
new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$16;
invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment$16;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/NewsDetailFragment;)V
int-to-long v2, p1
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
return-void
.end method