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

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjappstore/BaseTabFragment$1;->a(Ljava/util/List;)V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:I

.field final synthetic c:Lcom/moji/mjappstore/BaseTabFragment$1;


# direct methods
.method constructor <init>(Lcom/moji/mjappstore/BaseTabFragment$1;Ljava/util/List;I)V
    .locals 0

    .line 171
    iput-object p1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iput-object p2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iput p3, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    .line 175
    invoke-static {}, Lcom/moji/mjappstore/engine/AppUtil;->a()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 178
    :cond_0
    iget-object p1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object p1, p1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->type:Ljava/lang/String;

    const-string v0, "1"

    .line 179
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 180
    new-instance p1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iget-object v0, v0, Lcom/moji/mjappstore/BaseTabFragment$1;->a:Lcom/moji/mjappstore/BaseTabFragment;

    invoke-virtual {v0}, Lcom/moji/mjappstore/BaseTabFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const-class v1, Lcom/moji/webview/BrowserActivity;

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

    const-string v0, "title"

    .line 181
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object v1, v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->adname:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "target_url"

    .line 182
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object v1, v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->linkurl:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 183
    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iget-object v0, v0, Lcom/moji/mjappstore/BaseTabFragment$1;->a:Lcom/moji/mjappstore/BaseTabFragment;

    invoke-virtual {v0}, Lcom/moji/mjappstore/BaseTabFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_1
    const-string v0, "2"

    .line 184
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 186
    new-instance p1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iget-object v0, v0, Lcom/moji/mjappstore/BaseTabFragment$1;->a:Lcom/moji/mjappstore/BaseTabFragment;

    invoke-virtual {v0}, Lcom/moji/mjappstore/BaseTabFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const-class v1, Lcom/moji/mjappstore/activity/AppStoreDetailActivity;

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

    const-string v0, "appid"

    .line 187
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object v1, v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->linkurl:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "appName"

    .line 188
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object v1, v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->adname:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "downLoadCategory"

    .line 189
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget v1, v1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->categoryid:I

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v0, "formRelativeApp"

    const/4 v1, 0x0

    .line 190
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 191
    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iget-object v0, v0, Lcom/moji/mjappstore/BaseTabFragment$1;->a:Lcom/moji/mjappstore/BaseTabFragment;

    invoke-virtual {v0}, Lcom/moji/mjappstore/BaseTabFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    .line 193
    :cond_2
    :goto_0
    iget-object p1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object p1, p1, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->id:Ljava/lang/String;

    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

    .line 194
    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget-object v0, v0, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->adname:Ljava/lang/String;

    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->c:Lcom/moji/mjappstore/BaseTabFragment$1;

    iget-object v1, v1, Lcom/moji/mjappstore/BaseTabFragment$1;->a:Lcom/moji/mjappstore/BaseTabFragment;

    iget v1, v1, Lcom/moji/mjappstore/BaseTabFragment;->G:I

    iget-object v2, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->a:Ljava/util/List;

    iget v3, p0, Lcom/moji/mjappstore/BaseTabFragment$1$1;->b:I

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;

    iget v2, v2, Lcom/moji/http/appmoji001/data/TopBannerResult$TopBannerInfo;->categoryid:I

    .line 193
    invoke-static {p1, v0, v1, v2}, Lcom/moji/mjappstore/engine/AsyncStasticUtil;->a(Ljava/lang/String;Ljava/lang/String;II)V

    return-void
.end method
