.class public Lcom/moji/mjweather/CMojiWidget4x1;
.super Lcom/moji/appwidget/core/MJAppWidgetProvider;
.source "CMojiWidget4x1.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 16
    invoke-direct {p0}, Lcom/moji/appwidget/core/MJAppWidgetProvider;-><init>()V

    return-void
.end method


# virtual methods
.method protected a(Landroid/content/Context;Lcom/moji/appwidget/hotspot/EHotspotPosition;Landroid/content/Intent;)V
    .locals 2

    .line 36
    sget-object v0, Lcom/moji/mjweather/CMojiWidget4x1$1;->a:[I

    invoke-virtual {p2}, Lcom/moji/appwidget/hotspot/EHotspotPosition;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    goto :goto_1

    .line 78
    :pswitch_0
    invoke-virtual {p0, p2, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->a(Lcom/moji/appwidget/hotspot/EHotspotPosition;Landroid/content/Context;)V

    goto :goto_1

    .line 70
    :pswitch_1
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->m(Landroid/content/Context;)V

    goto :goto_1

    .line 67
    :pswitch_2
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->i(Landroid/content/Context;)V

    goto :goto_1

    .line 64
    :pswitch_3
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->h(Landroid/content/Context;)V

    goto :goto_1

    .line 61
    :pswitch_4
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->g(Landroid/content/Context;)V

    goto :goto_1

    .line 58
    :pswitch_5
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->f(Landroid/content/Context;)V

    goto :goto_1

    .line 55
    :pswitch_6
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->e(Landroid/content/Context;)V

    goto :goto_1

    :pswitch_7
    const/4 p2, 0x1

    if-nez p3, :cond_0

    goto :goto_0

    :cond_0
    const-string v0, "index"

    .line 51
    invoke-virtual {p3, v0, p2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p2

    .line 52
    :goto_0
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/CMojiWidget4x1;->a(Landroid/content/Context;I)V

    goto :goto_1

    .line 48
    :pswitch_8
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->c(Landroid/content/Context;)V

    goto :goto_1

    .line 45
    :pswitch_9
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->d(Landroid/content/Context;)V

    goto :goto_1

    .line 42
    :pswitch_a
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/CMojiWidget4x1;->a(Landroid/content/Context;Lcom/moji/appwidget/hotspot/EHotspotPosition;)V

    goto :goto_1

    .line 38
    :pswitch_b
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget4x1;->a(Landroid/content/Context;)V

    :goto_1
    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_b
        :pswitch_a
        :pswitch_a
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method protected b()Lcom/moji/appwidget/core/EWidgetSize;
    .locals 1

    .line 20
    sget-object v0, Lcom/moji/appwidget/core/EWidgetSize;->ST_4x1:Lcom/moji/appwidget/core/EWidgetSize;

    return-object v0
.end method

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

    .line 25
    invoke-super {p0, p1}, Lcom/moji/appwidget/core/MJAppWidgetProvider;->onEnabled(Landroid/content/Context;)V

    .line 26
    new-instance v0, Landroid/content/ComponentName;

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

    move-result-object v1

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

    .line 27
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    .line 28
    invoke-virtual {p1, v0}, Landroid/content/pm/PackageManager;->getComponentEnabledSetting(Landroid/content/ComponentName;)I

    move-result v1

    const/4 v2, 0x1

    if-eq v2, v1, :cond_0

    if-eqz v1, :cond_0

    .line 30
    invoke-virtual {p1, v0, v2, v2}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V

    :cond_0
    return-void
.end method
