.class public Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;
.super Lcom/moji/mjweather/weather/control/MJWhetherViewControl;
.source "WeatherForecastViewControl.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjweather/weather/control/MJWhetherViewControl<",
        "Lcom/moji/mjweather/weather/entity/ForecastDaysCard;",
        ">;"
    }
.end annotation


# instance fields
.field private c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 27
    invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/control/MJWhetherViewControl;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method private b(Landroid/view/View;)V
    .locals 0

    .line 63
    iget-object p1, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    if-nez p1, :cond_0

    .line 64
    invoke-direct {p0}, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->d()Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    :cond_0
    return-void
.end method

.method private d()Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;
    .locals 2

    .line 41
    invoke-static {}, Lcom/moji/tool/DeviceTool;->W()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/moji/mjweather/weather/view/Days15Hour24ViewS;

    iget-object v1, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/moji/mjweather/weather/view/Days15Hour24ViewS;-><init>(Landroid/content/Context;)V

    goto :goto_0

    :cond_0
    new-instance v0, Lcom/moji/mjweather/weather/view/Days15Hour24View;

    iget-object v1, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/moji/mjweather/weather/view/Days15Hour24View;-><init>(Landroid/content/Context;)V

    :goto_0
    iput-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    .line 42
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    return-object v0
.end method

.method private e()V
    .locals 0

    return-void
.end method


# virtual methods
.method protected a(Landroid/content/Context;)Landroid/view/View;
    .locals 0

    .line 37
    invoke-direct {p0}, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->d()Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    move-result-object p1

    return-object p1
.end method

.method public a(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method public a(Lcom/moji/mjweather/weather/control/MJWhetherViewControl$ShareBitmapsListener;)V
    .locals 1

    .line 74
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;->a(Lcom/moji/mjweather/weather/control/MJWhetherViewControl$ShareBitmapsListener;)V

    return-void
.end method

.method public a(Lcom/moji/mjweather/weather/entity/ForecastDaysCard;)V
    .locals 9

    .line 53
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    iget-object v1, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->forecastDayList:Lcom/moji/weatherprovider/data/ForecastDayList;

    iget-object v1, v1, Lcom/moji/weatherprovider/data/ForecastDayList;->mForecastDay:Ljava/util/List;

    iget-object v2, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->forecastHourList:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget-object v3, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->timeZone:Ljava/util/TimeZone;

    iget-wide v4, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->sunRise:J

    iget-wide v6, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->sunSet:J

    iget v8, p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;->cityId:I

    invoke-virtual/range {v0 .. v8}, Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;->a(Ljava/util/List;Lcom/moji/weatherprovider/data/ForecastHourList;Ljava/util/TimeZone;JJI)V

    return-void
.end method

.method public a()[I
    .locals 1

    .line 90
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;->getHour24ScrollRange()[I

    move-result-object v0

    return-object v0
.end method

.method public c()[I
    .locals 1

    .line 94
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;->getDay15ScrollRange()[I

    move-result-object v0

    return-object v0
.end method

.method public destroyShareBitmap()V
    .locals 1

    .line 79
    invoke-super {p0}, Lcom/moji/mjweather/weather/control/MJWhetherViewControl;->destroyShareBitmap()V

    .line 80
    iget-object v0, p0, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->c:Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;

    invoke-virtual {v0}, Lcom/moji/mjweather/weather/view/Day15Hour24ViewParent;->a()V

    return-void
.end method

.method protected getResLayoutId()I
    .locals 1

    const v0, 0x7f0b016e

    return v0
.end method

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

    .line 22
    check-cast p1, Lcom/moji/mjweather/weather/entity/ForecastDaysCard;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->a(Lcom/moji/mjweather/weather/entity/ForecastDaysCard;)V

    return-void
.end method

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

    .line 47
    invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->b(Landroid/view/View;)V

    .line 48
    invoke-direct {p0}, Lcom/moji/mjweather/weather/control/WeatherForecastViewControl;->e()V

    return-void
.end method

.method public onDestroy()V
    .locals 0

    .line 85
    invoke-super {p0}, Lcom/moji/mjweather/weather/control/MJWhetherViewControl;->onDestroy()V

    return-void
.end method
