.class Lcom/moji/index/CommerceListAdapter$2;
.super Ljava/lang/Object;
.source "CommerceListAdapter.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/index/CommerceListAdapter;->a(Lcom/moji/index/CommerceListAdapter$VideoHolder;ILcom/moji/http/index/IndexCommerceListResp$IndexGoods;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

.field final synthetic b:Lcom/moji/index/CommerceListAdapter;


# direct methods
.method constructor <init>(Lcom/moji/index/CommerceListAdapter;Lcom/moji/index/CommerceListAdapter$VideoHolder;)V
    .locals 0

    .line 76
    iput-object p1, p0, Lcom/moji/index/CommerceListAdapter$2;->b:Lcom/moji/index/CommerceListAdapter;

    iput-object p2, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

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

    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    .line 79
    iget-object v0, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

    iget-object v0, v0, Lcom/moji/index/CommerceListAdapter$VideoHolder;->o:Landroid/widget/TextView;

    const/4 v1, 0x2

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

    .line 80
    iget-object v0, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

    iget-object v0, v0, Lcom/moji/index/CommerceListAdapter$VideoHolder;->o:Landroid/widget/TextView;

    sget-object v1, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 81
    iget-object v0, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

    iget-object v0, v0, Lcom/moji/index/CommerceListAdapter$VideoHolder;->o:Landroid/widget/TextView;

    const/4 v1, 0x0

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

    .line 82
    iget-object v0, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

    iget-object v0, v0, Lcom/moji/index/CommerceListAdapter$VideoHolder;->o:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v1, 0x40a00000    # 5.0f

    .line 83
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 84
    iget-object v1, p0, Lcom/moji/index/CommerceListAdapter$2;->a:Lcom/moji/index/CommerceListAdapter$VideoHolder;

    iget-object v1, v1, Lcom/moji/index/CommerceListAdapter$VideoHolder;->o:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method
