b.smali

.class Lcom/cmcm/ad/ui/a/b;
.super Ljava/lang/Object;
.source "AdDownload.java"

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


# instance fields
.field final synthetic a:Lcom/cmcm/ad/ui/a/a;


# direct methods
.method constructor <init>(Lcom/cmcm/ad/ui/a/a;)V
    .registers 2

    .prologue
    .line 27
    iput-object p1, p0, Lcom/cmcm/ad/ui/a/b;->a:Lcom/cmcm/ad/ui/a/a;

    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 5

    .prologue
    .line 31
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b;->a:Lcom/cmcm/ad/ui/a/a;

    invoke-static {v0}, Lcom/cmcm/ad/ui/a/a;->a(Lcom/cmcm/ad/ui/a/a;)Lcom/cm/plugincluster/ad/IAd;

    move-result-object v0

    if-eqz v0, :cond_12

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;->getUri()Landroid/net/Uri;

    move-result-object v0

    if-nez v0, :cond_13

    .line 53
    :cond_12
    :goto_12
    return-void

    .line 35
    :cond_13
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b;->a:Lcom/cmcm/ad/ui/a/a;

    invoke-static {v0}, Lcom/cmcm/ad/ui/a/a;->a(Lcom/cmcm/ad/ui/a/a;)Lcom/cm/plugincluster/ad/IAd;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/ad/IAd;->getDownloadInfo()Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;

    move-result-object v0

    .line 36
    if-eqz v0, :cond_12

    .line 39
    invoke-virtual {v0}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadAppInfo;->getDownloadState()Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;

    move-result-object v1

    .line 40
    if-eqz v1, :cond_12

    .line 44
    invoke-virtual {v1}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;->getUri()Landroid/net/Uri;

    move-result-object v1

    .line 45
    if-eqz v1, :cond_12

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

    move-result-object v2

    invoke-virtual {v2}, Lcom/cm/plugincluster/common/interfaces/downloader/bean/DownloadState;->getUri()Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/net/Uri;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_40

    .line 50
    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 52
    :cond_40
    iget-object v0, p0, Lcom/cmcm/ad/ui/a/b;->a:Lcom/cmcm/ad/ui/a/a;

    invoke-static {v0}, Lcom/cmcm/ad/ui/a/a;->b(Lcom/cmcm/ad/ui/a/a;)V

    goto :goto_12
.end method