.class Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;
.super Ljava/lang/Object;
.source "SubjectRelativeArticleAdapter.java"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

.field final synthetic b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;)V
    .locals 0

    .line 235
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    iput-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

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

    return-void
.end method


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

    .line 238
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget p1, p1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->show_type:I

    const/4 v0, 0x6

    const/4 v1, 0x7

    if-eq p1, v1, :cond_1

    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget p1, p1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->show_type:I

    const/16 v1, 0x9

    if-ne p1, v1, :cond_0

    goto :goto_0

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

    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-static {v1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/moji/mjweather/feed/ZakerDetailsActivity;

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

    const-string v1, "feeddetail_feed_id"

    .line 253
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget-wide v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->feed_id:J

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

    const-string v1, "feeddetail_title"

    const-string v2, "\u58a8\u8ff9\u8d44\u8baf"

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

    const-string v1, "feeddetail_from_type"

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

    .line 256
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_1

    .line 239
    :cond_1
    :goto_0
    new-instance p1, Landroid/content/Intent;

    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-static {v1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/moji/mjweather/feed/VideoDetailsActivity;

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

    .line 240
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    .line 241
    invoke-virtual {v1}, Landroid/os/Bundle;->clear()V

    const-string v2, "feeddetail_feed_id"

    .line 242
    iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget-wide v3, v3, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->feed_id:J

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    const-string v2, "feeddetail_title"

    const-string v3, "\u58a8\u8ff9\u8d44\u8baf"

    .line 243
    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "feeddetail_rec_json"

    .line 244
    iget-object v3, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget-object v3, v3, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->rec_json:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "feeddetail_from_type"

    .line 245
    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v0, "feeddetail_feed_url"

    .line 246
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->full_feed_url:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "feeddetail_height"

    .line 247
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->video_h:I

    invoke-virtual {v1, v0, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v0, "feeddetail_width"

    .line 248
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->a:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    iget v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->video_w:I

    invoke-virtual {v1, v0, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 249
    invoke-virtual {p1, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 250
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 258
    :goto_1
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->FEEDS_TOPIC_DETAIL:Lcom/moji/statistics/EVENT_TAG;

    new-instance v1, Ljava/lang/StringBuilder;

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

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;->b:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-static {v2}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->b(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    return-void
.end method
