DownloadTipDialog$11.smali

.class final Lcom/cleanmaster/hpsharelib/utils/DownloadTipDialog$11;
.super Ljava/lang/Object;
.source "DownloadTipDialog.java"

# interfaces
.implements Lcom/cm/plugincluster/common/interfaces/downloader/DownLoadListener;


# instance fields
.field final synthetic val$downloadStateListener:Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;

.field final synthetic val$pkgName:Ljava/lang/String;


# direct methods
.method constructor <init>(Ljava/lang/String;Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;)V
    .registers 3

    .prologue
    .line 292
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/utils/DownloadTipDialog$11;->val$pkgName:Ljava/lang/String;

    iput-object p2, p0, Lcom/cleanmaster/hpsharelib/utils/DownloadTipDialog$11;->val$downloadStateListener:Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;

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

    return-void
.end method


# virtual methods
.method public stateChange(Lcom/cm/plugincluster/common/interfaces/downloader/bean/LoadEvent;)V
    .registers 4

    .prologue
    .line 296
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/utils/DownloadTipDialog$11;->val$pkgName:Ljava/lang/String;

    invoke-virtual {p1}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/LoadEvent;->getPackageName()Ljava/lang/String;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_1d

    .line 297
    new-instance v0, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;

    invoke-direct {v0}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;-><init>()V

    .line 298
    invoke-virtual {p1}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/LoadEvent;->getState()Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;->setDownloadState(Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;)V

    .line 299
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/utils/DownloadTipDialog$11;->val$downloadStateListener:Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;

    invoke-interface {v1, v0}, Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;->stateChanged(Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;)V

    .line 301
    :cond_1d
    return-void
.end method