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


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

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

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

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

    return-void
.end method

.method private refreshRotate(Landroid/content/Context;)V
    .locals 2

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

    invoke-virtual {p0, v0}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->removeAllViews(I)V

    .line 159
    new-instance v0, Landroid/widget/RemoteViews;

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

    move-result-object p1

    sget v1, Lcom/moji/appwidget/R$layout;->refersh_white_rotate_white:I

    invoke-direct {v0, p1, v1}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V

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

    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->addView(ILandroid/widget/RemoteViews;)V

    return-void
.end method

.method private updateDate(Landroid/content/Context;)V
    .locals 3

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

    move-result v0

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

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

    move-result-object p1

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

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

    move-result-object p1

    aget-object p1, p1, v0

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

    return-void
.end method


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

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

    move-result-object v0

    .line 116
    new-instance v1, Landroid/content/Intent;

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

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

    .line 117
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/moji/appwidget/service/HotSpotService;

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

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

    const-class v4, Lcom/moji/appwidget/service/HotSpotService;

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

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

    const-class v5, Lcom/moji/appwidget/service/HotSpotService;

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

    .line 120
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/moji/appwidget/service/HotSpotService;

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

    .line 121
    new-instance v6, Landroid/content/Intent;

    const-class v7, Lcom/moji/appwidget/service/HotSpotService;

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

    .line 122
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    sget-object v8, Lcom/moji/appwidget/hotspot/EHotspotPosition;->OPEN_APP:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v7

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

    const-string v7, "widgetsize"

    const/16 v8, 0x29

    .line 123
    invoke-virtual {v2, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 124
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    sget-object v9, Lcom/moji/appwidget/hotspot/EHotspotPosition;->SHORT_FORECAST:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v7

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

    const-string v7, "widgetsize"

    .line 125
    invoke-virtual {v3, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 126
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    sget-object v9, Lcom/moji/appwidget/hotspot/EHotspotPosition;->VOICE_ALARM:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v7

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

    const-string v7, "widgetsize"

    .line 127
    invoke-virtual {v4, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 128
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    sget-object v9, Lcom/moji/appwidget/hotspot/EHotspotPosition;->DAILY_DETAIL:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v7

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

    const-string v7, "widgetsize"

    .line 129
    invoke-virtual {v1, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v7, "index"

    const/4 v9, 0x1

    .line 130
    invoke-virtual {v1, v7, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 131
    new-instance v7, Ljava/lang/StringBuilder;

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

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

    sget-object v9, Lcom/moji/appwidget/hotspot/EHotspotPosition;->UPDATE_WEATHER:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v7

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

    const-string v7, "widgetsize"

    .line 132
    invoke-virtual {v5, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 133
    new-instance v7, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v0

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

    const-string v0, "widgetsize"

    .line 134
    invoke-virtual {v6, v0, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 v0, 0x8000000

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

    move-result-object v2

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

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

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

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

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

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

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

    move-result-object v2

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

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

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

    move-result-object v2

    .line 142
    sget v3, Lcom/moji/appwidget/R$id;->tv_short_weather:I

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

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

    move-result-object v1

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

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

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

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

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

    move-result-object v1

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

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

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

    move-result-object p1

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

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

    return-void
.end method

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

    return-void
.end method

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

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

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

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

    move-result-object v1

    .line 38
    invoke-direct {p0, p1}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->refreshRotate(Landroid/content/Context;)V

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

    move-result v2

    const/16 v3, 0x8

    const/4 v4, 0x0

    if-eqz v2, :cond_8

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

    invoke-virtual {p0, v0, v3}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    if-nez v0, :cond_0

    return-void

    .line 45
    :cond_0
    iget-object v2, v0, Lcom/moji/weatherprovider/data/Detail;->mCondition:Lcom/moji/weatherprovider/data/Condition;

    .line 46
    invoke-virtual {v1}, Lcom/moji/weatherprovider/data/Weather;->isLocation()Z

    move-result v5

    if-eqz v5, :cond_1

    .line 47
    sget v3, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    invoke-virtual {p0, v3, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

    .line 48
    sget v3, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    sget v5, Lcom/moji/appwidget/R$drawable;->widget_local_icon_black:I

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

    goto :goto_0

    .line 50
    :cond_1
    sget v5, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    invoke-virtual {p0, v5, v3}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

    .line 52
    :goto_0
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v3

    if-eqz v3, :cond_2

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

    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_3

    .line 54
    sget v3, Lcom/moji/appwidget/R$id;->tv_city_name:I

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

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

    goto :goto_1

    .line 57
    :cond_2
    sget v0, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    sget v3, Lcom/moji/appwidget/R$drawable;->widget_warn:I

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

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

    sget v3, Lcom/moji/appwidget/R$string;->widget_network_error:I

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

    move-result-object v3

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

    :cond_3
    :goto_1
    if-nez v2, :cond_4

    return-void

    .line 64
    :cond_4
    iget-object v0, v2, Lcom/moji/weatherprovider/data/Condition;->mCondition:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

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

    iget-object v3, v2, Lcom/moji/weatherprovider/data/Condition;->mCondition:Ljava/lang/String;

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

    .line 67
    :cond_5
    iget v0, v2, Lcom/moji/weatherprovider/data/Condition;->mIcon:I

    const/16 v3, 0x2c

    if-eq v0, v3, :cond_6

    .line 68
    iget-wide v4, v2, Lcom/moji/weatherprovider/data/Condition;->mSunRise:J

    iget-wide v6, v2, Lcom/moji/weatherprovider/data/Condition;->mSunSet:J

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

    move-result-wide v8

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

    move-result v0

    .line 69
    sget v3, Lcom/moji/appwidget/R$id;->iv_weather_icon:I

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

    iget v5, v2, Lcom/moji/weatherprovider/data/Condition;->mIcon:I

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

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

    move-result v0

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

    .line 71
    :cond_6
    iget v0, v2, Lcom/moji/weatherprovider/data/Condition;->mTemperature:I

    const/16 v3, -0x64

    if-eq v0, v3, :cond_7

    .line 72
    new-instance v0, Lcom/moji/base/WeatherTemperature;

    iget v2, v2, Lcom/moji/weatherprovider/data/Condition;->mTemperature:I

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

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

    new-instance v3, Ljava/lang/StringBuilder;

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

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

    move-result v0

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

    const-string v0, "\u00b0"

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

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

    move-result-object v0

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

    .line 77
    :cond_7
    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->updateShortDesp(Landroid/content/Context;Lcom/moji/weatherprovider/data/Weather;)V

    .line 78
    invoke-direct {p0, p1}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->updateDate(Landroid/content/Context;)V

    .line 79
    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->updateWeatherTime(Landroid/content/Context;Lcom/moji/weatherprovider/data/Weather;)V

    goto :goto_2

    .line 81
    :cond_8
    invoke-virtual {v0}, Lcom/moji/appwidget/WeatherRepeater;->b()I

    move-result v0

    if-nez v0, :cond_9

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

    invoke-virtual {p0, p1, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

    goto :goto_2

    .line 84
    :cond_9
    invoke-direct {p0, p1}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->updateDate(Landroid/content/Context;)V

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

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    invoke-virtual {p0, v0, v3}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

    .line 87
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    if-eqz v0, :cond_b

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

    move-result-object v0

    if-eqz v0, :cond_a

    .line 89
    iget-boolean v0, v0, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    if-eqz v0, :cond_a

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

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    sget v1, Lcom/moji/appwidget/R$drawable;->widget_warn:I

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

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

    sget v1, Lcom/moji/appwidget/R$string;->location_error:I

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

    move-result-object p1

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

    goto :goto_2

    .line 94
    :cond_a
    sget v0, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    sget v1, Lcom/moji/appwidget/R$drawable;->widget_warn:I

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

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

    sget v1, Lcom/moji/appwidget/R$string;->widget_server_error:I

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

    move-result-object p1

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

    goto :goto_2

    .line 99
    :cond_b
    sget v0, Lcom/moji/appwidget/R$id;->iv_city_icon:I

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/WhiteViewRemoteViews4X1;->setViewVisibility(II)V

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

    sget v1, Lcom/moji/appwidget/R$drawable;->widget_warn:I

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

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

    sget v1, Lcom/moji/appwidget/R$string;->widget_network_error:I

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

    move-result-object p1

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

    :goto_2
    return-void
.end method
