.class public Lcom/moji/mjweather/TableScreenFragmentControl;
.super Ljava/lang/Object;
.source "TableScreenFragmentControl.java"


# instance fields
.field private final a:Lcom/moji/mjweather/TableScreenFragment;

.field private b:Lcom/moji/preferences/ProcessPrefer;

.field private c:Lcom/moji/tool/preferences/CtaPrefer;

.field private d:Z

.field private e:Z


# direct methods
.method public constructor <init>(Lcom/moji/mjweather/TableScreenFragment;)V
    .locals 1

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

    .line 35
    new-instance v0, Lcom/moji/preferences/ProcessPrefer;

    invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->b:Lcom/moji/preferences/ProcessPrefer;

    .line 36
    invoke-static {}, Lcom/moji/tool/preferences/CtaPrefer;->c()Lcom/moji/tool/preferences/CtaPrefer;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    const/4 v0, 0x1

    .line 114
    iput-boolean v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->e:Z

    .line 40
    iput-object p1, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/TableScreenFragmentControl;)Lcom/moji/tool/preferences/CtaPrefer;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjweather/TableScreenFragmentControl;Z)Z
    .locals 0

    .line 32
    iput-boolean p1, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->e:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/TableScreenFragmentControl;)Z
    .locals 0

    .line 32
    iget-boolean p0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->e:Z

    return p0
.end method

.method static synthetic b(Lcom/moji/mjweather/TableScreenFragmentControl;Z)Z
    .locals 0

    .line 32
    iput-boolean p1, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->d:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/mjweather/TableScreenFragmentControl;)Lcom/moji/mjweather/TableScreenFragment;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/mjweather/TableScreenFragmentControl;)Lcom/moji/preferences/ProcessPrefer;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->b:Lcom/moji/preferences/ProcessPrefer;

    return-object p0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1

    .line 94
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, p1, p2, p3}, Lcom/moji/mjweather/TableScreenFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public a()V
    .locals 4

    .line 49
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    invoke-virtual {v0}, Lcom/moji/tool/preferences/CtaPrefer;->f()Z

    move-result v0

    .line 50
    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "Granted cta agreeUserBootPermission = "

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

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

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

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    if-eqz v0, :cond_1

    .line 53
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 54
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->b:Lcom/moji/preferences/ProcessPrefer;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/moji/preferences/ProcessPrefer;->a(J)V

    .line 56
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenFragmentControl;->b()V

    goto/16 :goto_0

    .line 58
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    invoke-virtual {v0}, Lcom/moji/tool/preferences/CtaPrefer;->d()Z

    move-result v0

    iput-boolean v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->d:Z

    .line 59
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Granted cta isUsagePermGranted = "

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

    iget-boolean v2, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->d:Z

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

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

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 61
    iget-boolean v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->d:Z

    if-nez v0, :cond_2

    .line 62
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/TableScreenFragmentControl;->a(Landroid/support/v4/app/Fragment;)V

    goto :goto_0

    .line 64
    :cond_2
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Granted cta isUserAgreeCta = "

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

    iget-object v2, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    sget-boolean v2, Lcom/moji/tool/preferences/CtaPrefer;->a:Z

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

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

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 65
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    sget-boolean v0, Lcom/moji/tool/preferences/CtaPrefer;->a:Z

    if-eqz v0, :cond_3

    .line 66
    invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenFragmentControl;->b()V

    goto :goto_0

    .line 68
    :cond_3
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Granted cta getUserNextRemindCta = "

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

    iget-object v2, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    invoke-virtual {v2}, Lcom/moji/tool/preferences/CtaPrefer;->g()Z

    move-result v2

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

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

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 69
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->c:Lcom/moji/tool/preferences/CtaPrefer;

    invoke-virtual {v0}, Lcom/moji/tool/preferences/CtaPrefer;->g()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 70
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/TableScreenFragmentControl;->a(Landroid/support/v4/app/Fragment;)V

    goto :goto_0

    .line 72
    :cond_4
    invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenFragmentControl;->b()V

    :goto_0
    return-void
.end method

.method public a(ILjava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 99
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjweather/TableScreenFragment;->a(ILjava/util/List;)V

    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 1

    .line 44
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/TableScreenFragment;->a(Landroid/os/Bundle;)V

    .line 45
    invoke-virtual {p0}, Lcom/moji/mjweather/TableScreenFragmentControl;->a()V

    return-void
.end method

.method public a(Landroid/support/v4/app/Fragment;)V
    .locals 3

    if-eqz p1, :cond_1

    .line 119
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 120
    :cond_0
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f0b010b

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v1, 0x7f09013c

    .line 121
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    .line 122
    new-instance v2, Lcom/moji/mjweather/TableScreenFragmentControl$1;

    invoke-direct {v2, p0}, Lcom/moji/mjweather/TableScreenFragmentControl$1;-><init>(Lcom/moji/mjweather/TableScreenFragmentControl;)V

    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 128
    new-instance v1, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;-><init>(Landroid/content/Context;)V

    .line 129
    invoke-virtual {v1, v0}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;->a(Landroid/view/View;)Lcom/moji/dialog/control/MJDialogCustomControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0354

    .line 130
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogCustomControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0024

    .line 131
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    const v1, 0x7f0e0022

    .line 132
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/TableScreenFragmentControl$3;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/TableScreenFragmentControl$3;-><init>(Lcom/moji/mjweather/TableScreenFragmentControl;)V

    .line 133
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/TableScreenFragmentControl$2;

    invoke-direct {v1, p0, p1}, Lcom/moji/mjweather/TableScreenFragmentControl$2;-><init>(Lcom/moji/mjweather/TableScreenFragmentControl;Landroid/support/v4/app/Fragment;)V

    .line 159
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    const/4 v0, 0x0

    .line 168
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->c(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b()Lcom/moji/dialog/MJDialog;

    return-void

    :cond_1
    :goto_0
    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 107
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/TableScreenFragment;->b(Z)V

    return-void
.end method

.method public b()V
    .locals 2

    .line 81
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 82
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->c()V

    goto :goto_0

    .line 84
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/mojiweather/area/AreaManagePrefer;->c()Lcom/mojiweather/area/AreaManagePrefer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/mojiweather/area/AreaManagePrefer;->d()I

    move-result v0

    if-nez v0, :cond_1

    .line 85
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/TableScreenFragment;->a(Z)V

    .line 86
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->d()V

    goto :goto_0

    .line 88
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->e()Z

    :goto_0
    return-void
.end method

.method public b(ILjava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 103
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjweather/TableScreenFragment;->b(ILjava/util/List;)V

    return-void
.end method

.method public c()V
    .locals 1

    .line 111
    iget-object v0, p0, Lcom/moji/mjweather/TableScreenFragmentControl;->a:Lcom/moji/mjweather/TableScreenFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TableScreenFragment;->f()V

    return-void
.end method
