.class public Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;
.super Landroid/support/v7/widget/RecyclerView$ViewHolder;
.source "AdNativeAdapter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "AdVideoHolder"
.end annotation


# instance fields
.field public n:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

.field final synthetic o:Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter;

.field private p:Landroid/view/View;


# direct methods
.method public constructor <init>(Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter;Landroid/view/View;)V
    .locals 3

    .line 259
    iput-object p1, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->o:Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter;

    .line 260
    invoke-direct {p0, p2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 261
    iput-object p2, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->p:Landroid/view/View;

    .line 262
    sget v0, Lcom/moji/mjad/R$id;->ad_nativeVideoView:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    iput-object p2, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->n:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    .line 265
    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result p2

    int-to-float p2, p2

    const-string v0, "zdxnative"

    const-string v1, "    -----  new ====view holder  "

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

    .line 267
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v1

    const/high16 v2, 0x3f100000    # 0.5625f

    mul-float p2, p2, v2

    float-to-int p2, p2

    invoke-direct {v0, v1, p2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 268
    iget-object p2, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->n:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    invoke-virtual {p2, v0}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->setVideoLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 270
    iget-object p2, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->n:Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Lcom/moji/mjad/base/view/videoview/AdVideoPlayer;->i(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    invoke-virtual {p2, v0}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->h(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    const/4 v0, 0x1

    .line 271
    invoke-virtual {p2, v0}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->g(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    invoke-virtual {p2, v0}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->e(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    invoke-virtual {p2, v0}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->l(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    invoke-virtual {p2, v0}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->d(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    move-result-object p2

    iget-boolean p1, p1, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter;->a:Z

    invoke-virtual {p2, p1}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;->j(Z)Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerStandard;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;)Landroid/view/View;
    .locals 0

    .line 256
    iget-object p0, p0, Lcom/moji/mjad/nativepage/adapter/AdNativeAdapter$AdVideoHolder;->p:Landroid/view/View;

    return-object p0
.end method
