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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/feed/cards/VideoViewHolder;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

.field final synthetic b:Lcom/moji/mjweather/feed/cards/VideoTag;

.field final synthetic c:Lcom/moji/mjweather/feed/cards/VideoViewHolder;


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

    .line 85
    invoke-static {}, Lcom/moji/mjweather/feed/utils/EventUtils;->a()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 86
    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v0, "property1"

    .line 88
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v1, v1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_id:J

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "property2"

    .line 89
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v1, v1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->previous_feed_id:J

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "property3"

    .line 90
    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v1, v1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->next_feed_id:J

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "VideoViewHolder"

    .line 92
    invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->FEEDS_INDEX_CLICK:Lcom/moji/statistics/EVENT_TAG;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, ""

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

    iget-object v3, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    iget-wide v3, v3, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->feed_id:J

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

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

    move-result-object v2

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

    .line 96
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->c:Lcom/moji/mjweather/feed/cards/VideoViewHolder;

    iget-object v0, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->c:Lcom/moji/mjweather/feed/cards/VideoViewHolder;

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

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    invoke-virtual {p1, v0, v1}, Lcom/moji/mjweather/feed/cards/VideoViewHolder;->b(Landroid/content/Context;Lcom/moji/http/fdsapi/entity/cards/FeedBean;)V

    .line 97
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->a:Lcom/moji/http/fdsapi/entity/cards/FeedBean;

    const/4 v0, 0x1

    iput-boolean v0, p1, Lcom/moji/http/fdsapi/entity/cards/FeedBean;->clicked:Z

    .line 98
    iget-object p1, p0, Lcom/moji/mjweather/feed/cards/VideoViewHolder$1;->b:Lcom/moji/mjweather/feed/cards/VideoTag;

    iget-object p1, p1, Lcom/moji/mjweather/feed/cards/VideoTag;->a:Landroid/widget/TextView;

    const v0, 0x4dffffff    # 5.3687088E8f

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

    :cond_0
    return-void
.end method
