.class Lcom/baidu/mobads/utils/h$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/util/Observer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/baidu/mobads/utils/h;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/baidu/mobads/utils/h;

.field private final b:Landroid/os/Handler;

.field private final c:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lcom/baidu/mobads/utils/h;Landroid/os/Handler;Ljava/lang/String;)V
    .locals 0

    .line 99
    iput-object p1, p0, Lcom/baidu/mobads/utils/h$a;->a:Lcom/baidu/mobads/utils/h;

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

    .line 100
    iput-object p2, p0, Lcom/baidu/mobads/utils/h$a;->b:Landroid/os/Handler;

    .line 101
    iput-object p3, p0, Lcom/baidu/mobads/utils/h$a;->c:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 2

    .line 106
    check-cast p1, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader;

    .line 108
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader;->getState()Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;

    move-result-object p2

    sget-object v0, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;->COMPLETED:Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;

    if-ne p2, v0, :cond_0

    .line 109
    iget-object p2, p0, Lcom/baidu/mobads/utils/h$a;->a:Lcom/baidu/mobads/utils/h;

    iget-object v0, p0, Lcom/baidu/mobads/utils/h$a;->b:Landroid/os/Handler;

    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader;->getOutputPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/baidu/mobads/utils/h;->a(Lcom/baidu/mobads/utils/h;Landroid/os/Handler;Ljava/lang/String;)V

    .line 111
    iget-object p2, p0, Lcom/baidu/mobads/utils/h$a;->a:Lcom/baidu/mobads/utils/h;

    iget-object v0, p0, Lcom/baidu/mobads/utils/h$a;->c:Ljava/lang/String;

    invoke-virtual {p2, v0}, Lcom/baidu/mobads/utils/h;->a(Ljava/lang/String;)V

    .line 114
    :cond_0
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader;->getState()Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;

    move-result-object p1

    sget-object p2, Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;->ERROR:Lcom/baidu/mobads/openad/interfaces/download/IOAdDownloader$DownloadStatus;

    if-ne p1, p2, :cond_1

    .line 115
    iget-object p1, p0, Lcom/baidu/mobads/utils/h$a;->a:Lcom/baidu/mobads/utils/h;

    iget-object p2, p0, Lcom/baidu/mobads/utils/h$a;->b:Landroid/os/Handler;

    invoke-static {p1, p2}, Lcom/baidu/mobads/utils/h;->a(Lcom/baidu/mobads/utils/h;Landroid/os/Handler;)V

    .line 116
    iget-object p1, p0, Lcom/baidu/mobads/utils/h$a;->a:Lcom/baidu/mobads/utils/h;

    iget-object p2, p0, Lcom/baidu/mobads/utils/h$a;->c:Ljava/lang/String;

    invoke-virtual {p1, p2}, Lcom/baidu/mobads/utils/h;->a(Ljava/lang/String;)V

    :cond_1
    return-void
.end method
