GameBoostInterceptActivity.smali

.class public Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;
.super Landroid/app/Activity;
.source "GameBoostInterceptActivity.java"


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

.field private d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 31
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method private a()V
    .registers 3

    .prologue
    .line 60
    sget v0, Lcom/cleanmaster/gameboost/R$id;->iv_back:I

    invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a:Landroid/widget/ImageView;

    .line 61
    sget v0, Lcom/cleanmaster/gameboost/R$id;->tv_clear:I

    invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b:Landroid/widget/TextView;

    .line 62
    sget v0, Lcom/cleanmaster/gameboost/R$id;->content:I

    invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

    iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

    .line 63
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a:Landroid/widget/ImageView;

    new-instance v1, Lcom/cleanmaster/gameboost/aa;

    invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/aa;-><init>(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 69
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b:Landroid/widget/TextView;

    new-instance v1, Lcom/cleanmaster/gameboost/ab;

    invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/ab;-><init>(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 75
    invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->c()V

    .line 76
    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 186
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 187
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 189
    return-void
.end method

.method private a(Landroid/content/Intent;)V
    .registers 5

    .prologue
    .line 52
    if-nez p1, :cond_3

    .line 57
    :cond_2
    :goto_2
    return-void

    .line 53
    :cond_3
    const-string v0, "from"

    const/4 v1, -0x1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 54
    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    .line 55
    new-instance v0, Lcom/cleanmaster/gameboost/b/e;

    const/4 v1, 0x4

    const/4 v2, 0x2

    invoke-direct {v0, v1, v2}, Lcom/cleanmaster/gameboost/b/e;-><init>(BB)V

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/b/e;->report()V

    goto :goto_2
.end method

.method static synthetic a(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V
    .registers 1

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b()V

    return-void
.end method

.method static synthetic b(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;
    .registers 2

    .prologue
    .line 31
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    return-object v0
.end method

.method private b()V
    .registers 4

    .prologue
    .line 81
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    if-nez v0, :cond_2b

    .line 82
    new-instance v0, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_intercept_dialog_tip:I

    .line 83
    invoke-virtual {p0, v1}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(Ljava/lang/String;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    move-result-object v0

    sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_cancel:I

    new-instance v2, Lcom/cleanmaster/gameboost/ad;

    invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/ad;-><init>(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V

    .line 84
    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->a(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    move-result-object v0

    sget v1, Lcom/cleanmaster/gameboost/R$string;->game_boost_setting_dialog_submit:I

    new-instance v2, Lcom/cleanmaster/gameboost/ac;

    invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/ac;-><init>(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V

    .line 89
    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->b(ILandroid/view/View$OnClickListener;)Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    .line 97
    :cond_2b
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->d:Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostCommonDialog;->show()V

    .line 98
    return-void
.end method

.method private c()V
    .registers 9

    .prologue
    .line 102
    new-instance v1, Ljava/util/ArrayList;

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

    .line 104
    invoke-static {p0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList;->getAllList()Ljava/util/List;

    move-result-object v0

    .line 105
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_21

    .line 106
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;->a(Ljava/util/List;)V

    .line 107
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 136
    :goto_20
    return-void

    .line 110
    :cond_21
    iget-object v2, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b:Landroid/widget/TextView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 111
    new-instance v2, Lcom/cleanmaster/gameboost/modle/e;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    invoke-direct {v2, v3}, Lcom/cleanmaster/gameboost/modle/e;-><init>(I)V

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 113
    new-instance v2, Ljava/util/HashMap;

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

    .line 114
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_3c
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_69

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList$DisturbData;

    .line 115
    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList$DisturbData;->getType()I

    move-result v4

    invoke-virtual {p0, v4, v2}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a(ILjava/util/Map;)Ljava/util/List;

    move-result-object v4

    .line 116
    new-instance v5, Lcom/cleanmaster/gameboost/modle/d;

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList$DisturbData;->getTime()J

    move-result-wide v6

    invoke-static {v6, v7}, Lcom/cleanmaster/gameboost/modle/d;->a(J)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, p0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList$DisturbData;->getTitle0(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/doNotDisturb/DoNotDisturbList$DisturbData;->getContent0()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v5, v6, v7, v0}, Lcom/cleanmaster/gameboost/modle/d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3c

    .line 118
    :cond_69
    const/4 v0, 0x3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 119
    if-eqz v0, :cond_86

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_86

    .line 120
    invoke-static {}, Lcom/cleanmaster/gameboost/modle/f;->a()Lcom/cleanmaster/gameboost/modle/AbsGameModel;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 121
    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 124
    :cond_86
    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 125
    if-eqz v0, :cond_a3

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_a3

    .line 126
    invoke-static {}, Lcom/cleanmaster/gameboost/modle/f;->b()Lcom/cleanmaster/gameboost/modle/AbsGameModel;

    move-result-object v3

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 127
    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 130
    :cond_a3
    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 131
    if-eqz v0, :cond_c0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_c0

    .line 132
    invoke-static {}, Lcom/cleanmaster/gameboost/modle/f;->c()Lcom/cleanmaster/gameboost/modle/AbsGameModel;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 133
    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 135
    :cond_c0
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

    invoke-virtual {v0, v1}, Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;->a(Ljava/util/List;)V

    goto/16 :goto_20
.end method

.method static synthetic c(Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;)V
    .registers 1

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->d()V

    return-void
.end method

.method private d()V
    .registers 3

    .prologue
    .line 179
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->c:Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/ui/GameBoostInterceptView;->a()V

    .line 180
    iget-object v0, p0, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 181
    invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/gameboost/util/i;->c(Landroid/content/Context;)V

    .line 183
    return-void
.end method


# virtual methods
.method public a(ILjava/util/Map;)Ljava/util/List;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/Integer;",
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/gameboost/modle/AbsGameModel;",
            ">;>;)",
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/gameboost/modle/AbsGameModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 139
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_16

    .line 140
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    new-instance v1, Ljava/util/ArrayList;

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

    invoke-interface {p2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 142
    :cond_16
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1    # Landroid/os/Bundle;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param

    .prologue
    .line 39
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 40
    sget v0, Lcom/cleanmaster/gameboost/R$layout;->activity_game_boost_intercept:I

    invoke-virtual {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->setContentView(I)V

    .line 41
    invoke-virtual {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a(Landroid/content/Intent;)V

    .line 42
    invoke-direct {p0}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a()V

    .line 43
    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .registers 2

    .prologue
    .line 47
    invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V

    .line 48
    invoke-direct {p0, p1}, Lcom/cleanmaster/gameboost/GameBoostInterceptActivity;->a(Landroid/content/Intent;)V

    .line 49
    return-void
.end method