.class public Lcom/moji/appwidget/original/ViewRemoteViews5X1;
.super Lcom/moji/appwidget/original/ViewRemoteViews;
.source "ViewRemoteViews5X1.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 31
    sget v0, Lcom/moji/appwidget/R$layout;->widget5x1_view:I

    const-class v1, Lcom/moji/mjweather/CMojiWidget5x1;

    invoke-direct {p0, p1, v0, v1}, Lcom/moji/appwidget/original/ViewRemoteViews;-><init>(Landroid/content/Context;ILjava/lang/Class;)V

    return-void
.end method


# virtual methods
.method public setHotspotAction(Landroid/content/Context;)V
    .locals 6

    .line 141
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 142
    new-instance v1, Lcom/moji/appwidget/WeatherRepeater;

    invoke-direct {v1}, Lcom/moji/appwidget/WeatherRepeater;-><init>()V

    .line 143
    invoke-virtual {v1}, Lcom/moji/appwidget/WeatherRepeater;->a()Lcom/moji/weatherprovider/data/Weather;

    move-result-object v1

    .line 144
    const-class v2, Lcom/moji/appwidget/service/HotSpotService;

    .line 145
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 146
    new-instance v4, Landroid/content/Intent;

    invoke-direct {v4, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "widgetsize"

    const/16 v5, 0x33

    .line 147
    invoke-virtual {v3, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v2, "widgetsize"

    .line 148
    invoke-virtual {v4, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    if-eqz v1, :cond_0

    .line 150
    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Lcom/moji/appwidget/hotspot/EHotspotPosition;->LEFT:Lcom/moji/appwidget/hotspot/EHotspotPosition;

    iget-object v2, v2, Lcom/moji/appwidget/hotspot/EHotspotPosition;->mActionSuffix:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 151
    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v0, Lcom/moji/appwidget/hotspot/EHotspotPosition;->RIGHT:Lcom/moji/appwidget/hotspot/EHotspotPosition;

    iget-object v0, v0, Lcom/moji/appwidget/hotspot/EHotspotPosition;->mActionSuffix:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 153
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Lcom/moji/appwidget/hotspot/EHotspotPosition;->COVER:Lcom/moji/appwidget/hotspot/EHotspotPosition;

    iget-object v2, v2, Lcom/moji/appwidget/hotspot/EHotspotPosition;->mActionSuffix:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 154
    new-instance v1, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v0, Lcom/moji/appwidget/hotspot/EHotspotPosition;->COVER:Lcom/moji/appwidget/hotspot/EHotspotPosition;

    iget-object v0, v0, Lcom/moji/appwidget/hotspot/EHotspotPosition;->mActionSuffix:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    :goto_0
    const/high16 v0, 0x8000000

    .line 156
    invoke-static {p1, v5, v3, v0}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v1

    .line 157
    sget v2, Lcom/moji/appwidget/R$id;->leftHotspot:I

    invoke-virtual {p0, v2, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    .line 158
    invoke-static {p1, v5, v4, v0}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p1

    .line 159
    sget v0, Lcom/moji/appwidget/R$id;->rightHotspot:I

    invoke-virtual {p0, v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V

    return-void
.end method

.method protected updateBackgraoundLayer(Landroid/content/Context;)V
    .locals 2

    .line 118
    new-instance v0, Lcom/moji/appwidget/core/AWPrefer;

    invoke-direct {v0, p1}, Lcom/moji/appwidget/core/AWPrefer;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/moji/appwidget/core/AWPrefer;->d()I

    move-result p1

    packed-switch p1, :pswitch_data_0

    goto :goto_0

    .line 133
    :pswitch_0
    sget p1, Lcom/moji/appwidget/R$id;->iv_widget_bg:I

    sget v0, Lcom/moji/appwidget/R$drawable;->org3_widgetback3:I

    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    goto :goto_0

    .line 121
    :pswitch_1
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object p1

    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object p1

    const/4 v0, 0x1

    if-eqz p1, :cond_0

    .line 123
    iget-object v1, p1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    if-eqz v1, :cond_0

    .line 124
    iget-object p1, p1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    invoke-virtual {p1}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z

    move-result v0

    :cond_0
    if-eqz v0, :cond_1

    .line 127
    sget p1, Lcom/moji/appwidget/R$id;->iv_widget_bg:I

    sget v0, Lcom/moji/appwidget/R$drawable;->org3_widgetback1:I

    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    goto :goto_0

    .line 129
    :cond_1
    sget p1, Lcom/moji/appwidget/R$id;->iv_widget_bg:I

    sget v0, Lcom/moji/appwidget/R$drawable;->org3_widgetback2:I

    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    :goto_0
    return-void

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

.method public updateView(Landroid/content/Context;)V
    .locals 11

    .line 37
    new-instance v0, Lcom/moji/appwidget/WeatherRepeater;

    invoke-direct {v0}, Lcom/moji/appwidget/WeatherRepeater;-><init>()V

    .line 38
    invoke-virtual {v0}, Lcom/moji/appwidget/WeatherRepeater;->a()Lcom/moji/weatherprovider/data/Weather;

    move-result-object v0

    .line 39
    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->checkData(Landroid/content/Context;Lcom/moji/weatherprovider/data/Weather;)Z

    move-result v1

    if-eqz v1, :cond_9

    .line 40
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    if-eqz v1, :cond_8

    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;

    if-nez v1, :cond_0

    goto/16 :goto_3

    .line 43
    :cond_0
    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;

    iget-wide v2, v1, Lcom/moji/weatherprovider/data/Condition;->mSunRise:J

    iget-object v1, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;

    iget-wide v4, v1, Lcom/moji/weatherprovider/data/Condition;->mSunSet:J

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    invoke-static/range {v2 .. v7}, Lcom/moji/tool/DateFormatTool;->a(JJJ)Z

    move-result v1

    .line 44
    iget-object v2, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v2, v2, Lcom/moji/weatherprovider/data/Detail;->mForecastDayList:Lcom/moji/weatherprovider/data/ForecastDayList;

    iget-object v2, v2, Lcom/moji/weatherprovider/data/ForecastDayList;->mForecastDay:Ljava/util/List;

    if-eqz v2, :cond_9

    .line 45
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_9

    .line 46
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 48
    :goto_0
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v6

    if-ge v5, v6, :cond_2

    .line 49
    invoke-interface {v2, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    if-eqz v6, :cond_1

    .line 51
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    const-string v9, "M/d"

    invoke-static {v7, v8, v9}, Lcom/moji/tool/DateFormatTool;->a(JLjava/lang/String;)Ljava/lang/String;

    move-result-object v7

    new-instance v8, Ljava/util/Date;

    iget-wide v9, v6, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mPredictDate:J

    invoke-direct {v8, v9, v10}, Ljava/util/Date;-><init>(J)V

    const-string v6, "M/d"

    invoke-static {v8, v6}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    move v4, v5

    goto :goto_1

    :cond_1
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_2
    :goto_1
    if-le v3, v4, :cond_4

    .line 59
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 60
    new-instance v6, Lcom/moji/base/WeatherTemperature;

    iget v7, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

    invoke-direct {v6, v7}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 61
    new-instance v7, Lcom/moji/base/WeatherTemperature;

    iget v8, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

    invoke-direct {v7, v8}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 62
    sget v8, Lcom/moji/appwidget/R$id;->tv_widget_temp_low_high0:I

    new-instance v9, Ljava/lang/StringBuilder;

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

    invoke-virtual {v6}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v6

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v6, "\u00b0/"

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v6

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v6, "\u00b0"

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p0, v8, v6}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    if-eqz v1, :cond_3

    .line 65
    new-instance v6, Lcom/moji/base/WeatherDrawable;

    iget v5, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconDay:I

    invoke-direct {v6, v5}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    goto :goto_2

    .line 67
    :cond_3
    new-instance v6, Lcom/moji/base/WeatherDrawable;

    iget v5, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconNight:I

    invoke-direct {v6, v5}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    .line 69
    :goto_2
    sget v5, Lcom/moji/appwidget/R$id;->iv_widget_icon0:I

    invoke-virtual {v6, v1}, Lcom/moji/base/WeatherDrawable;->a(Z)I

    move-result v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    .line 70
    sget v1, Lcom/moji/appwidget/R$id;->tv_widget_time0:I

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;

    invoke-virtual {p0, v1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    :cond_4
    const/4 v0, 0x1

    add-int/2addr v4, v0

    if-le v3, v4, :cond_5

    .line 74
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 75
    new-instance v5, Lcom/moji/base/WeatherTemperature;

    iget v6, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

    invoke-direct {v5, v6}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 76
    new-instance v6, Lcom/moji/base/WeatherTemperature;

    iget v7, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

    invoke-direct {v6, v7}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 77
    sget v7, Lcom/moji/appwidget/R$id;->tv_widget_temp_low_high1:I

    new-instance v8, Ljava/lang/StringBuilder;

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

    invoke-virtual {v5}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0/"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v7, v5}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 78
    sget v5, Lcom/moji/appwidget/R$id;->iv_widget_icon1:I

    new-instance v6, Lcom/moji/base/WeatherDrawable;

    iget v1, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconDay:I

    invoke-direct {v6, v1}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    invoke-virtual {v6, v0}, Lcom/moji/base/WeatherDrawable;->a(Z)I

    move-result v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    .line 79
    sget v1, Lcom/moji/appwidget/R$id;->tv_widget_time1:I

    sget v5, Lcom/moji/appwidget/R$string;->tomorrow:I

    invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v1, v5}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    :cond_5
    add-int/2addr v4, v0

    if-le v3, v4, :cond_6

    .line 83
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 84
    new-instance v5, Lcom/moji/base/WeatherTemperature;

    iget v6, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

    invoke-direct {v5, v6}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 85
    new-instance v6, Lcom/moji/base/WeatherTemperature;

    iget v7, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

    invoke-direct {v6, v7}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 86
    sget v7, Lcom/moji/appwidget/R$id;->tv_widget_temp_low_high2:I

    new-instance v8, Ljava/lang/StringBuilder;

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

    invoke-virtual {v5}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0/"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v7, v5}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 87
    sget v5, Lcom/moji/appwidget/R$id;->iv_widget_icon2:I

    new-instance v6, Lcom/moji/base/WeatherDrawable;

    iget v1, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconDay:I

    invoke-direct {v6, v1}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    invoke-virtual {v6, v0}, Lcom/moji/base/WeatherDrawable;->a(Z)I

    move-result v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    const/4 v1, 0x2

    .line 88
    invoke-static {v1}, Lcom/moji/tool/DateFormatTool;->a(I)I

    move-result v1

    .line 89
    sget v5, Lcom/moji/appwidget/R$id;->tv_widget_time2:I

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    sget v7, Lcom/moji/appwidget/R$array;->day_week:I

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v6

    aget-object v1, v6, v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    :cond_6
    add-int/2addr v4, v0

    if-le v3, v4, :cond_7

    .line 93
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 94
    new-instance v5, Lcom/moji/base/WeatherTemperature;

    iget v6, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

    invoke-direct {v5, v6}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 95
    new-instance v6, Lcom/moji/base/WeatherTemperature;

    iget v7, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

    invoke-direct {v6, v7}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 96
    sget v7, Lcom/moji/appwidget/R$id;->tv_widget_temp_low_high3:I

    new-instance v8, Ljava/lang/StringBuilder;

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

    invoke-virtual {v5}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0/"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v5

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, "\u00b0"

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p0, v7, v5}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 97
    sget v5, Lcom/moji/appwidget/R$id;->iv_widget_icon3:I

    new-instance v6, Lcom/moji/base/WeatherDrawable;

    iget v1, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconDay:I

    invoke-direct {v6, v1}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    invoke-virtual {v6, v0}, Lcom/moji/base/WeatherDrawable;->a(Z)I

    move-result v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    const/4 v1, 0x3

    .line 98
    invoke-static {v1}, Lcom/moji/tool/DateFormatTool;->a(I)I

    move-result v1

    .line 99
    sget v5, Lcom/moji/appwidget/R$id;->tv_widget_time3:I

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    sget v7, Lcom/moji/appwidget/R$array;->day_week:I

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v6

    aget-object v1, v6, v1

    invoke-virtual {p0, v5, v1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    :cond_7
    add-int/2addr v4, v0

    if-le v3, v4, :cond_9

    .line 103
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 104
    new-instance v2, Lcom/moji/base/WeatherTemperature;

    iget v3, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

    invoke-direct {v2, v3}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 105
    new-instance v3, Lcom/moji/base/WeatherTemperature;

    iget v4, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

    invoke-direct {v3, v4}, Lcom/moji/base/WeatherTemperature;-><init>(I)V

    .line 106
    sget v4, Lcom/moji/appwidget/R$id;->tv_widget_temp_low_high4:I

    new-instance v5, Ljava/lang/StringBuilder;

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

    invoke-virtual {v2}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v2

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, "\u00b0/"

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Lcom/moji/base/WeatherTemperature;->a()I

    move-result v2

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, "\u00b0"

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v4, v2}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    .line 107
    sget v2, Lcom/moji/appwidget/R$id;->iv_widget_icon4:I

    new-instance v3, Lcom/moji/base/WeatherDrawable;

    iget v1, v1, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mIconDay:I

    invoke-direct {v3, v1}, Lcom/moji/base/WeatherDrawable;-><init>(I)V

    invoke-virtual {v3, v0}, Lcom/moji/base/WeatherDrawable;->a(Z)I

    move-result v0

    invoke-virtual {p0, v2, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setImageViewResource(II)V

    const/4 v0, 0x4

    .line 108
    invoke-static {v0}, Lcom/moji/tool/DateFormatTool;->a(I)I

    move-result v0

    .line 109
    sget v1, Lcom/moji/appwidget/R$id;->tv_widget_time4:I

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/moji/appwidget/R$array;->day_week:I

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

    move-result-object v2

    aget-object v0, v2, v0

    invoke-virtual {p0, v1, v0}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->setTextViewText(ILjava/lang/CharSequence;)V

    goto :goto_4

    :cond_8
    :goto_3
    return-void

    .line 113
    :cond_9
    :goto_4
    invoke-virtual {p0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->updateBackgraoundLayer(Landroid/content/Context;)V

    return-void
.end method
