d.smali

.class Lcom/cleanmaster/ui/app/provider/download/d;
.super Ljava/lang/Object;
.source "DownloadNotification.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/ui/app/provider/download/d$a;
    }
.end annotation


# instance fields
.field a:Landroid/content/Context;

.field public b:Landroid/app/NotificationManager;

.field c:I

.field d:I

.field e:I

.field f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/ui/app/provider/download/d$a;",
            ">;"
        }
    .end annotation
.end field

.field g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/ui/app/provider/download/d$a;",
            ">;"
        }
    .end annotation
.end field

.field h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/ui/app/provider/download/d$a;",
            ">;"
        }
    .end annotation
.end field


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

    .prologue
    const/4 v0, 0x0

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

    .line 26
    iput v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    .line 27
    iput v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    .line 28
    iput v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    .line 57
    iput-object p1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    .line 58
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v1, "notification"

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

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iput-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    .line 59
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

    .line 60
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

    .line 61
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    .line 62
    return-void
.end method

.method private c()V
    .registers 14

    .prologue
    const/4 v8, 0x0

    const/4 v12, 0x2

    const/4 v6, 0x1

    const/4 v7, 0x0

    .line 74
    .line 80
    :try_start_4
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    const/16 v2, 0x8

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "_id"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    const-string v4, "hint"

    aput-object v4, v2, v3

    const/4 v3, 0x2

    const-string v4, "description"

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const-string v4, "notificationpackage"

    aput-object v4, v2, v3

    const/4 v3, 0x4

    const-string v4, "notificationclass"

    aput-object v4, v2, v3

    const/4 v3, 0x5

    const-string v4, "current_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x6

    const-string/jumbo v4, "total_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x7

    const-string/jumbo v4, "status"

    aput-object v4, v2, v3

    const-string v3, "(status == \'193\') AND (visibility IS NULL OR visibility == \'0\' OR visibility == \'1\')"

    const/4 v4, 0x0

    const-string v5, "_id"

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_42
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_42} :catch_2be
    .catchall {:try_start_4 .. :try_end_42} :catchall_c1

    move-result-object v1

    .line 85
    if-eqz v1, :cond_bb

    .line 86
    :try_start_45
    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_48
    invoke-interface {v1}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v0

    if-nez v0, :cond_bb

    .line 87
    const/4 v0, 0x0

    invoke-interface {v1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    .line 88
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v4, "notification"

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

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    .line 89
    if-eqz v0, :cond_63

    .line 90
    long-to-int v2, v2

    invoke-virtual {v0, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 86
    :cond_63
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_66
    .catch Ljava/lang/Exception; {:try_start_45 .. :try_end_66} :catch_67
    .catchall {:try_start_45 .. :try_end_66} :catchall_2ba

    goto :goto_48

    .line 95
    :catch_67
    move-exception v0

    move-object v0, v1

    .line 98
    :goto_69
    if-eqz v0, :cond_6e

    .line 99
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 103
    :cond_6e
    :goto_6e
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    move-result v9

    .line 106
    :try_start_74
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    const/16 v2, 0x8

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "_id"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    const-string v4, "hint"

    aput-object v4, v2, v3

    const/4 v3, 0x2

    const-string v4, "description"

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const-string v4, "notificationpackage"

    aput-object v4, v2, v3

    const/4 v3, 0x4

    const-string v4, "notificationclass"

    aput-object v4, v2, v3

    const/4 v3, 0x5

    const-string v4, "current_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x6

    const-string/jumbo v4, "total_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x7

    const-string/jumbo v4, "status"

    aput-object v4, v2, v3

    const-string v3, "(status == \'192\' OR status == \'194\') AND (visibility IS NULL OR visibility == \'0\' OR visibility == \'1\')"

    const/4 v4, 0x0

    const-string v5, "_id"

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_b2
    .catch Ljava/lang/Exception; {:try_start_74 .. :try_end_b2} :catch_116
    .catchall {:try_start_74 .. :try_end_b2} :catchall_20e

    move-result-object v8

    .line 112
    if-nez v8, :cond_c8

    .line 135
    if-eqz v8, :cond_ba

    .line 136
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    .line 208
    :cond_ba
    :goto_ba
    return-void

    .line 98
    :cond_bb
    if-eqz v1, :cond_6e

    .line 99
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_6e

    .line 98
    :catchall_c1
    move-exception v0

    :goto_c2
    if-eqz v8, :cond_c7

    .line 99
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    :cond_c7
    throw v0

    .line 116
    :cond_c8
    :try_start_c8
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 117
    invoke-interface {v8}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_d0
    invoke-interface {v8}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v0

    if-nez v0, :cond_207

    .line 118
    const/4 v0, 0x6

    invoke-interface {v8, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    .line 119
    const/4 v0, 0x5

    invoke-interface {v8, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v4

    .line 120
    const/4 v0, 0x0

    invoke-interface {v8, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v10

    .line 121
    const/4 v0, 0x1

    invoke-interface {v8, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 122
    if-eqz v0, :cond_f2

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_ff

    .line 123
    :cond_f2
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0923

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

    move-result-object v0

    .line 125
    :cond_ff
    new-instance v1, Lcom/cleanmaster/ui/app/provider/download/d$a;

    invoke-direct {v1}, Lcom/cleanmaster/ui/app/provider/download/d$a;-><init>()V

    .line 126
    long-to-int v10, v10

    iput v10, v1, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    .line 127
    iput-object v0, v1, Lcom/cleanmaster/ui/app/provider/download/d$a;->b:Ljava/lang/String;

    .line 128
    iput-wide v4, v1, Lcom/cleanmaster/ui/app/provider/download/d$a;->c:J

    .line 129
    iput-wide v2, v1, Lcom/cleanmaster/ui/app/provider/download/d$a;->d:J

    .line 130
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    .line 117
    invoke-interface {v8}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_115
    .catch Ljava/lang/Exception; {:try_start_c8 .. :try_end_115} :catch_116
    .catchall {:try_start_c8 .. :try_end_115} :catchall_20e

    goto :goto_d0

    .line 132
    :catch_116
    move-exception v0

    .line 135
    if-eqz v8, :cond_11c

    .line 136
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    .line 140
    :cond_11c
    :goto_11c
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    move-result v0

    if-eq v9, v0, :cond_2c2

    move v1, v6

    .line 143
    :goto_125
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_ba

    .line 144
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    move-result v0

    if-ne v0, v6, :cond_215

    .line 145
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 146
    iget v2, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-ne v2, v3, :cond_145

    if-eqz v1, :cond_ba

    .line 147
    :cond_145
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-eq v1, v2, :cond_158

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-eq v1, v2, :cond_158

    .line 148
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    invoke-virtual {v1, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 150
    :cond_158
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    .line 151
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v3, "common"

    invoke-direct {v1, v2, v3}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 153
    const v2, 0x7f0204f8

    invoke-virtual {v1, v2}, Landroid/support/v4/app/NotificationCompat$Builder;->setSmallIcon(I)Landroid/support/v4/app/NotificationCompat$Builder;

    .line 154
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 155
    iget v2, v1, Landroid/app/Notification;->flags:I

    or-int/lit8 v2, v2, 0x20

    iput v2, v1, Landroid/app/Notification;->flags:I

    .line 158
    new-instance v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v2}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 159
    iput v12, v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 160
    new-instance v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v3}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 161
    new-instance v4, Ljava/lang/StringBuilder;

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

    iget-object v5, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0a10e8

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

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

    move-result-object v4

    const-string v5, " "

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

    move-result-object v4

    iget-object v5, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->b:Ljava/lang/String;

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

    move-result-object v4

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

    move-result-object v4

    iput-object v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 163
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const v5, 0x7f0a10e7

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

    move-result-object v4

    iput-object v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 164
    const/16 v4, 0x915

    iput v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 166
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v4

    invoke-virtual {v4, v2, v3}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 168
    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.cm_DOWNLOAD_LIST"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 169
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v4, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    .line 170
    new-instance v3, Ljava/lang/StringBuilder;

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

    sget-object v4, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

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

    move-result-object v3

    const-string v4, "/"

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

    move-result-object v3

    iget v4, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

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

    move-result-object v3

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

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 172
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v2, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 173
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v2, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_ba

    .line 135
    :cond_207
    if-eqz v8, :cond_11c

    .line 136
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    goto/16 :goto_11c

    .line 135
    :catchall_20e
    move-exception v0

    if-eqz v8, :cond_214

    .line 136
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    :cond_214
    throw v0

    .line 176
    :cond_215
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 177
    iget v2, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-ne v2, v3, :cond_225

    if-eqz v1, :cond_ba

    .line 178
    :cond_225
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-eq v1, v2, :cond_238

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-eq v1, v2, :cond_238

    .line 179
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    invoke-virtual {v1, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 181
    :cond_238
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    .line 182
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v3, "common"

    invoke-direct {v1, v2, v3}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 184
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 185
    const v2, 0x7f0204f8

    iput v2, v1, Landroid/app/Notification;->icon:I

    .line 187
    iget v2, v1, Landroid/app/Notification;->flags:I

    or-int/lit8 v2, v2, 0x20

    iput v2, v1, Landroid/app/Notification;->flags:I

    .line 190
    new-instance v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v2}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 191
    iput v12, v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 192
    new-instance v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v3}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 193
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const v5, 0x7f0a10ec

    new-array v6, v6, [Ljava/lang/Object;

    iget-object v8, p0, Lcom/cleanmaster/ui/app/provider/download/d;->f:Ljava/util/List;

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

    move-result v8

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

    move-result-object v8

    aput-object v8, v6, v7

    invoke-virtual {v4, v5, v6}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 194
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const v5, 0x7f0a10e7

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

    move-result-object v4

    iput-object v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 195
    const/16 v4, 0x915

    iput v4, v3, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 197
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v4

    invoke-virtual {v4, v2, v3}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 199
    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.cm_DOWNLOAD_LIST"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 200
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v4, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    .line 201
    sget-object v3, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 203
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v2, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 204
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v2, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_ba

    .line 98
    :catchall_2ba
    move-exception v0

    move-object v8, v1

    goto/16 :goto_c2

    .line 95
    :catch_2be
    move-exception v0

    move-object v0, v8

    goto/16 :goto_69

    :cond_2c2
    move v1, v7

    goto/16 :goto_125
.end method

.method private d()V
    .registers 15

    .prologue
    const v13, 0x7f0204f8

    const/16 v12, 0x915

    const/4 v11, 0x2

    const/4 v6, 0x1

    const/4 v7, 0x0

    .line 212
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

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

    move-result v9

    .line 213
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    move-result v10

    .line 214
    const/4 v8, 0x0

    .line 216
    :try_start_15
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    const/16 v2, 0xa

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "_id"

    aput-object v4, v2, v3

    const/4 v3, 0x1

    const-string v4, "hint"

    aput-object v4, v2, v3

    const/4 v3, 0x2

    const-string v4, "description"

    aput-object v4, v2, v3

    const/4 v3, 0x3

    const-string v4, "notificationpackage"

    aput-object v4, v2, v3

    const/4 v3, 0x4

    const-string v4, "notificationclass"

    aput-object v4, v2, v3

    const/4 v3, 0x5

    const-string v4, "current_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x6

    const-string/jumbo v4, "total_bytes"

    aput-object v4, v2, v3

    const/4 v3, 0x7

    const-string/jumbo v4, "status"

    aput-object v4, v2, v3

    const/16 v3, 0x8

    const-string v4, "lastmod"

    aput-object v4, v2, v3

    const/16 v3, 0x9

    const-string v4, "destination"

    aput-object v4, v2, v3

    const-string/jumbo v3, "status >= \'200\' AND visibility == \'1\'"

    const/4 v4, 0x0

    const-string v5, "_id"

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_60
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_60} :catch_499
    .catchall {:try_start_15 .. :try_end_60} :catchall_496

    move-result-object v0

    .line 222
    if-nez v0, :cond_69

    .line 252
    if-eqz v0, :cond_68

    .line 253
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 436
    :cond_68
    :goto_68
    return-void

    .line 230
    :cond_69
    :try_start_69
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 231
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 232
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_76
    invoke-interface {v0}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v1

    if-nez v1, :cond_2c7

    .line 234
    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    .line 235
    const/4 v1, 0x1

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 236
    if-eqz v1, :cond_8e

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v4

    if-nez v4, :cond_9b

    .line 237
    :cond_8e
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v4, 0x7f0a0923

    invoke-virtual {v1, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 239
    :cond_9b
    new-instance v4, Lcom/cleanmaster/ui/app/provider/download/d$a;

    invoke-direct {v4}, Lcom/cleanmaster/ui/app/provider/download/d$a;-><init>()V

    .line 240
    long-to-int v2, v2

    iput v2, v4, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    .line 241
    iput-object v1, v4, Lcom/cleanmaster/ui/app/provider/download/d$a;->b:Ljava/lang/String;

    .line 242
    const/4 v1, 0x7

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    invoke-static {v1}, Lcom/cleanmaster/ui/app/provider/download/h;->b(I)Z

    move-result v1

    if-eqz v1, :cond_2b7

    .line 243
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    .line 232
    :goto_b5
    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_b8
    .catch Ljava/lang/Exception; {:try_start_69 .. :try_end_b8} :catch_b9
    .catchall {:try_start_69 .. :try_end_b8} :catchall_2be

    goto :goto_76

    .line 249
    :catch_b9
    move-exception v1

    .line 252
    :goto_ba
    if-eqz v0, :cond_bf

    .line 253
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 257
    :cond_bf
    :goto_bf
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    move-result v0

    if-eq v10, v0, :cond_4a3

    move v1, v6

    .line 261
    :goto_c8
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

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

    move-result v0

    if-eq v9, v0, :cond_4a0

    move v2, v6

    .line 265
    :goto_d1
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_1c0

    .line 266
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    move-result v0

    if-ne v0, v6, :cond_2ce

    .line 267
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 268
    iget v3, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-ne v3, v4, :cond_f1

    if-eqz v1, :cond_1c0

    .line 269
    :cond_f1
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-eq v1, v3, :cond_104

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-eq v1, v3, :cond_104

    .line 270
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    invoke-virtual {v1, v3}, Landroid/app/NotificationManager;->cancel(I)V

    .line 272
    :cond_104
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    .line 273
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v4, "common"

    invoke-direct {v1, v3, v4}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 275
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 276
    iput v13, v1, Landroid/app/Notification;->icon:I

    .line 277
    new-instance v3, Ljava/lang/StringBuilder;

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

    sget-object v4, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

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

    move-result-object v3

    const-string v4, "/"

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

    move-result-object v3

    iget v4, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

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

    move-result-object v3

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

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    .line 280
    const-string v4, ""

    .line 281
    const-string v4, " "

    .line 282
    iget-object v5, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v8, 0x7f0a10ee

    invoke-virtual {v5, v8}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 283
    new-instance v8, Ljava/lang/StringBuilder;

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

    iget-object v9, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->b:Ljava/lang/String;

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

    move-result-object v8

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

    move-result-object v4

    iget-object v8, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v8}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    const v9, 0x7f0a10e9

    invoke-virtual {v8, v9}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v8

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

    move-result-object v4

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

    move-result-object v4

    .line 284
    new-instance v8, Landroid/content/Intent;

    const-string v9, "android.intent.action.cm_DOWNLOAD_RETRY"

    invoke-direct {v8, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 285
    iget-object v9, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v10, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v8, v9, v10}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 286
    invoke-virtual {v8, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 289
    new-instance v9, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v9}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 290
    iput v11, v9, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 291
    new-instance v10, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v10}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 292
    iput-object v4, v10, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 293
    iput-object v5, v10, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 294
    iput v12, v10, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 296
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v4

    invoke-virtual {v4, v9, v10}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v4

    iput-object v4, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 297
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v4, v7, v8, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v4

    iput-object v4, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 299
    new-instance v4, Landroid/content/Intent;

    const-string v5, "android.intent.action.cm_DOWNLOAD_HIDE"

    invoke-direct {v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 300
    iget-object v5, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v8, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v4, v5, v8}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 301
    invoke-virtual {v4, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 303
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v4, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;

    .line 304
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v3, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 349
    :cond_1c0
    :goto_1c0
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_68

    .line 350
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

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

    move-result v0

    if-ne v0, v6, :cond_3b2

    .line 351
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 352
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-ne v1, v3, :cond_49d

    .line 355
    :goto_1de
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-ne v1, v2, :cond_1e6

    if-eqz v6, :cond_68

    .line 356
    :cond_1e6
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-eq v1, v2, :cond_1f9

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-eq v1, v2, :cond_1f9

    .line 357
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    invoke-virtual {v1, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 359
    :cond_1f9
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    .line 360
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v3, "common"

    invoke-direct {v1, v2, v3}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 362
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 363
    iput v13, v1, Landroid/app/Notification;->icon:I

    .line 364
    new-instance v2, Ljava/lang/StringBuilder;

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

    sget-object v3, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

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

    move-result-object v2

    const-string v3, "/"

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

    move-result-object v2

    iget v3, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

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

    move-result-object v2

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

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    .line 367
    const-string v3, ""

    .line 368
    const-string v3, " "

    .line 369
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0a10ea

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 370
    new-instance v5, Ljava/lang/StringBuilder;

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

    iget-object v6, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->b:Ljava/lang/String;

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

    move-result-object v5

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

    move-result-object v3

    iget-object v5, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0a10e6

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

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

    move-result-object v3

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

    move-result-object v3

    .line 371
    new-instance v5, Landroid/content/Intent;

    const-string v6, "android.intent.action.cm_DOWNLOAD_OPEN"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 372
    iget-object v6, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v8, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v5, v6, v8}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 373
    invoke-virtual {v5, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 376
    new-instance v6, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v6}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 377
    iput v11, v6, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 378
    new-instance v8, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v8}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 379
    iput-object v3, v8, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 380
    iput-object v4, v8, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 381
    iput v12, v8, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 383
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v3

    invoke-virtual {v3, v6, v8}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 384
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v5, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 386
    new-instance v3, Landroid/content/Intent;

    const-string v4, "android.intent.action.cm_DOWNLOAD_HIDE"

    invoke-direct {v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 387
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v5, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 388
    invoke-virtual {v3, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 390
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v2, v7, v3, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;

    .line 391
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v2, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_68

    .line 245
    :cond_2b7
    :try_start_2b7
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_2bc
    .catch Ljava/lang/Exception; {:try_start_2b7 .. :try_end_2bc} :catch_b9
    .catchall {:try_start_2b7 .. :try_end_2bc} :catchall_2be

    goto/16 :goto_b5

    .line 252
    :catchall_2be
    move-exception v1

    move-object v8, v0

    move-object v0, v1

    :goto_2c1
    if-eqz v8, :cond_2c6

    .line 253
    invoke-interface {v8}, Landroid/database/Cursor;->close()V

    :cond_2c6
    throw v0

    .line 252
    :cond_2c7
    if-eqz v0, :cond_bf

    .line 253
    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    goto/16 :goto_bf

    .line 307
    :cond_2ce
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 308
    iget v3, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-ne v3, v4, :cond_2de

    if-eqz v1, :cond_1c0

    .line 309
    :cond_2de
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-eq v1, v3, :cond_2f1

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-eq v1, v3, :cond_2f1

    .line 310
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    invoke-virtual {v1, v3}, Landroid/app/NotificationManager;->cancel(I)V

    .line 312
    :cond_2f1
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    .line 313
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v4, "common"

    invoke-direct {v1, v3, v4}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 315
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 316
    iput v13, v1, Landroid/app/Notification;->icon:I

    .line 319
    const-string v3, ""

    .line 320
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0a10e7

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 321
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0a10ed

    new-array v8, v6, [Ljava/lang/Object;

    iget-object v9, p0, Lcom/cleanmaster/ui/app/provider/download/d;->g:Ljava/util/List;

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

    move-result v9

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

    move-result-object v9

    aput-object v9, v8, v7

    invoke-virtual {v4, v5, v8}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    .line 322
    new-instance v5, Landroid/content/Intent;

    const-string v8, "android.intent.action.cm_DOWNLOAD_LIST"

    invoke-direct {v5, v8}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 323
    iget-object v8, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v9, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v5, v8, v9}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 324
    const-string/jumbo v8, "type"

    invoke-virtual {v5, v8, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 325
    new-instance v8, Ljava/lang/StringBuilder;

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

    sget-object v9, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "/"

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

    move-result-object v8

    iget v9, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

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

    move-result-object v8

    invoke-static {v8}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v8

    invoke-virtual {v5, v8}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 328
    new-instance v8, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v8}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 329
    iput v11, v8, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 330
    new-instance v9, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v9}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 331
    iput-object v4, v9, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 332
    iput-object v3, v9, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 333
    iput v12, v9, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 335
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v3

    invoke-virtual {v3, v8, v9}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 336
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v5, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 338
    new-instance v3, Landroid/content/Intent;

    const-string v4, "android.intent.action.cm_DOWNLOAD_HIDE"

    invoke-direct {v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 339
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v5, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 340
    const-string/jumbo v4, "type"

    invoke-virtual {v3, v4, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 341
    sget-object v4, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    invoke-virtual {v3, v4}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 343
    iget-object v4, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v4, v7, v3, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, v1, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;

    .line 344
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v3, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_1c0

    .line 394
    :cond_3b2
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/ui/app/provider/download/d$a;

    .line 395
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iget v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    if-ne v1, v3, :cond_3c2

    if-eqz v2, :cond_68

    .line 396
    :cond_3c2
    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    if-eq v1, v2, :cond_3d5

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    if-eq v1, v2, :cond_3d5

    .line 397
    iget-object v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    invoke-virtual {v1, v2}, Landroid/app/NotificationManager;->cancel(I)V

    .line 399
    :cond_3d5
    iget v1, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    iput v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    .line 400
    new-instance v1, Landroid/support/v4/app/NotificationCompat$Builder;

    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-string v3, "common"

    invoke-direct {v1, v2, v3}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 402
    invoke-virtual {v1}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object v1

    .line 403
    iput v13, v1, Landroid/app/Notification;->icon:I

    .line 406
    const-string v2, ""

    .line 407
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a10e7

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 408
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0a10eb

    new-array v5, v6, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/cleanmaster/ui/app/provider/download/d;->h:Ljava/util/List;

    .line 409
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

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

    move-result-object v6

    aput-object v6, v5, v7

    .line 408
    invoke-virtual {v3, v4, v5}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    .line 410
    new-instance v4, Landroid/content/Intent;

    const-string v5, "android.intent.action.cm_DOWNLOAD_LIST"

    invoke-direct {v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 411
    iget-object v5, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v6, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v4, v5, v6}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 412
    const-string/jumbo v5, "type"

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

    .line 413
    new-instance v5, Ljava/lang/StringBuilder;

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

    sget-object v6, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "/"

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

    move-result-object v5

    iget v6, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

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

    move-result-object v5

    invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 416
    new-instance v5, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v5}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 417
    iput v11, v5, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mUiType:I

    .line 418
    new-instance v6, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v6}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 419
    iput-object v3, v6, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 420
    iput-object v2, v6, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 421
    iput v12, v6, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 423
    invoke-static {}, Lcom/cleanmaster/notification/af;->a()Lcom/cleanmaster/notification/af;

    move-result-object v2

    invoke-virtual {v2, v5, v6}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Landroid/widget/RemoteViews;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;

    .line 424
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v2, v7, v4, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;

    .line 426
    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.cm_DOWNLOAD_HIDE"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 427
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    const-class v4, Lcom/cleanmaster/ui/app/provider/download/DownloadReceiver;

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 428
    const-string/jumbo v3, "type"

    invoke-virtual {v2, v3, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 429
    sget-object v3, Lcom/cleanmaster/ui/app/provider/download/h;->b:Landroid/net/Uri;

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 431
    iget-object v3, p0, Lcom/cleanmaster/ui/app/provider/download/d;->a:Landroid/content/Context;

    invoke-static {v3, v7, v2, v7}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v2

    iput-object v2, v1, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;

    .line 432
    iget-object v2, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v0, v0, Lcom/cleanmaster/ui/app/provider/download/d$a;->a:I

    invoke-virtual {v2, v0, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_68

    .line 252
    :catchall_496
    move-exception v0

    goto/16 :goto_2c1

    .line 249
    :catch_499
    move-exception v0

    move-object v0, v8

    goto/16 :goto_ba

    :cond_49d
    move v6, v2

    goto/16 :goto_1de

    :cond_4a0
    move v2, v7

    goto/16 :goto_d1

    :cond_4a3
    move v1, v7

    goto/16 :goto_c8
.end method


# virtual methods
.method public a()V
    .registers 1

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/cleanmaster/ui/app/provider/download/d;->c()V

    .line 69
    invoke-direct {p0}, Lcom/cleanmaster/ui/app/provider/download/d;->d()V

    .line 70
    return-void
.end method

.method public b()V
    .registers 3

    .prologue
    .line 453
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->c:I

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 454
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->d:I

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 455
    iget-object v0, p0, Lcom/cleanmaster/ui/app/provider/download/d;->b:Landroid/app/NotificationManager;

    iget v1, p0, Lcom/cleanmaster/ui/app/provider/download/d;->e:I

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 456
    return-void
.end method