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


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

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

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

    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 addWeatherAlertView(Lcom/moji/weatherprovider/data/AlertList;Landroid/content/Context;)V
    .locals 6

    const/16 v0, 0x8

    if-eqz p1, :cond_2

    .line 118
    iget-object p1, p1, Lcom/moji/weatherprovider/data/AlertList;->mAlert:Ljava/util/List;

    if-eqz p1, :cond_1

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

    move-result v1

    if-nez v1, :cond_1

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

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->setViewVisibility(II)V

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

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

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

    move-result v1

    if-ge v2, v1, :cond_3

    .line 123
    new-instance v1, Landroid/widget/RemoteViews;

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

    move-result-object v3

    sget v4, Lcom/moji/appwidget/R$layout;->widget_weather_alert:I

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

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

    move-result-object v3

    check-cast v3, Lcom/moji/weatherprovider/data/AlertList$Alert;

    if-eqz v3, :cond_0

    .line 126
    new-instance v4, Lcom/moji/base/AlertInfo;

    iget-object v5, v3, Lcom/moji/weatherprovider/data/AlertList$Alert;->mIcon:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    iget-object v3, v3, Lcom/moji/weatherprovider/data/AlertList$Alert;->mName:Ljava/lang/String;

    invoke-direct {v4, v5, v3}, Lcom/moji/base/AlertInfo;-><init>(ILjava/lang/String;)V

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

    iget v5, v4, Lcom/moji/base/AlertInfo;->b:I

    invoke-virtual {v1, v3, v5}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

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

    iget v4, v4, Lcom/moji/base/AlertInfo;->a:I

    invoke-virtual {v1, v3, v4}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

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

    invoke-virtual {p0, v3, v1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->addView(ILandroid/widget/RemoteViews;)V

    goto :goto_1

    .line 131
    :cond_0
    sget v1, Lcom/moji/appwidget/R$id;->ll_weather_alert:I

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

    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

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

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

    goto :goto_2

    .line 138
    :cond_2
    sget p1, Lcom/moji/appwidget/R$id;->ll_weather_alert:I

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

    :cond_3
    :goto_2
    return-void
.end method

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

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

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

    .line 253
    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_balck:I

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

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

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

    return-void
.end method

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

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

    move-result v0

    .line 248
    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/BlackViewRemoteViews4X2;->setTextViewText(ILjava/lang/CharSequence;)V

    return-void
.end method


# virtual methods
.method public deleteSetting(Landroid/content/Context;)V
    .locals 2

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

    const/4 v1, 0x0

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

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

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

    .line 268
    invoke-virtual {p0, p1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->setHotspotAction(Landroid/content/Context;)V

    return-void
.end method

.method public refreshSetting(Landroid/content/Context;)V
    .locals 3

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

    const/16 v1, 0x8

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

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

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

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

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

    move-result-object v1

    sget v2, Lcom/moji/appwidget/R$layout;->widget_4x2_setting:I

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

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

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

    .line 262
    invoke-virtual {p0, p1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->setHotspotAction(Landroid/content/Context;)V

    return-void
.end method

.method public setHotspotAction(Landroid/content/Context;)V
    .locals 12

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

    move-result-object v0

    .line 151
    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 152
    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 153
    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 154
    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 155
    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 156
    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 157
    new-instance v7, Landroid/content/Intent;

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

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

    .line 159
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

    const/16 v9, 0x2a

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

    .line 161
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    .line 163
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    .line 165
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    const-string v8, "index"

    const/4 v10, 0x1

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

    .line 168
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    .line 170
    new-instance v8, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    .line 172
    new-instance v8, Ljava/lang/StringBuilder;

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

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

    sget-object v10, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WEATHER_ALERT:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v8

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

    const-string v8, "widgetsize"

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

    const/high16 v8, 0x8000000

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

    move-result-object v2

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

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

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

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

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

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

    .line 178
    sget v10, Lcom/moji/appwidget/R$id;->il_first_back_4x2:I

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

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

    move-result-object v2

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

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

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

    move-result-object v2

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

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

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

    move-result-object v1

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

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

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

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

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

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

    move-result-object v1

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

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

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

    move-result-object v1

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

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

    .line 194
    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 195
    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 196
    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 197
    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 198
    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 199
    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 200
    new-instance v7, Landroid/content/Intent;

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

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

    .line 202
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_11:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

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

    .line 205
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_12:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

    .line 206
    invoke-virtual {v2, v10, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 208
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_13:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

    .line 209
    invoke-virtual {v3, v10, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 211
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_14:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

    .line 212
    invoke-virtual {v4, v10, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 214
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_31:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

    .line 215
    invoke-virtual {v5, v10, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 217
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    sget-object v11, Lcom/moji/appwidget/hotspot/EHotspotPosition;->WIDGET_SETTING_34:Lcom/moji/appwidget/hotspot/EHotspotPosition;

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

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

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

    move-result-object v10

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

    const-string v10, "widgetsize"

    .line 218
    invoke-virtual {v6, v10, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 220
    new-instance v10, Ljava/lang/StringBuilder;

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

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

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

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

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

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

    move-result-object v0

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

    const-string v0, "widgetsize"

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

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

    move-result-object v0

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

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

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

    move-result-object v0

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

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

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

    move-result-object v0

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

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

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

    move-result-object v0

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

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

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

    move-result-object v0

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

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

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

    move-result-object v0

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

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

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

    move-result-object p1

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

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

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

    invoke-virtual {p0, v0, p1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->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 11

    .line 40
    invoke-virtual {p0, p1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->deleteSetting(Landroid/content/Context;)V

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

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

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

    move-result-object v1

    .line 44
    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->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 45
    sget v0, Lcom/moji/appwidget/R$id;->rl_weather_widget:I

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

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

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

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

    if-nez v0, :cond_0

    return-void

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

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

    move-result v5

    if-eqz v5, :cond_1

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

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

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

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

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

    goto :goto_0

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

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

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

    move-result v3

    if-eqz v3, :cond_2

    .line 59
    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 60
    sget v3, Lcom/moji/appwidget/R$id;->tv_city_name:I

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

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

    goto :goto_1

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

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

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

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

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

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

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

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

    move-result-object v4

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

    :cond_3
    :goto_1
    if-nez v2, :cond_4

    return-void

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

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

    move-result v3

    if-nez v3, :cond_5

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

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

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

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

    const/16 v4, 0x2c

    if-eq v3, v4, :cond_6

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

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

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

    move-result-wide v9

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

    move-result v3

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

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

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

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

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

    move-result v3

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

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

    const/16 v4, -0x64

    if-eq v3, v4, :cond_7

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

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

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

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

    new-instance v4, Ljava/lang/StringBuilder;

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

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

    move-result v3

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

    const-string v3, "\u00b0"

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

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

    move-result-object v3

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

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

    .line 84
    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mAlertList:Lcom/moji/weatherprovider/data/AlertList;

    .line 85
    invoke-direct {p0, v0, p1}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->addWeatherAlertView(Lcom/moji/weatherprovider/data/AlertList;Landroid/content/Context;)V

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

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

    goto/16 :goto_2

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

    move-result v0

    if-nez v0, :cond_9

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

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

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

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

    goto :goto_2

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

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

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

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

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

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

    move-result v0

    if-eqz v0, :cond_b

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

    move-result-object v0

    if-eqz v0, :cond_a

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

    if-eqz v0, :cond_a

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

    invoke-virtual {p0, v0, v4}, Lcom/moji/appwidget/original/BlackViewRemoteViews4X2;->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/BlackViewRemoteViews4X2;->setImageViewResource(II)V

    .line 101
    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/BlackViewRemoteViews4X2;->setTextViewText(ILjava/lang/CharSequence;)V

    goto :goto_2

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

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

    .line 104
    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/BlackViewRemoteViews4X2;->setImageViewResource(II)V

    .line 105
    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/BlackViewRemoteViews4X2;->setTextViewText(ILjava/lang/CharSequence;)V

    goto :goto_2

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

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

    .line 109
    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/BlackViewRemoteViews4X2;->setImageViewResource(II)V

    .line 110
    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/BlackViewRemoteViews4X2;->setTextViewText(ILjava/lang/CharSequence;)V

    :goto_2
    return-void
.end method
