h$a.smali

.class Lcom/cleanmaster/v/h$a;
.super Landroid/content/BroadcastReceiver;
.source "TTNotificationManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/cleanmaster/v/h;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/cleanmaster/v/h;


# direct methods
.method private constructor <init>(Lcom/cleanmaster/v/h;)V
    .registers 2

    .prologue
    .line 253
    iput-object p1, p0, Lcom/cleanmaster/v/h$a;->a:Lcom/cleanmaster/v/h;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/cleanmaster/v/h;Lcom/cleanmaster/v/i;)V
    .registers 3

    .prologue
    .line 253
    invoke-direct {p0, p1}, Lcom/cleanmaster/v/h$a;-><init>(Lcom/cleanmaster/v/h;)V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 11

    .prologue
    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, -0x1

    .line 257
    const-string v0, "action_tt_download"

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_26

    .line 258
    const-string v0, "id"

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

    move-result v1

    .line 259
    const-string v0, "action"

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

    move-result v2

    .line 260
    const-string/jumbo v0, "status"

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

    move-result v3

    .line 261
    if-eq v1, v5, :cond_26

    if-ne v2, v5, :cond_27

    .line 290
    :cond_26
    :goto_26
    return-void

    .line 264
    :cond_27
    iget-object v0, p0, Lcom/cleanmaster/v/h$a;->a:Lcom/cleanmaster/v/h;

    invoke-static {v0}, Lcom/cleanmaster/v/h;->a(Lcom/cleanmaster/v/h;)Landroid/util/SparseArray;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadBean;

    .line 265
    if-eqz p1, :cond_26

    if-eqz v0, :cond_26

    .line 268
    const-string v4, "internalStatusKey"

    invoke-virtual {p2, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    .line 269
    packed-switch v2, :pswitch_data_6a

    goto :goto_26

    .line 271
    :pswitch_41
    if-eq v3, v6, :cond_26

    if-eq v3, v7, :cond_26

    .line 275
    const/4 v2, 0x3

    if-eq v3, v2, :cond_4b

    const/4 v2, 0x4

    if-ne v3, v2, :cond_26

    .line 276
    :cond_4b
    invoke-interface {v0}, Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadBean;->getGlobalDownloadController()Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadController;

    move-result-object v0

    int-to-long v2, v1

    invoke-interface {v0, p1, v4, v2, v3}, Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadController;->changeDownloadStatus(Landroid/content/Context;IJ)V

    .line 277
    iget-object v0, p0, Lcom/cleanmaster/v/h$a;->a:Lcom/cleanmaster/v/h;

    int-to-long v2, v1

    invoke-static {v0, v2, v3}, Lcom/cleanmaster/v/h;->a(Lcom/cleanmaster/v/h;J)V

    .line 278
    invoke-static {p1}, Lcom/cleanmaster/v/h;->a(Landroid/content/Context;)V

    goto :goto_26

    .line 282
    :pswitch_5d
    if-eq v3, v6, :cond_61

    if-ne v3, v7, :cond_26

    .line 283
    :cond_61
    invoke-interface {v0}, Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadBean;->getGlobalDownloadController()Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadController;

    move-result-object v0

    int-to-long v2, v1

    invoke-interface {v0, p1, v4, v2, v3}, Lcom/cm/plugincluster/libplugin/tt/ITTGlobalDownloadController;->changeDownloadStatus(Landroid/content/Context;IJ)V

    goto :goto_26

    .line 269
    :pswitch_data_6a
    .packed-switch 0x5
        :pswitch_41
        :pswitch_5d
    .end packed-switch
.end method