.class Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;
.super Ljava/lang/Object;
.source "AppStoreBasePictureAdActivity.java"

# interfaces
.implements Lcom/moji/mjappstore/listener/ObtainAppLoaderListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->LoadAppInfoTask()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)V
    .locals 0

    .line 91
    iput-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/Exception;)V
    .locals 1

    .line 137
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Z)Z

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;",
            ">;)V"
        }
    .end annotation

    .line 94
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Z)Z

    .line 95
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-virtual {v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->j()V

    .line 96
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 97
    iget-object v0, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {v0}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const/4 v0, 0x1

    if-eqz p1, :cond_2

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

    move-result v2

    if-nez v2, :cond_2

    const/4 v2, 0x0

    .line 99
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    if-ge v2, v3, :cond_1

    .line 100
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v3}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getAppid()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/moji/tool/Utils;->a(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v3}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getVersioncode()I

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v3}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getPkgName()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/moji/tool/Utils;->a(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 102
    iget-object v3, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-static {v3, v4}, Lcom/moji/mjappstore/engine/AppUtil;->a(Landroid/content/Context;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)I

    .line 103
    iget-object v3, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {v3, p1, v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;Ljava/util/List;I)V

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 107
    :cond_1
    iget-object v2, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    sub-int/2addr v3, v0

    invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

    invoke-virtual {v3}, Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;->getToken()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

    :cond_2
    if-nez p1, :cond_3

    const-string v2, "0000-00-00"

    .line 109
    iget-object v3, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iget-object v3, v3, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

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

    move-result v2

    if-eqz v2, :cond_3

    .line 110
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iput v1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    .line 111
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iget-object p1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->l:Landroid/widget/TextView;

    sget v2, Lcom/moji/mjappstore/R$string;->sns_notify_click_refresh:I

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 112
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 113
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setClickable(Z)V

    return-void

    :cond_3
    if-eqz p1, :cond_4

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

    move-result v2

    if-eqz v2, :cond_4

    const-string v2, "0000-00-00"

    iget-object v3, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iget-object v3, v3, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->i:Ljava/lang/String;

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

    move-result v2

    if-eqz v2, :cond_4

    .line 117
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iput v1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    .line 118
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iget-object p1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->l:Landroid/widget/TextView;

    sget v0, Lcom/moji/mjappstore/R$string;->classify_refresh_des:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 119
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 120
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setClickable(Z)V

    return-void

    :cond_4
    if-eqz p1, :cond_5

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

    move-result v2

    if-nez v2, :cond_5

    iget-object v2, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {v2}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->c(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v2

    if-nez v2, :cond_5

    .line 124
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iput v1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->k:I

    .line 125
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iget-object p1, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->l:Landroid/widget/TextView;

    sget v0, Lcom/moji/mjappstore/R$string;->classify_refresh_des:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 126
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 127
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    invoke-static {p1}, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->b(Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setClickable(Z)V

    return-void

    :cond_5
    if-eqz p1, :cond_6

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

    move-result p1

    if-eqz p1, :cond_6

    .line 131
    iget-object p1, p0, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity$1;->a:Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;

    iput-boolean v0, p1, Lcom/moji/mjappstore/activity/AppStoreBasePictureAdActivity;->a:Z

    :cond_6
    return-void
.end method
