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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjappstore/BaseTabFragment;->b(Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)Landroid/view/View;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

.field final synthetic b:Lcom/moji/mjappstore/BaseTabFragment;


# direct methods
.method constructor <init>(Lcom/moji/mjappstore/BaseTabFragment;Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;)V
    .locals 0

    .line 450
    iput-object p1, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->b:Lcom/moji/mjappstore/BaseTabFragment;

    iput-object p2, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->a:Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

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

    return-void
.end method


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

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

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 456
    :cond_0
    new-instance p1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->b: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 457
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->a:Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

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

    move-result-object v1

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

    const-string v0, "appName"

    .line 458
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->a:Lcom/moji/http/appmoji001/data/AppInfoResult$AppInfo;

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

    move-result-object v1

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

    const-string v0, "downLoadCategory"

    .line 459
    iget-object v1, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->b:Lcom/moji/mjappstore/BaseTabFragment;

    iget v1, v1, Lcom/moji/mjappstore/BaseTabFragment;->G: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 460
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 461
    iget-object v0, p0, Lcom/moji/mjappstore/BaseTabFragment$4;->b:Lcom/moji/mjappstore/BaseTabFragment;

    const/4 v1, 0x2

    invoke-virtual {v0, p1, v1}, Lcom/moji/mjappstore/BaseTabFragment;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method
