SettingFragment.smali
.class public Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "SettingFragment.java"
# instance fields
.field private aboutUsV:Landroid/view/View;
.field private autoVideoPlayTv:Landroid/widget/TextView;
.field private autoVideoPlayV:Landroid/view/View;
.field private contactUsV:Landroid/view/View;
.field private loginV:Landroid/view/View;
.field private logoutV:Landroid/view/View;
.field private notificationsSettings:Landroid/view/View;
.field private final onCheckedChangeListener:Lcom/rey/material/widget/Switch$OnCheckedChangeListener;
.field private final onClickListener:Lcom/appcore/utils/customlisteners/CoreOnClickListener;
.field private pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
.field private profileNameTv:Landroid/widget/TextView;
.field private profileSettings:Landroid/view/View;
.field private readingListV:Landroid/view/View;
.field private todaysAuthorsSwc:Lcom/rey/material/widget/Switch;
.field private todaysAuthorsV:Landroid/view/View;
# direct methods
.method public constructor <init>()V
.registers 2
.line 39
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V
.line 118
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment$1;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->onCheckedChangeListener:Lcom/rey/material/widget/Switch$OnCheckedChangeListener;
.line 134
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment$2;
invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)V
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->onClickListener:Lcom/appcore/utils/customlisteners/CoreOnClickListener;
return-void
.end method
.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Lcom/rey/material/widget/Switch;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsSwc:Lcom/rey/material/widget/Switch;
return-object p0
.end method
.method static synthetic access$100(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->notificationsSettings:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$1000(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->logoutV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$1100(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)V
.registers 1
.line 39
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->initLoginField()V
return-void
.end method
.method static synthetic access$200(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
return-object p0
.end method
.method static synthetic access$300(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->loginV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$400(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/widget/TextView;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileNameTv:Landroid/widget/TextView;
return-object p0
.end method
.method static synthetic access$500(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->readingListV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$600(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$700(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->autoVideoPlayV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$800(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->contactUsV:Landroid/view/View;
return-object p0
.end method
.method static synthetic access$900(Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;)Landroid/view/View;
.registers 1
.line 39
iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->aboutUsV:Landroid/view/View;
return-object p0
.end method
.method private findViews(Landroid/view/View;)V
.registers 3
const v0, 0x7f0902b1
.line 80
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/SettingFragment;->notificationsSettings:Landroid/view/View;
const v0, 0x7f0902aa
.line 81
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/SettingFragment;->loginV:Landroid/view/View;
const v0, 0x7f0902ae
.line 82
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/SettingFragment;->profileNameTv:Landroid/widget/TextView;
const v0, 0x7f0902af
.line 83
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/SettingFragment;->profileSettings:Landroid/view/View;
const v0, 0x7f0902b0
.line 84
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/SettingFragment;->readingListV:Landroid/view/View;
const v0, 0x7f0902ac
.line 85
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/SettingFragment;->todaysAuthorsV:Landroid/view/View;
const v0, 0x7f0902ad
.line 86
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/rey/material/widget/Switch;
iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsSwc:Lcom/rey/material/widget/Switch;
const v0, 0x7f0902b2
.line 87
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/SettingFragment;->autoVideoPlayV:Landroid/view/View;
const v0, 0x7f0902b3
.line 88
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/SettingFragment;->autoVideoPlayTv:Landroid/widget/TextView;
const v0, 0x7f0902a7
.line 89
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/SettingFragment;->contactUsV:Landroid/view/View;
const v0, 0x7f0902a6
.line 90
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/SettingFragment;->aboutUsV:Landroid/view/View;
const v0, 0x7f0902ab
.line 91
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->logoutV:Landroid/view/View;
return-void
.end method
.method private initLoginField()V
.registers 4
.line 103
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;->isUserLogged()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_2a
.line 104
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->loginV:Landroid/view/View;
const/4 v2, 0x4
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
.line 105
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->logoutV:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 106
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileNameTv:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 107
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileSettings:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 108
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileNameTv:Landroid/widget/TextView;
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getUserFullName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_40
.line 110
:cond_2a
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->loginV:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 111
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->logoutV:Landroid/view/View;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 112
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileNameTv:Landroid/widget/TextView;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 113
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileSettings:Landroid/view/View;
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
:goto_40
return-void
.end method
.method private initViews()V
.registers 5
.line 95
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsSwc:Lcom/rey/material/widget/Switch;
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getOfflineAuthorsActive()Z
move-result v1
invoke-virtual {v0, v1}, Lcom/rey/material/widget/Switch;->setChecked(Z)V
.line 96
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsSwc:Lcom/rey/material/widget/Switch;
iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->onCheckedChangeListener:Lcom/rey/material/widget/Switch$OnCheckedChangeListener;
invoke-virtual {v0, v1}, Lcom/rey/material/widget/Switch;->setOnCheckedChangeListener(Lcom/rey/material/widget/Switch$OnCheckedChangeListener;)V
.line 97
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->autoVideoPlayTv:Landroid/widget/TextView;
invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getVideoAutoplayMode()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 98
iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->onClickListener:Lcom/appcore/utils/customlisteners/CoreOnClickListener;
const/16 v1, 0x9
new-array v1, v1, [Landroid/view/View;
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->notificationsSettings:Landroid/view/View;
const/4 v3, 0x0
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->loginV:Landroid/view/View;
const/4 v3, 0x1
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->profileNameTv:Landroid/widget/TextView;
const/4 v3, 0x2
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->readingListV:Landroid/view/View;
const/4 v3, 0x3
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->todaysAuthorsV:Landroid/view/View;
const/4 v3, 0x4
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->autoVideoPlayV:Landroid/view/View;
const/4 v3, 0x5
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->contactUsV:Landroid/view/View;
const/4 v3, 0x6
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->aboutUsV:Landroid/view/View;
const/4 v3, 0x7
aput-object v2, v1, v3
iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->logoutV:Landroid/view/View;
const/16 v3, 0x8
aput-object v2, v1, v3
invoke-virtual {v0, v1}, Lcom/appcore/utils/customlisteners/CoreOnClickListener;->bindViews([Landroid/view/View;)V
.line 99
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->initLoginField()V
return-void
.end method
.method public static newInstance()Lcom/appcore/ui/base/CoreFragment;
.registers 1
.line 58
new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;
invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;-><init>()V
return-object v0
.end method
# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
.registers 3
.line 72
invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
const v0, 0x7f0c0070
.line 73
iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I
return-void
.end method
.method public isTabVisible()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method public onDestroyView()V
.registers 1
.line 192
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onDestroyView()V
return-void
.end method
.method public onResume()V
.registers 1
.line 187
invoke-super {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onResume()V
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.registers 3
.line 64
invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 65
invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->findViews(Landroid/view/View;)V
.line 66
invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->initViews()V
.line 67
invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getH()Lhurriyet/mobil/android/hurriyet/HApp;
move-result-object p1
invoke-virtual {p1}, Lhurriyet/mobil/android/hurriyet/HApp;->getPageController()Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
move-result-object p1
iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/SettingFragment;->pageController:Lhurriyet/mobil/android/hurriyet/HurriyetPageController;
return-void
.end method