ContractFragment.smali
.class public Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "ContractFragment.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
}
.end annotation
# instance fields
.field private backTv:Landroid/widget/TextView;
.field private contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
.field private loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.field private textViewContent:Landroid/widget/TextView;
# direct methods
.method public constructor <init>()V
.registers 1
.line 27
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V
return-void
.end method
.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;)Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
.registers 1
.line 27
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
return-object p0
.end method
.method static synthetic access$100(Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;)Landroid/widget/TextView;
.registers 1
.line 27
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->textViewContent:Landroid/widget/TextView;
return-object p0
.end method
.method private initViews(Landroid/view/View;)V
.registers 4
const v0, 0x7f0900de
.line 60
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/ContractFragment;->textViewContent:Landroid/widget/TextView;
const v0, 0x7f0900df
.line 61
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/ContractFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
const v0, 0x7f0900dd
.line 62
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->backTv:Landroid/widget/TextView;
.line 64
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$1;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;)V
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 74
iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
const-string v0, ""
if-eqz p1, :cond_61
.line 75
sget-object p1, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$3;->$SwitchMap$hurriyet$mobil$android$hurriyet$fragments$ContractFragment$ContractType:[I
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
invoke-virtual {v1}, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;->ordinal()I
move-result v1
aget p1, p1, v1
const/4 v1, 0x1
if-eq p1, v1, :cond_57
const/4 v1, 0x2
if-eq p1, v1, :cond_4d
const/4 v1, 0x3
if-eq p1, v1, :cond_43
goto :goto_61
:cond_43
const p1, 0x7f10016d
.line 85
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v0
const-string p1, "commentRules"
goto :goto_62
:cond_4d
const p1, 0x7f100024
.line 81
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v0
const-string p1, "userContract"
goto :goto_62
:cond_57
const p1, 0x7f10001f
.line 77
invoke-static {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v0
const-string p1, "privacyPolicy"
goto :goto_62
:cond_61
:goto_61
move-object p1, v0
.line 90
:goto_62
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->backTv:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 91
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;
invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->show()V
.line 92
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$2;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;)V
invoke-static {p1, v0}, Ltr/com/hurriyet/androidsdk/HurriyetSDK;->getContract(Ljava/lang/String;Ltr/com/hurriyet/androidsdk/callback/ContractCallback;)Lretrofit2/Call;
return-void
.end method
.method public static newInstance()Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;
.registers 1
.line 35
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;
invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;-><init>()V
return-object v0
.end method
# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
.registers 3
.line 49
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
const v0, 0x7f0c005b
.line 50
iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I
return-void
.end method
.method public isTabVisible()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method protected onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V
.registers 4
.line 40
move-object v0, p1
check-cast v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/ContractFragmentData;
if-eqz v0, :cond_9
.line 42
iget-object v0, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/ContractFragmentData;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
.line 44
:cond_9
invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V
return-void
.end method
.method public onResume()V
.registers 4
.line 124
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onResume()V
.line 126
new-instance v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;
invoke-direct {v0}, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;-><init>()V
.line 128
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
sget-object v2, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;->PRIVACY_POLICY:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
if-ne v1, v2, :cond_1b
const v1, 0x7f100119
.line 129
invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
.line 130
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
goto :goto_2d
.line 131
:cond_1b
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->contractType:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
sget-object v2, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;->USER_AGREEMENT:Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment$ContractType;
if-ne v1, v2, :cond_2d
const v1, 0x7f10011e
.line 132
invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Ltr/com/hurriyet/androidsdk/response/content/DataLayer;->trackingUrl:Ljava/lang/String;
.line 133
invoke-static {v0}, Lhurriyet/mobil/android/hurriyet/utils/HurriyetAnalytics;->logScreen(Ltr/com/hurriyet/androidsdk/response/content/DataLayer;)V
:cond_2d
:goto_2d
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.registers 3
.line 55
invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 56
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/ContractFragment;->initViews(Landroid/view/View;)V
return-void
.end method