e.smali

.class final Lcom/cleanmaster/recommendapps/e;
.super Ljava/lang/Object;
.source "DownloadHelper.java"

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


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/cm/plugincluster/softmgr/interfaces/host/DownloadStateListener;


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

    .prologue
    .line 75
    iput-object p1, p0, Lcom/cleanmaster/recommendapps/e;->a:Ljava/lang/String;

    iput-object p2, p0, Lcom/cleanmaster/recommendapps/e;->b: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 79
    iget-object v0, p0, Lcom/cleanmaster/recommendapps/e;->a: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 80
    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 81
    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 82
    iget-object v1, p0, Lcom/cleanmaster/recommendapps/e;->b: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 84
    :cond_1d
    return-void
.end method