.class Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;
.super Ljava/lang/Object;
.source "BaseAqiPresenter.java"

# interfaces
.implements Lcom/squareup/picasso/Target;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;->a(Landroid/widget/ImageView;)V
.end annotation

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


# instance fields
.field final synthetic a:Landroid/widget/ImageView;

.field final synthetic b:Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;Landroid/widget/ImageView;)V
    .locals 0

    .line 55
    iput-object p1, p0, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;->b:Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;

    iput-object p2, p0, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;->a:Landroid/widget/ImageView;

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

    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
    .locals 0

    .line 58
    iget-object p2, p0, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;->a:Landroid/widget/ImageView;

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 59
    iget-object p1, p0, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;->b:Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;

    invoke-static {p1}, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;->a(Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter;)Landroid/content/Context;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 60
    instance-of p2, p1, Landroid/app/Activity;

    if-eqz p2, :cond_0

    .line 61
    check-cast p1, Landroid/app/Activity;

    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_0
    return-void
.end method

.method public a(Landroid/graphics/drawable/Drawable;)V
    .locals 0

    return-void
.end method

.method public b(Landroid/graphics/drawable/Drawable;)V
    .locals 2

    .line 72
    iget-object p1, p0, Lcom/moji/mjweather/aqi/presenter/BaseAqiPresenter$1;->a:Landroid/widget/ImageView;

    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    const v1, -0xfee7cc

    invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method
