.class public abstract Lcom/moji/mvpframe/MJPreferenceFragment;
.super Landroid/preference/PreferenceFragment;
.source "MJPreferenceFragment.java"


# instance fields
.field private a:Lcom/moji/titlebar/MJTitleBar;

.field private b:Landroid/widget/ListView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 21
    invoke-direct {p0}, Landroid/preference/PreferenceFragment;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mvpframe/MJPreferenceFragment;)Landroid/widget/ListView;
    .locals 0

    .line 21
    iget-object p0, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->b:Landroid/widget/ListView;

    return-object p0
.end method


# virtual methods
.method protected abstract a()I
    .annotation build Landroid/support/annotation/XmlRes;
    .end annotation
.end method

.method protected a(Landroid/widget/ListView;)V
    .locals 0

    return-void
.end method

.method protected abstract b()Ljava/lang/String;
    .annotation build Landroid/support/annotation/NonNull;
    .end annotation
.end method

.method protected b(Landroid/widget/ListView;)V
    .locals 0

    return-void
.end method

.method protected d()V
    .locals 0

    return-void
.end method

.method protected f()V
    .locals 0

    return-void
.end method

.method protected j()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public k()Lcom/moji/titlebar/MJTitleBar;
    .locals 1

    .line 122
    iget-object v0, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->a:Lcom/moji/titlebar/MJTitleBar;

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 43
    invoke-super {p0, p1}, Landroid/preference/PreferenceFragment;->onCreate(Landroid/os/Bundle;)V

    .line 44
    invoke-virtual {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->a()I

    move-result p1

    invoke-virtual {p0, p1}, Lcom/moji/mvpframe/MJPreferenceFragment;->addPreferencesFromResource(I)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1

    .line 50
    sget p3, Lcom/moji/widget/R$layout;->setting_custom_layout:I

    const/4 v0, 0x0

    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 51
    sget p2, Lcom/moji/widget/R$id;->mj_title_bar:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Lcom/moji/titlebar/MJTitleBar;

    iput-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->a:Lcom/moji/titlebar/MJTitleBar;

    .line 52
    invoke-virtual {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->j()Z

    move-result p2

    if-eqz p2, :cond_0

    .line 53
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {p2, v0}, Lcom/moji/titlebar/MJTitleBar;->setVisibility(I)V

    .line 54
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->b()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 56
    :cond_0
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->a:Lcom/moji/titlebar/MJTitleBar;

    const/16 p3, 0x8

    invoke-virtual {p2, p3}, Lcom/moji/titlebar/MJTitleBar;->setVisibility(I)V

    :goto_0
    const p2, 0x102000a

    .line 59
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ListView;

    iput-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->b:Landroid/widget/ListView;

    .line 60
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->b:Landroid/widget/ListView;

    new-instance p3, Lcom/moji/mvpframe/MJPreferenceFragment$1;

    invoke-direct {p3, p0}, Lcom/moji/mvpframe/MJPreferenceFragment$1;-><init>(Lcom/moji/mvpframe/MJPreferenceFragment;)V

    invoke-virtual {p2, p3}, Landroid/widget/ListView;->post(Ljava/lang/Runnable;)Z

    .line 69
    invoke-virtual {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->f()V

    .line 70
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->b:Landroid/widget/ListView;

    invoke-virtual {p0, p2}, Lcom/moji/mvpframe/MJPreferenceFragment;->b(Landroid/widget/ListView;)V

    .line 71
    iget-object p2, p0, Lcom/moji/mvpframe/MJPreferenceFragment;->b:Landroid/widget/ListView;

    invoke-virtual {p0, p2}, Lcom/moji/mvpframe/MJPreferenceFragment;->a(Landroid/widget/ListView;)V

    .line 72
    invoke-virtual {p0}, Lcom/moji/mvpframe/MJPreferenceFragment;->d()V

    return-object p1
.end method

.method public onPause()V
    .locals 1

    .line 28
    invoke-super {p0}, Landroid/preference/PreferenceFragment;->onPause()V

    .line 29
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    return-void
.end method

.method public onResume()V
    .locals 3

    .line 34
    invoke-super {p0}, Landroid/preference/PreferenceFragment;->onResume()V

    .line 35
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    const-string v0, "View-current"

    .line 36
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "current view is ("

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

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    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;

    const-string v2, ".java:1) click me for jump source file."

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

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
