.class public Lcom/moji/tool/preferences/CtaPrefer;
.super Lcom/moji/tool/preferences/core/BasePreferences;
.source "CtaPrefer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;
    }
.end annotation


# static fields
.field public static a:Z = false

.field public static b:Z = false

.field private static d:Lcom/moji/tool/preferences/CtaPrefer;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    .line 20
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/moji/tool/preferences/core/BasePreferences;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public static c()Lcom/moji/tool/preferences/CtaPrefer;
    .locals 1

    .line 24
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer;->d:Lcom/moji/tool/preferences/CtaPrefer;

    if-nez v0, :cond_0

    .line 25
    new-instance v0, Lcom/moji/tool/preferences/CtaPrefer;

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

    sput-object v0, Lcom/moji/tool/preferences/CtaPrefer;->d:Lcom/moji/tool/preferences/CtaPrefer;

    const/4 v0, 0x0

    .line 26
    sput-boolean v0, Lcom/moji/tool/preferences/CtaPrefer;->a:Z

    .line 28
    :cond_0
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer;->d:Lcom/moji/tool/preferences/CtaPrefer;

    return-object v0
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    const-string v0, "external"

    return-object v0
.end method

.method public a(Z)V
    .locals 2

    .line 54
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->IS_USAGE_GRANTED:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V

    .line 55
    sput-boolean p1, Lcom/moji/tool/preferences/CtaPrefer;->a:Z

    return-void
.end method

.method public b()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public b(Z)V
    .locals 1

    const/4 v0, 0x1

    .line 104
    sput-boolean v0, Lcom/moji/tool/preferences/CtaPrefer;->b:Z

    .line 105
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->USER_BOOT_AGREE_PERMISSION:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p0, v0, p1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V

    return-void
.end method

.method public c(Z)V
    .locals 1

    .line 122
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->USER_CTA_REMIND:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p0, v0, p1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V

    return-void
.end method

.method public d()Z
    .locals 2

    .line 63
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->IS_USAGE_GRANTED:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z

    move-result v0

    return v0
.end method

.method public e()Z
    .locals 5

    .line 71
    invoke-virtual {p0}, Lcom/moji/tool/preferences/CtaPrefer;->f()Z

    move-result v0

    .line 72
    invoke-virtual {p0}, Lcom/moji/tool/preferences/CtaPrefer;->g()Z

    move-result v1

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

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "Granted cta canUseGrantedBehavior bootAgree = "

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

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

    const-string v4, ",isRemind = "

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

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

    const-string v4, ",isUsageGranted = "

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

    .line 75
    invoke-virtual {p0}, Lcom/moji/tool/preferences/CtaPrefer;->d()Z

    move-result v4

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

    const-string v4, ",isUserAgreeCta = "

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

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

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

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

    move-result-object v3

    .line 74
    invoke-virtual {v2, v3}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    if-nez v1, :cond_2

    .line 82
    invoke-virtual {p0}, Lcom/moji/tool/preferences/CtaPrefer;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

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

    if-eqz v0, :cond_3

    goto :goto_0

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

    if-eqz v0, :cond_3

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    .line 93
    :goto_0
    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 v3, "Granted cta canUseGrantedBehavior result = "

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

    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

    return v2
.end method

.method public f()Z
    .locals 2

    .line 113
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->USER_BOOT_AGREE_PERMISSION:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z

    move-result v0

    return v0
.end method

.method public g()Z
    .locals 2

    .line 130
    sget-object v0, Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;->USER_CTA_REMIND:Lcom/moji/tool/preferences/CtaPrefer$KeyConstant;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/moji/tool/preferences/CtaPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z

    move-result v0

    return v0
.end method
