.class Lcom/moji/mjad/view/AdTextWithTagView$1;
.super Ljava/lang/Object;
.source "AdTextWithTagView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjad/view/AdTextWithTagView;->a(Ljava/lang/String;Lcom/moji/mjad/common/data/AdCommon;)V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/moji/mjad/view/AdTextWithTagView;


# direct methods
.method constructor <init>(Lcom/moji/mjad/view/AdTextWithTagView;Ljava/lang/String;)V
    .locals 0

    .line 61
    iput-object p1, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    iput-object p2, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->a:Ljava/lang/String;

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

    return-void
.end method


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

    const-string v0, "zdxtaglogo"

    .line 64
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "   ------- 222222222this.getWidth()---  "

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

    iget-object v2, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-virtual {v2}, Lcom/moji/mjad/view/AdTextWithTagView;->getWidth()I

    move-result v2

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

    const-string v2, "    maxsize--- "

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

    iget-object v2, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v2}, Lcom/moji/mjad/view/AdTextWithTagView;->a(Lcom/moji/mjad/view/AdTextWithTagView;)I

    move-result v2

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

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

    move-result-object v1

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

    .line 65
    iget-object v0, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v0}, Lcom/moji/mjad/view/AdTextWithTagView;->b(Lcom/moji/mjad/view/AdTextWithTagView;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-virtual {v1}, Lcom/moji/mjad/view/AdTextWithTagView;->getWidth()I

    move-result v1

    iget-object v2, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v2}, Lcom/moji/mjad/view/AdTextWithTagView;->a(Lcom/moji/mjad/view/AdTextWithTagView;)I

    move-result v2

    sub-int/2addr v1, v2

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

    .line 66
    iget-object v0, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v0}, Lcom/moji/mjad/view/AdTextWithTagView;->b(Lcom/moji/mjad/view/AdTextWithTagView;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v1}, Lcom/moji/mjad/view/AdTextWithTagView;->c(Lcom/moji/mjad/view/AdTextWithTagView;)I

    move-result v1

    int-to-float v1, v1

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

    .line 67
    iget-object v0, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v0}, Lcom/moji/mjad/view/AdTextWithTagView;->b(Lcom/moji/mjad/view/AdTextWithTagView;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-virtual {v1}, Lcom/moji/mjad/view/AdTextWithTagView;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v2}, Lcom/moji/mjad/view/AdTextWithTagView;->d(Lcom/moji/mjad/view/AdTextWithTagView;)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

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

    .line 68
    iget-object v0, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->a:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 69
    iget-object v0, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->b:Lcom/moji/mjad/view/AdTextWithTagView;

    invoke-static {v0}, Lcom/moji/mjad/view/AdTextWithTagView;->b(Lcom/moji/mjad/view/AdTextWithTagView;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjad/view/AdTextWithTagView$1;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method
