.class public Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "OneItemForcastAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v7/widget/RecyclerView$Adapter<",
        "Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field private final a:Landroid/content/Context;

.field private b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "+",
            "Ljava/io/Serializable;",
            ">;"
        }
    .end annotation
.end field

.field private c:I

.field private d:I

.field private e:Lcom/moji/weatherprovider/data/Weather;

.field private f:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "+",
            "Ljava/io/Serializable;",
            ">;)V"
        }
    .end annotation

    .line 45
    invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V

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

    move-result v0

    iput v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->c:I

    const/4 v0, 0x0

    .line 42
    iput v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->d:I

    .line 46
    iput-object p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

    .line 47
    iput-object p1, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->a:Landroid/content/Context;

    .line 48
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object p1

    .line 49
    invoke-static {}, Lcom/moji/weatherprovider/provider/WeatherProvider;->b()Lcom/moji/weatherprovider/provider/WeatherProvider;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/moji/weatherprovider/provider/WeatherProvider;->a(Lcom/moji/common/area/AreaInfo;)Lcom/moji/weatherprovider/data/Weather;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 120
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

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

    move-result v0

    return v0
.end method

.method public synthetic a(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 37
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->c(Landroid/view/ViewGroup;I)Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public bridge synthetic a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
    .locals 0
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SetTextI18n"
        }
    .end annotation

    .line 37
    check-cast p1, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->a(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;I)V

    return-void
.end method

.method public a(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;I)V
    .locals 6
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SetTextI18n"
        }
    .end annotation

    .line 74
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

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

    move-result v0

    const/4 v1, 0x5

    if-gt v0, v1, :cond_0

    .line 75
    iget-object v0, p1, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a:Landroid/view/View;

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

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    .line 76
    iget v1, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->c:I

    iget-object v2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

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

    move-result v2

    div-int/2addr v1, v2

    iput v1, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->width:I

    .line 77
    iget-object v1, p1, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a:Landroid/view/View;

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

    goto :goto_0

    .line 79
    :cond_0
    iget-object v0, p1, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a:Landroid/view/View;

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

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    const/high16 v1, 0x42820000    # 65.0f

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

    move-result v1

    iput v1, v0, Landroid/support/v7/widget/RecyclerView$LayoutParams;->width:I

    .line 81
    iget-object v1, p1, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a:Landroid/view/View;

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

    .line 83
    :goto_0
    iget v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->d:I

    const-wide/16 v1, 0x3e8

    if-nez v0, :cond_2

    .line 84
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/http/allergy/bean/AllergyMainBean$WeekForecast;

    .line 85
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v3

    iget-wide v4, v0, Lcom/moji/http/allergy/bean/AllergyMainBean$WeekForecast;->pub_time:J

    mul-long v4, v4, v1

    invoke-static {v4, v5}, Lcom/moji/mjallergy/AllergyHelper;->a(J)Ljava/lang/String;

    move-result-object v4

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

    .line 86
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->b(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v3

    iget-wide v4, v0, Lcom/moji/http/allergy/bean/AllergyMainBean$WeekForecast;->pub_time:J

    mul-long v4, v4, v1

    const-string v1, "M/d"

    invoke-static {v4, v5, v1}, Lcom/moji/tool/DateFormatTool;->a(JLjava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    .line 87
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->c(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v1

    iget v2, v0, Lcom/moji/http/allergy/bean/AllergyMainBean$WeekForecast;->incident:I

    invoke-static {v2}, Lcom/moji/mjallergy/AllergyHelper;->a(I)Ljava/lang/String;

    move-result-object v2

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

    .line 88
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->d(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v2

    iget v0, v0, Lcom/moji/http/allergy/bean/AllergyMainBean$WeekForecast;->incident:I

    .line 89
    invoke-static {v0}, Lcom/moji/mjallergy/AllergyHelper;->b(I)I

    move-result v0

    .line 88
    invoke-static {v2, v0}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 90
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mForecastDayList:Lcom/moji/weatherprovider/data/ForecastDayList;

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

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mForecastDayList:Lcom/moji/weatherprovider/data/ForecastDayList;

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

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

    move-result v0

    const/4 v1, 0x7

    if-le v0, v1, :cond_3

    .line 91
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mForecastDayList:Lcom/moji/weatherprovider/data/ForecastDayList;

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

    add-int/lit8 p2, p2, 0x3

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    .line 92
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    invoke-virtual {v0}, Lcom/moji/weatherprovider/data/Detail;->isDay()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 93
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->e(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

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

    iget-object v2, p2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mWindLevelDay:Ljava/lang/String;

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

    const-string v2, "\u7ea7"

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

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

    move-result-object v1

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

    goto :goto_1

    .line 95
    :cond_1
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->e(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

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

    iget-object v2, p2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mWindLevelNight:Ljava/lang/String;

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

    const-string v2, "\u7ea7"

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

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

    move-result-object v1

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

    .line 97
    :goto_1
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->f(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v0, Ljava/lang/StringBuilder;

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

    iget v1, p2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureLow:I

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

    const-string v1, "\u00b0/"

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

    iget p2, p2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mTemperatureHigh:I

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

    const-string p2, "\u00b0"

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

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

    move-result-object p2

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

    goto/16 :goto_2

    .line 100
    :cond_2
    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/allergy/bean/AllergyMainBean$HourForecast;

    .line 101
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->a(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-wide v3, p2, Lcom/moji/http/allergy/bean/AllergyMainBean$HourForecast;->pub_time:J

    mul-long v3, v3, v1

    const-string v1, "HH:mm"

    invoke-static {v3, v4, v1}, Lcom/moji/tool/DateFormatTool;->a(JLjava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    .line 102
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->c(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget v1, p2, Lcom/moji/http/allergy/bean/AllergyMainBean$HourForecast;->incident:I

    invoke-static {v1}, Lcom/moji/mjallergy/AllergyHelper;->a(I)Ljava/lang/String;

    move-result-object v1

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

    .line 103
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->d(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object v1

    iget p2, p2, Lcom/moji/http/allergy/bean/AllergyMainBean$HourForecast;->incident:I

    .line 104
    invoke-static {p2}, Lcom/moji/mjallergy/AllergyHelper;->b(I)I

    move-result p2

    .line 103
    invoke-static {v1, p2}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {v0, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 105
    iget-object p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    if-eqz p2, :cond_3

    iget-object p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Detail;->mForecastHourList:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/ForecastHourList;->mForecastHour:Ljava/util/List;

    if-eqz p2, :cond_3

    iget-object p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Detail;->mForecastHourList:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/ForecastHourList;->mForecastHour:Ljava/util/List;

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

    move-result p2

    if-lez p2, :cond_3

    .line 106
    iget p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->f:I

    iget-object v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/Detail;->mForecastHourList:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget-object v0, v0, Lcom/moji/weatherprovider/data/ForecastHourList;->mForecastHour:Ljava/util/List;

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

    move-result v0

    if-ge p2, v0, :cond_3

    .line 107
    iget-object p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->e:Lcom/moji/weatherprovider/data/Weather;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/Detail;->mForecastHourList:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget-object p2, p2, Lcom/moji/weatherprovider/data/ForecastHourList;->mForecastHour:Ljava/util/List;

    iget v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->f:I

    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;

    .line 108
    iget v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->f:I

    add-int/lit8 v0, v0, 0x3

    iput v0, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->f:I

    .line 109
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->b(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p2, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mCondition:Ljava/lang/String;

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

    .line 110
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->e(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget v1, p2, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mWindSpeed:I

    int-to-float v1, v1

    const v2, 0x40666666    # 3.6f

    div-float/2addr v1, v2

    float-to-double v1, v1

    const/4 v3, 0x1

    .line 111
    invoke-static {v1, v2, v3}, Lcom/moji/preferences/units/UNIT_SPEED;->getCurSpeedStrFromMeterPerSecond(DZ)Ljava/lang/String;

    move-result-object v1

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

    .line 112
    invoke-static {p1}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;->f(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v0, Ljava/lang/StringBuilder;

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

    iget p2, p2, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mTemperature:I

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

    const-string p2, "\u00b0"

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

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

    move-result-object p2

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

    :cond_3
    :goto_2
    return-void
.end method

.method public a(Ljava/util/List;II)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Ljava/io/Serializable;",
            ">;II)V"
        }
    .end annotation

    .line 54
    iput-object p1, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->b:Ljava/util/List;

    .line 55
    iput p2, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->d:I

    .line 56
    iput p3, p0, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;->f:I

    return-void
.end method

.method public c(Landroid/view/ViewGroup;I)Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;
    .locals 2

    .line 61
    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    .line 62
    sget v0, Lpad/aqi/cnemc/com/mjallergymodule/R$layout;->item_one_day_forcast:I

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 63
    new-instance p2, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;

    const/4 v0, 0x0

    invoke-direct {p2, p0, p1, v0}, Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$AllergyViewHolder;-><init>(Lcom/moji/mjallergy/adapter/OneItemForcastAdapter;Landroid/view/View;Lcom/moji/mjallergy/adapter/OneItemForcastAdapter$1;)V

    return-object p2
.end method
