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

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


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

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/feed/adapter/VideoAdapter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/feed/adapter/VideoAdapter;)V
    .locals 0

    .line 122
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/VideoAdapter$1;->a:Lcom/moji/mjweather/feed/adapter/VideoAdapter;

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

    return-void
.end method


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

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

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/VideoAdapter$1;->a:Lcom/moji/mjweather/feed/adapter/VideoAdapter;

    iget-object v0, v0, Lcom/moji/mjweather/feed/adapter/VideoAdapter;->c:Landroid/content/Context;

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

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

    .line 126
    new-instance v0, Landroid/os/Bundle;

    const/4 v1, 0x3

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

    const-string v1, "target_url"

    .line 127
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/VideoAdapter$1;->a:Lcom/moji/mjweather/feed/adapter/VideoAdapter;

    iget-object v2, v2, Lcom/moji/mjweather/feed/adapter/VideoAdapter;->u:Lcom/moji/http/fdsapi/entity/FeedDetails$VideoClientInfo;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedDetails$VideoClientInfo;->download_url:Ljava/lang/String;

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

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

    .line 129
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/VideoAdapter$1;->a:Lcom/moji/mjweather/feed/adapter/VideoAdapter;

    iget-object v0, v0, Lcom/moji/mjweather/feed/adapter/VideoAdapter;->c:Landroid/content/Context;

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

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

    move-result-object p1

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

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, ""

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

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

    iget-object v2, v2, Lcom/moji/mjweather/feed/adapter/VideoAdapter;->d:Ljava/lang/String;

    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
