391 lines
8.9 KiB
Smali
391 lines
8.9 KiB
Smali
.class public Lcom/moji/appwidget/original/ViewUpdateStrategy;
|
|
.super Lcom/moji/appwidget/core/AWUpdateStrategy;
|
|
.source "ViewUpdateStrategy.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Lcom/moji/appwidget/core/AWUpdateStrategy;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 121
|
|
new-instance v0, Lcom/moji/appwidget/original/ViewRemoteViews4X1;
|
|
|
|
invoke-direct {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews4X1;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 122
|
|
invoke-virtual {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews4X1;->updateView(Landroid/content/Context;)V
|
|
|
|
.line 123
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 127
|
|
new-instance v0, Lcom/moji/appwidget/original/ViewRemoteViews4X2;
|
|
|
|
invoke-direct {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews4X2;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 128
|
|
invoke-virtual {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews4X2;->updateView(Landroid/content/Context;)V
|
|
|
|
.line 129
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private c(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 133
|
|
new-instance v0, Lcom/moji/appwidget/original/ViewRemoteViews5X1;
|
|
|
|
invoke-direct {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 134
|
|
invoke-virtual {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X1;->updateView(Landroid/content/Context;)V
|
|
|
|
.line 135
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private d(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 139
|
|
new-instance v0, Lcom/moji/appwidget/original/ViewRemoteViews5X2;
|
|
|
|
invoke-direct {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X2;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 140
|
|
invoke-virtual {v0, p1}, Lcom/moji/appwidget/original/ViewRemoteViews5X2;->updateView(Landroid/content/Context;)V
|
|
|
|
.line 141
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public varargs a(Landroid/content/Context;Ljava/lang/String;ZLcom/moji/appwidget/activity/WidgetConfigListener;[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 1
|
|
|
|
.line 19
|
|
array-length p2, p5
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_1
|
|
|
|
aget-object p4, p5, p3
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
.line 21
|
|
sget-object v0, Lcom/moji/appwidget/original/ViewUpdateStrategy$1;->a:[I
|
|
|
|
invoke-virtual {p4}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I
|
|
|
|
move-result p4
|
|
|
|
aget p4, v0, p4
|
|
|
|
packed-switch p4, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:pswitch_0
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->d(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 29
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->c(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 26
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->b(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 23
|
|
:pswitch_3
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;)V
|
|
|
|
:cond_0
|
|
:goto_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public varargs a(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 2
|
|
|
|
.line 41
|
|
array-length p2, p4
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_1
|
|
|
|
aget-object v0, p4, p3
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 43
|
|
sget-object v1, Lcom/moji/appwidget/original/ViewUpdateStrategy$1;->a:[I
|
|
|
|
invoke-virtual {v0}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
aget v0, v1, v0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 54
|
|
:pswitch_0
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->d(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 51
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->c(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 48
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->b(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 45
|
|
:pswitch_3
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;)V
|
|
|
|
:cond_0
|
|
:goto_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public varargs b(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 2
|
|
|
|
.line 63
|
|
array-length p2, p4
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_1
|
|
|
|
aget-object v0, p4, p3
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 65
|
|
sget-object v1, Lcom/moji/appwidget/original/ViewUpdateStrategy$1;->a:[I
|
|
|
|
invoke-virtual {v0}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
aget v0, v1, v0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 76
|
|
:pswitch_0
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->d(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 73
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->c(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 70
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->b(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 67
|
|
:pswitch_3
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;)V
|
|
|
|
:cond_0
|
|
:goto_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public varargs c(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 2
|
|
|
|
.line 84
|
|
array-length p2, p4
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_1
|
|
|
|
aget-object v0, p4, p3
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 86
|
|
sget-object v1, Lcom/moji/appwidget/original/ViewUpdateStrategy$1;->a:[I
|
|
|
|
invoke-virtual {v0}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I
|
|
|
|
move-result v0
|
|
|
|
aget v0, v1, v0
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 97
|
|
:pswitch_0
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->d(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 94
|
|
:pswitch_1
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->c(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 91
|
|
:pswitch_2
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->b(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 88
|
|
:pswitch_3
|
|
invoke-direct {p0, p1}, Lcom/moji/appwidget/original/ViewUpdateStrategy;->a(Landroid/content/Context;)V
|
|
|
|
:cond_0
|
|
:goto_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public varargs d(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 0
|
|
|
|
.line 106
|
|
new-instance p1, Lcom/moji/appwidget/WeatherRepeater;
|
|
|
|
invoke-direct {p1}, Lcom/moji/appwidget/WeatherRepeater;-><init>()V
|
|
|
|
.line 107
|
|
invoke-virtual {p1}, Lcom/moji/appwidget/WeatherRepeater;->a()Lcom/moji/weatherprovider/data/Weather;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs e(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public varargs f(Landroid/content/Context;Ljava/lang/String;Z[Lcom/moji/appwidget/core/EWidgetSize;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|