.class Lcom/moji/appwidget/image/ImageRemoteViews5X1;
.super Lcom/moji/appwidget/image/ImageRemoteViews;
.source "ImageRemoteViews5X1.java"


# static fields
.field public static final FACE_NAME:Ljava/lang/String; = "face_51.png"


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

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

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

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

    return-void
.end method


# virtual methods
.method public facePictureName()Ljava/lang/String;
    .locals 1

    const-string v0, "face_51.png"

    return-object v0
.end method

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

    .line 32
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "setHotspotAction"

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result-object v0

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

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

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

    move-result-object v1

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

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

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

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

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

    if-eqz v1, :cond_0

    .line 40
    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 41
    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 43
    :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 44
    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-string v0, "widgetsize"

    const/16 v1, 0x33

    .line 46
    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v0, "widgetsize"

    .line 47
    invoke-virtual {v4, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 v0, 0x8000000

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

    move-result-object v2

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

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

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

    move-result-object p1

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

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

    return-void
.end method
