.class public Lcom/moji/mjweather/aqi/control/TwentyFourHoursForecastViewControl;
.super Lcom/moji/viewcontrol/MJViewControl;
.source "TwentyFourHoursForecastViewControl.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/viewcontrol/MJViewControl<",
        "Ljava/util/List<",
        "Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$TrendHourBean;",
        ">;>;"
    }
.end annotation


# instance fields
.field a:Landroid/widget/TextView;


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$TrendHourBean;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_0

    .line 56
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 57
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 58
    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 59
    iget-object p1, p0, Lcom/moji/mjweather/aqi/control/TwentyFourHoursForecastViewControl;->a:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "hourList size:"

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

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

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

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

    move-result-object v0

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

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

    move-result-object p1

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

    invoke-virtual {p1, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    :cond_0
    return-void
.end method

.method public createView()Landroid/view/View;
    .locals 1

    .line 40
    iget-object v0, p0, Lcom/moji/mjweather/aqi/control/TwentyFourHoursForecastViewControl;->a:Landroid/widget/TextView;

    return-object v0
.end method

.method protected getResLayoutId()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public synthetic onBindViewData(Ljava/lang/Object;)V
    .locals 0

    .line 21
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/aqi/control/TwentyFourHoursForecastViewControl;->a(Ljava/util/List;)V

    return-void
.end method

.method protected onCreatedView(Landroid/view/View;)V
    .locals 0

    return-void
.end method
