211 lines
4.9 KiB
Smali
211 lines
4.9 KiB
Smali
.class public Lcom/moji/mjweather/CMojiWidget5x2;
|
|
.super Lcom/moji/appwidget/core/MJAppWidgetProvider;
|
|
.source "CMojiWidget5x2.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 37
|
|
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
|
|
|
|
invoke-virtual {p2}, Lcom/moji/appwidget/hotspot/EHotspotPosition;->name()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 38
|
|
sget-object v0, Lcom/moji/mjweather/CMojiWidget5x2$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 83
|
|
:pswitch_0
|
|
invoke-virtual {p0, p2, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->a(Lcom/moji/appwidget/hotspot/EHotspotPosition;Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 75
|
|
:pswitch_1
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->m(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 72
|
|
:pswitch_2
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->g(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:pswitch_3
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->f(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 66
|
|
:pswitch_4
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->i(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 63
|
|
:pswitch_5
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->h(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_6
|
|
const/4 p2, 0x1
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "index"
|
|
|
|
.line 59
|
|
invoke-virtual {p3, v0, p2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p2
|
|
|
|
.line 60
|
|
:goto_0
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/CMojiWidget5x2;->a(Landroid/content/Context;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 56
|
|
:pswitch_7
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->e(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 53
|
|
:pswitch_8
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->c(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 50
|
|
:pswitch_9
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->d(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 47
|
|
:pswitch_a
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/CMojiWidget5x2;->a(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 43
|
|
:pswitch_b
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/CMojiWidget5x2;->a(Landroid/content/Context;Lcom/moji/appwidget/hotspot/EHotspotPosition;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_b
|
|
:pswitch_b
|
|
:pswitch_b
|
|
: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 21
|
|
sget-object v0, Lcom/moji/appwidget/core/EWidgetSize;->ST_5x2:Lcom/moji/appwidget/core/EWidgetSize;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onEnabled(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
.line 26
|
|
invoke-super {p0, p1}, Lcom/moji/appwidget/core/MJAppWidgetProvider;->onEnabled(Landroid/content/Context;)V
|
|
|
|
.line 27
|
|
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 28
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object p1
|
|
|
|
.line 29
|
|
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 31
|
|
invoke-virtual {p1, v0, v2, v2}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|