k.smali

.class public Lcom/keniu/security/newmain/resultpage/b/k;
.super Lcom/keniu/security/newmain/resultpage/a;
.source "MainIntruderSelfieItem.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;II)V
    .registers 8

    .prologue
    const/16 v3, 0x9

    .line 33
    invoke-direct {p0, p1}, Lcom/keniu/security/newmain/resultpage/a;-><init>(Landroid/content/Context;)V

    .line 34
    iget-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    if-nez v0, :cond_f

    .line 35
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    .line 37
    :cond_f
    iput p2, p0, Lcom/keniu/security/newmain/resultpage/b/k;->g:I

    .line 38
    iput p3, p0, Lcom/keniu/security/newmain/resultpage/b/k;->h:I

    .line 39
    const v0, 0x7f0204fb

    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->a(I)V

    .line 40
    const-string v0, "cm_cn_intrude_cardtext"

    const-string v1, "open"

    const/4 v2, 0x0

    invoke-static {v3, v0, v1, v2}, Lcom/cleanmaster/recommendapps/b;->a(ILjava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    .line 41
    if-eqz v0, :cond_79

    .line 42
    const-string v0, "cm_cn_intrude_cardtext"

    const-string v1, "mainpage"

    const/4 v2, 0x0

    invoke-static {v3, v0, v1, v2}, Lcom/cleanmaster/recommendapps/b;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 43
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_79

    .line 45
    :try_start_33
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 46
    const-string v0, "text"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 47
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 48
    const-string v0, "title"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 49
    const-string v2, "subtitle_default"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 50
    const-string v3, "button"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 51
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_79

    .line 52
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_79

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_79

    .line 53
    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->a(Ljava/lang/CharSequence;)V

    .line 54
    invoke-static {v2}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->b(Ljava/lang/CharSequence;)V

    .line 55
    invoke-virtual {p0, v1}, Lcom/keniu/security/newmain/resultpage/b/k;->c(Ljava/lang/CharSequence;)V
    :try_end_74
    .catch Lorg/json/JSONException; {:try_start_33 .. :try_end_74} :catch_75

    .line 67
    :goto_74
    return-void

    .line 58
    :catch_75
    move-exception v0

    .line 59
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 63
    :cond_79
    iget-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    const v1, 0x7f0a0fb1

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->a(Ljava/lang/CharSequence;)V

    .line 64
    iget-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    const v1, 0x7f0a0fb0

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->b(Ljava/lang/CharSequence;)V

    .line 65
    iget-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    const v1, 0x7f0a1414

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/keniu/security/newmain/resultpage/b/k;->c(Ljava/lang/CharSequence;)V

    goto :goto_74
.end method


# virtual methods
.method public a()Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 70
    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v2, "Redmi Note 5A"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_15

    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v2, "Redmi 3S"

    .line 71
    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_16

    .line 74
    :cond_15
    :goto_15
    return v0

    :cond_16
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v1

    invoke-interface {v1}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->isAppLockEnabled()Z

    move-result v1

    if-eqz v1, :cond_26

    invoke-virtual {p0}, Lcom/keniu/security/newmain/resultpage/b/k;->g()Z

    move-result v1

    if-eqz v1, :cond_36

    .line 75
    :cond_26
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v1

    invoke-interface {v1}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->isAppLockEnabled()Z

    move-result v1

    if-nez v1, :cond_15

    invoke-virtual {p0}, Lcom/keniu/security/newmain/resultpage/b/k;->h()Z

    move-result v1

    if-eqz v1, :cond_15

    :cond_36
    const/4 v0, 0x1

    goto :goto_15
.end method

.method public g()Z
    .registers 4

    .prologue
    const/4 v0, 0x1

    .line 79
    const-string v1, "get_vip_stats"

    const/4 v2, 0x2

    invoke-static {v1, v2}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getIntValue(Ljava/lang/String;I)I

    move-result v1

    if-ne v1, v0, :cond_b

    :goto_a
    return v0

    :cond_b
    const/4 v0, 0x0

    goto :goto_a
.end method

.method public h()Z
    .registers 4

    .prologue
    .line 85
    :try_start_0
    iget-object v0, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    iget-object v1, p0, Lcom/keniu/security/newmain/resultpage/b/k;->i:Landroid/content/Context;

    const-string v1, "keyguard"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/KeyguardManager;

    .line 86
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v1, v2, :cond_18

    .line 87
    invoke-virtual {v0}, Landroid/app/KeyguardManager;->isKeyguardSecure()Z
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_15} :catch_17

    move-result v0

    .line 92
    :goto_16
    return v0

    .line 89
    :catch_17
    move-exception v0

    .line 92
    :cond_18
    const/4 v0, 0x0

    goto :goto_16
.end method