.class Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView$ShortWeatherHandler;
.super Landroid/os/Handler;
.source "ShortWeatherView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "ShortWeatherHandler"
.end annotation


# instance fields
.field private a:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)V
    .locals 1

    .line 218
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    .line 219
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView$ShortWeatherHandler;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    .line 224
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 225
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView$ShortWeatherHandler;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;

    if-nez v0, :cond_0

    return-void

    .line 229
    :cond_0
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x1

    if-eq p1, v1, :cond_2

    packed-switch p1, :pswitch_data_0

    goto :goto_0

    .line 236
    :pswitch_0
    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->a()V

    goto :goto_0

    .line 239
    :pswitch_1
    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->c(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)I

    move-result p1

    if-nez p1, :cond_1

    .line 240
    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f0e0036

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->a(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;Ljava/lang/String;)V

    const/16 p1, 0x3c

    .line 241
    invoke-static {v0, p1}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->a(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;I)I

    .line 242
    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->d(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)Landroid/os/Handler;

    move-result-object p1

    const-wide/16 v2, 0x3e8

    invoke-virtual {p1, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0

    .line 243
    :cond_1
    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->e(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)Z

    move-result p1

    if-nez p1, :cond_3

    .line 244
    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->a()V

    goto :goto_0

    .line 231
    :cond_2
    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->a(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)Z

    move-result p1

    if-nez p1, :cond_3

    .line 232
    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;->b(Lcom/moji/mjweather/shorttimedetail/weather/ShortWeatherView;)Lcom/moji/mjweather/shorttimedetail/weather/WeatherContracts$WeatherViewPresenter;

    move-result-object p1

    invoke-interface {p1}, Lcom/moji/mjweather/shorttimedetail/weather/WeatherContracts$WeatherViewPresenter;->b()V

    :cond_3
    :goto_0
    return-void

    :pswitch_data_0
    .packed-switch 0x3
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
