.class public Lcom/moji/appwidget/image/DImageUpdateStrategy;
.super Lcom/moji/appwidget/core/AWUpdateStrategy;
.source "DImageUpdateStrategy.java"


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

    .line 20
    invoke-direct {p0}, Lcom/moji/appwidget/core/AWUpdateStrategy;-><init>()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 8

    .line 24
    array-length p2, p5

    const/4 p4, 0x0

    :goto_0
    if-ge p4, p2, :cond_4

    aget-object v0, p5, p4

    .line 25
    new-instance v1, Lcom/moji/appwidget/skin/SkinManager;

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

    .line 26
    invoke-virtual {v1, p1, v0}, Lcom/moji/appwidget/skin/SkinManager;->a(Landroid/content/Context;Lcom/moji/appwidget/core/EWidgetSize;)Lcom/moji/appwidget/skin/SkinInfo;

    move-result-object v1

    if-nez v1, :cond_1

    .line 28
    invoke-static {}, Lcom/moji/appwidget/skin/SkinInfoSqliteManager;->a()Lcom/moji/appwidget/skin/SkinInfoSqliteManager;

    move-result-object v2

    const-string v3, "ORG"

    .line 29
    new-instance v4, Lcom/moji/appwidget/skin/Resolution;

    invoke-direct {v4}, Lcom/moji/appwidget/skin/Resolution;-><init>()V

    invoke-virtual {v4, p1}, Lcom/moji/appwidget/skin/Resolution;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/moji/appwidget/skin/SkinInfoSqliteManager;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 30
    new-instance v3, Lcom/moji/appwidget/skin/SkinManager;

    invoke-direct {v3}, Lcom/moji/appwidget/skin/SkinManager;-><init>()V

    const-string v4, "ORG"

    invoke-virtual {v3, p1, v4}, Lcom/moji/appwidget/skin/SkinManager;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    move-result-object v3

    if-eqz v3, :cond_1

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

    move-result v4

    if-nez v4, :cond_1

    .line 32
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/moji/appwidget/skin/SkinInfo;

    .line 33
    new-instance v5, Lcom/moji/appwidget/skin/Resolution;

    invoke-direct {v5}, Lcom/moji/appwidget/skin/Resolution;-><init>()V

    invoke-virtual {v5, p1}, Lcom/moji/appwidget/skin/Resolution;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    .line 34
    iget-object v6, v4, Lcom/moji/appwidget/skin/SkinInfo;->skinType:Lcom/moji/appwidget/core/EWidgetSize;

    invoke-virtual {v0, v6}, Lcom/moji/appwidget/core/EWidgetSize;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    iget-object v6, v4, Lcom/moji/appwidget/skin/SkinInfo;->resolution:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    move-object v1, v4

    .line 37
    :cond_0
    new-instance v5, Lcom/google/gson/Gson;

    invoke-direct {v5}, Lcom/google/gson/Gson;-><init>()V

    .line 38
    new-instance v6, Lcom/moji/appwidget/image/DImageUpdateStrategy$1;

    invoke-direct {v6, p0}, Lcom/moji/appwidget/image/DImageUpdateStrategy$1;-><init>(Lcom/moji/appwidget/image/DImageUpdateStrategy;)V

    invoke-virtual {v6}, Lcom/moji/appwidget/image/DImageUpdateStrategy$1;->getType()Ljava/lang/reflect/Type;

    move-result-object v6

    invoke-virtual {v5, v4, v6}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;Ljava/lang/reflect/Type;)Ljava/lang/String;

    move-result-object v5

    .line 39
    iget-object v6, v4, Lcom/moji/appwidget/skin/SkinInfo;->resolution:Ljava/lang/String;

    iget-object v4, v4, Lcom/moji/appwidget/skin/SkinInfo;->skinType:Lcom/moji/appwidget/core/EWidgetSize;

    const-string v7, "ORG"

    invoke-virtual {v2, v6, v4, v5, v7}, Lcom/moji/appwidget/skin/SkinInfoSqliteManager;->a(Ljava/lang/String;Lcom/moji/appwidget/core/EWidgetSize;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    const/4 v2, 0x0

    if-eqz v0, :cond_3

    .line 46
    sget-object v3, Lcom/moji/appwidget/image/DImageUpdateStrategy$2;->a:[I

    invoke-virtual {v0}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v0

    aget v0, v3, v0

    packed-switch v0, :pswitch_data_0

    goto :goto_2

    .line 57
    :pswitch_0
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X2;

    move-result-object v2

    goto :goto_2

    .line 54
    :pswitch_1
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X1;

    move-result-object v2

    goto :goto_2

    .line 51
    :pswitch_2
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X2;

    move-result-object v2

    goto :goto_2

    .line 48
    :pswitch_3
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X1;

    move-result-object v2

    :goto_2
    if-eqz p3, :cond_2

    if-eqz v2, :cond_2

    .line 62
    invoke-virtual {v2, v1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Lcom/moji/appwidget/skin/SkinInfo;)V

    .line 63
    invoke-virtual {v2, p1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Landroid/content/Context;)V

    :cond_2
    if-eqz v2, :cond_3

    .line 65
    invoke-virtual {v2}, Lcom/moji/appwidget/image/AWFaceDrawer;->a()Lcom/moji/appwidget/core/MJRemoteViews;

    move-result-object v0

    invoke-virtual {p0, p1, v0}, Lcom/moji/appwidget/image/DImageUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V

    :cond_3
    add-int/lit8 p4, p4, 0x1

    goto/16 :goto_0

    :cond_4
    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 4

    .line 72
    array-length p2, p4

    const/4 v0, 0x0

    :goto_0
    if-ge v0, p2, :cond_2

    aget-object v1, p4, v0

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 75
    sget-object v3, Lcom/moji/appwidget/image/DImageUpdateStrategy$2;->a:[I

    invoke-virtual {v1}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v1

    aget v1, v3, v1

    packed-switch v1, :pswitch_data_0

    goto :goto_1

    .line 86
    :pswitch_0
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X2;

    move-result-object v2

    goto :goto_1

    .line 83
    :pswitch_1
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X1;

    move-result-object v2

    goto :goto_1

    .line 80
    :pswitch_2
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X2;

    move-result-object v2

    goto :goto_1

    .line 77
    :pswitch_3
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X1;

    move-result-object v2

    :goto_1
    if-eqz p3, :cond_0

    if-eqz v2, :cond_0

    .line 89
    iget-object v1, v2, Lcom/moji/appwidget/image/AWFaceDrawer;->a:Lcom/moji/appwidget/skin/SkinInfo;

    if-eqz v1, :cond_0

    .line 90
    invoke-virtual {v2, p1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Landroid/content/Context;)V

    :cond_0
    if-eqz v2, :cond_1

    .line 92
    invoke-virtual {v2}, Lcom/moji/appwidget/image/AWFaceDrawer;->a()Lcom/moji/appwidget/core/MJRemoteViews;

    move-result-object v1

    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/image/DImageUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void

    :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 4

    .line 100
    array-length p2, p4

    const/4 v0, 0x0

    :goto_0
    if-ge v0, p2, :cond_2

    aget-object v1, p4, v0

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 103
    sget-object v3, Lcom/moji/appwidget/image/DImageUpdateStrategy$2;->a:[I

    invoke-virtual {v1}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v1

    aget v1, v3, v1

    packed-switch v1, :pswitch_data_0

    goto :goto_1

    .line 114
    :pswitch_0
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X2;

    move-result-object v2

    goto :goto_1

    .line 111
    :pswitch_1
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X1;

    move-result-object v2

    goto :goto_1

    .line 108
    :pswitch_2
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X2;

    move-result-object v2

    goto :goto_1

    .line 105
    :pswitch_3
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X1;

    move-result-object v2

    :goto_1
    if-eqz p3, :cond_0

    if-eqz v2, :cond_0

    .line 117
    iget-object v1, v2, Lcom/moji/appwidget/image/AWFaceDrawer;->a:Lcom/moji/appwidget/skin/SkinInfo;

    if-eqz v1, :cond_0

    .line 118
    invoke-virtual {v2, p1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Landroid/content/Context;)V

    :cond_0
    if-eqz v2, :cond_1

    .line 120
    invoke-virtual {v2}, Lcom/moji/appwidget/image/AWFaceDrawer;->a()Lcom/moji/appwidget/core/MJRemoteViews;

    move-result-object v1

    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/image/DImageUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void

    :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 4

    .line 127
    array-length p2, p4

    const/4 v0, 0x0

    :goto_0
    if-ge v0, p2, :cond_2

    aget-object v1, p4, v0

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 130
    sget-object v3, Lcom/moji/appwidget/image/DImageUpdateStrategy$2;->a:[I

    invoke-virtual {v1}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v1

    aget v1, v3, v1

    packed-switch v1, :pswitch_data_0

    goto :goto_1

    .line 141
    :pswitch_0
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X2;

    move-result-object v2

    goto :goto_1

    .line 138
    :pswitch_1
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X1;

    move-result-object v2

    goto :goto_1

    .line 135
    :pswitch_2
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X2;

    move-result-object v2

    goto :goto_1

    .line 132
    :pswitch_3
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X1;

    move-result-object v2

    :goto_1
    if-eqz p3, :cond_0

    if-eqz v2, :cond_0

    .line 144
    iget-object v1, v2, Lcom/moji/appwidget/image/AWFaceDrawer;->a:Lcom/moji/appwidget/skin/SkinInfo;

    if-eqz v1, :cond_0

    .line 145
    invoke-virtual {v2, p1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Landroid/content/Context;)V

    :cond_0
    if-eqz v2, :cond_1

    .line 147
    invoke-virtual {v2}, Lcom/moji/appwidget/image/AWFaceDrawer;->a()Lcom/moji/appwidget/core/MJRemoteViews;

    move-result-object v1

    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/image/DImageUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void

    :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 4

    .line 154
    array-length p2, p4

    const/4 v0, 0x0

    :goto_0
    if-ge v0, p2, :cond_2

    aget-object v1, p4, v0

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 157
    sget-object v3, Lcom/moji/appwidget/image/DImageUpdateStrategy$2;->a:[I

    invoke-virtual {v1}, Lcom/moji/appwidget/core/EWidgetSize;->ordinal()I

    move-result v1

    aget v1, v3, v1

    packed-switch v1, :pswitch_data_0

    goto :goto_1

    .line 168
    :pswitch_0
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X2;

    move-result-object v2

    goto :goto_1

    .line 165
    :pswitch_1
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer5X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer5X1;

    move-result-object v2

    goto :goto_1

    .line 162
    :pswitch_2
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X2;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X2;

    move-result-object v2

    goto :goto_1

    .line 159
    :pswitch_3
    invoke-static {p1}, Lcom/moji/appwidget/image/DAWFaceDrawer4X1;->b(Landroid/content/Context;)Lcom/moji/appwidget/image/DAWFaceDrawer4X1;

    move-result-object v2

    :goto_1
    if-eqz p3, :cond_0

    if-eqz v2, :cond_0

    .line 171
    iget-object v1, v2, Lcom/moji/appwidget/image/AWFaceDrawer;->a:Lcom/moji/appwidget/skin/SkinInfo;

    if-eqz v1, :cond_0

    .line 172
    invoke-virtual {v2, p1}, Lcom/moji/appwidget/image/AWFaceDrawer;->a(Landroid/content/Context;)V

    :cond_0
    if-eqz v2, :cond_1

    .line 174
    invoke-virtual {v2}, Lcom/moji/appwidget/image/AWFaceDrawer;->a()Lcom/moji/appwidget/core/MJRemoteViews;

    move-result-object v1

    invoke-virtual {p0, p1, v1}, Lcom/moji/appwidget/image/DImageUpdateStrategy;->a(Landroid/content/Context;Lcom/moji/appwidget/core/MJRemoteViews;)V

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.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
