.class Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment$1;
.super Ljava/lang/Object;
.source "TyphoonTopCardFragment.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;->a(Lcom/moji/http/show/TyphoonDetailInfo;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;)V
    .locals 0

    .line 201
    iput-object p1, p0, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment$1;->a:Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;

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

    return-void
.end method


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

    .line 204
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment$1;->a:Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;

    invoke-static {v0}, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;->a(Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;)Landroid/widget/TextView;

    move-result-object v0

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

    move-result v0

    const/4 v1, 0x4

    if-ge v0, v1, :cond_0

    .line 205
    iget-object v0, p0, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment$1;->a:Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;

    invoke-static {v0}, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;->b(Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;)Landroid/widget/RelativeLayout;

    move-result-object v0

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

    move-result-object v0

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

    const/high16 v1, 0x43340000    # 180.0f

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

    move-result v1

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

    .line 207
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment$1;->a:Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;

    invoke-static {v1}, Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;->b(Lcom/moji/mjweather/typhoon/TyphoonTopCardFragment;)Landroid/widget/RelativeLayout;

    move-result-object v1

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

    :cond_0
    return-void
.end method
