.class Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;
.super Lcom/moji/tool/thread/task/MJAsyncTask;
.source "Today24HourView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/weather/view/Today24HourView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "AsyncDataSetter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/tool/thread/task/MJAsyncTask<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/weather/view/Today24HourView;

.field private b:Ljava/lang/ref/SoftReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/SoftReference<",
            "Lcom/moji/mjweather/weather/view/Today24HourView;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Lcom/moji/weatherprovider/data/ForecastHourList;

.field private final d:Ljava/util/TimeZone;

.field private e:Ljava/util/Calendar;

.field private final f:Ljava/text/SimpleDateFormat;

.field private g:I


# direct methods
.method constructor <init>(Lcom/moji/mjweather/weather/view/Today24HourView;Lcom/moji/mjweather/weather/view/Today24HourView;Lcom/moji/weatherprovider/data/ForecastHourList;Ljava/util/TimeZone;)V
    .locals 0

    .line 1069
    iput-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    .line 1070
    sget-object p1, Lcom/moji/tool/thread/ThreadPriority;->HIGH:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {p0, p1}, Lcom/moji/tool/thread/task/MJAsyncTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V

    .line 1071
    iput-object p3, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

    .line 1072
    iput-object p4, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->d:Ljava/util/TimeZone;

    .line 1073
    new-instance p1, Ljava/lang/ref/SoftReference;

    invoke-direct {p1, p2}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V

    iput-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->b:Ljava/lang/ref/SoftReference;

    .line 1074
    invoke-virtual {p2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget-object p1, p1, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-static {p4, p1}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;Ljava/util/Locale;)Ljava/util/Calendar;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    .line 1075
    new-instance p1, Ljava/text/SimpleDateFormat;

    const-string p3, "HH:mm"

    invoke-virtual {p2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    invoke-virtual {p2}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p2

    iget-object p2, p2, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-direct {p1, p3, p2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->f:Ljava/text/SimpleDateFormat;

    .line 1076
    iget-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->f:Ljava/text/SimpleDateFormat;

    invoke-virtual {p1, p4}, Ljava/text/SimpleDateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    return-void
.end method


# virtual methods
.method protected bridge synthetic a([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 1061
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a([Ljava/lang/Void;)Ljava/lang/Void;

    move-result-object p1

    return-object p1
.end method

.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Void;
    .locals 17

    move-object/from16 v1, p0

    .line 1081
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->b:Ljava/lang/ref/SoftReference;

    invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, Lcom/moji/mjweather/weather/view/Today24HourView;

    const/4 v3, 0x0

    if-nez v2, :cond_0

    return-object v3

    .line 1087
    :cond_0
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->d(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/lang/Object;

    move-result-object v4

    monitor-enter v4

    .line 1088
    :try_start_0
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->e(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/concurrent/atomic/AtomicBoolean;

    move-result-object v0

    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 1090
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

    const/4 v6, 0x1

    if-eqz v0, :cond_2

    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

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

    if-eqz v0, :cond_2

    .line 1091
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

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

    .line 1092
    iget-object v7, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

    iget v7, v7, Lcom/moji/weatherprovider/data/ForecastHourList;->mHasAqi:I

    if-eqz v7, :cond_1

    const/4 v7, 0x1

    goto :goto_0

    :cond_1
    const/4 v7, 0x0

    :goto_0
    move v8, v7

    move-object v7, v0

    goto :goto_1

    :cond_2
    move-object v7, v3

    const/4 v8, 0x0

    .line 1094
    :goto_1
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->d:Ljava/util/TimeZone;

    invoke-static {v2, v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Ljava/util/TimeZone;)Ljava/util/TimeZone;

    .line 1095
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->g(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/text/SimpleDateFormat;

    move-result-object v0

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->f(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/TimeZone;

    move-result-object v9

    invoke-virtual {v0, v9}, Ljava/text/SimpleDateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    .line 1096
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->f(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/TimeZone;

    move-result-object v0

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v9

    invoke-virtual {v9}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v9

    iget-object v9, v9, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-static {v0, v9}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;Ljava/util/Locale;)Ljava/util/Calendar;

    move-result-object v0

    iput-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    .line 1097
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    const/16 v9, 0xb

    invoke-virtual {v0, v9, v5}, Ljava/util/Calendar;->set(II)V

    .line 1098
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    const/16 v9, 0xc

    invoke-virtual {v0, v9, v5}, Ljava/util/Calendar;->set(II)V

    .line 1099
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    const/16 v9, 0xd

    invoke-virtual {v0, v9, v5}, Ljava/util/Calendar;->set(II)V

    .line 1100
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    const/16 v9, 0xe

    invoke-virtual {v0, v9, v5}, Ljava/util/Calendar;->set(II)V

    .line 1101
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->e:Ljava/util/Calendar;

    invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v9

    invoke-static {v2, v9, v10}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;J)J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1105
    :try_start_1
    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->is24HourFormat(Landroid/content/Context;)Z

    move-result v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :catch_0
    move-exception v0

    :try_start_2
    const-string v9, "Today24HourView"

    .line 1107
    invoke-static {v9, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    const/4 v0, 0x1

    :goto_2
    if-eqz v0, :cond_3

    .line 1110
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v9, "HH:00"

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {v10}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v10

    invoke-virtual {v10}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v10

    iget-object v10, v10, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-direct {v0, v9, v10}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    goto :goto_3

    .line 1112
    :cond_3
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v9, "h:00"

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {v10}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v10

    invoke-virtual {v10}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v10

    iget-object v10, v10, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-direct {v0, v9, v10}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    .line 1115
    :goto_3
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->f(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/TimeZone;

    move-result-object v9

    invoke-virtual {v0, v9}, Ljava/text/SimpleDateFormat;->setTimeZone(Ljava/util/TimeZone;)V

    .line 1116
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->h(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/Calendar;

    move-result-object v9

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->f(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/TimeZone;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/util/Calendar;->setTimeZone(Ljava/util/TimeZone;)V

    .line 1117
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->i(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/Calendar;

    move-result-object v9

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->f(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/TimeZone;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/util/Calendar;->setTimeZone(Ljava/util/TimeZone;)V

    .line 1119
    invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;

    move-result-object v9

    invoke-virtual {v9}, Lcom/moji/preferences/units/SettingCenter;->g()Lcom/moji/preferences/units/UNIT_SPEED;

    move-result-object v9

    .line 1120
    sget-object v10, Lcom/moji/preferences/units/UNIT_SPEED;->BEAUFORT_SCALE:Lcom/moji/preferences/units/UNIT_SPEED;

    if-ne v9, v10, :cond_4

    .line 1121
    invoke-virtual {v9}, Lcom/moji/preferences/units/UNIT_SPEED;->getSymbol()Ljava/lang/String;

    move-result-object v9

    invoke-static {v2, v9}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Ljava/lang/String;)Ljava/lang/String;

    goto :goto_4

    :cond_4
    const-string v9, ""

    .line 1123
    invoke-static {v2, v9}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Ljava/lang/String;)Ljava/lang/String;

    .line 1126
    :goto_4
    new-instance v9, Ljava/util/ArrayList;

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

    .line 1127
    new-instance v10, Ljava/util/Date;

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

    .line 1129
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->j(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v11

    if-eqz v7, :cond_8

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

    move-result v12

    if-nez v12, :cond_8

    move v11, v8

    const/4 v8, 0x0

    .line 1131
    :goto_5
    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v12

    if-ge v8, v12, :cond_6

    .line 1132
    invoke-interface {v7, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v12

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

    .line 1133
    new-instance v13, Lcom/moji/mjweather/weather/entity/Hour24Data;

    add-int/lit8 v14, v8, 0x0

    iget v15, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mTemperature:I
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-object/from16 v16, v4

    int-to-double v3, v15

    .line 1134
    :try_start_3
    invoke-static {v3, v4, v5}, Lcom/moji/preferences/units/UNIT_TEMP;->getValueStringByCurrentUnitTemp(DZ)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v3

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    invoke-direct {v13, v14, v3}, Lcom/moji/mjweather/weather/entity/Hour24Data;-><init>(II)V

    .line 1135
    iget-wide v3, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mPredictTime:J

    invoke-virtual {v10, v3, v4}, Ljava/util/Date;->setTime(J)V

    .line 1136
    invoke-virtual {v0, v10}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    .line 1137
    iget v4, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mIcon:I

    iput v4, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->c:I

    .line 1138
    iget-object v4, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mCondition:Ljava/lang/String;

    iput-object v4, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->d:Ljava/lang/String;

    .line 1139
    iput-object v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->e:Ljava/lang/String;

    .line 1140
    iget-wide v3, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mPredictTime:J

    iput-wide v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->f:J

    .line 1141
    iget-object v3, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mWindDir:Ljava/lang/String;

    iput-object v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->g:Ljava/lang/String;

    .line 1142
    iget v3, v12, Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;->mWindSpeed:I

    int-to-float v3, v3

    const v4, 0x40666666    # 3.6f

    div-float/2addr v3, v4

    float-to-double v3, v3

    iput-wide v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->i:D

    .line 1143
    iget-wide v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->i:D

    invoke-static {v3, v4, v5}, Lcom/moji/preferences/units/UNIT_SPEED;->getCurSpeedStrFromMeterPerSecond(DZ)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->h:Ljava/lang/String;

    .line 1144
    iget-wide v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->i:D

    invoke-static {v3, v4}, Lcom/moji/preferences/units/UNIT_SPEED;->getCurSpeedValFromMeterPerSecond(D)D

    move-result-wide v3

    iput-wide v3, v13, Lcom/moji/mjweather/weather/entity/Hour24Data;->j:D

    if-eqz v11, :cond_5

    .line 1146
    invoke-static {v2, v7, v13, v12, v8}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Ljava/util/List;Lcom/moji/mjweather/weather/entity/Hour24Data;Lcom/moji/weatherprovider/data/ForecastHourList$ForecastHour;I)Z

    move-result v11

    .line 1148
    :cond_5
    invoke-interface {v9, v13}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v8, v8, 0x1

    move-object/from16 v4, v16

    const/4 v3, 0x0

    goto :goto_5

    :cond_6
    move-object/from16 v16, v4

    .line 1150
    invoke-interface {v9}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr v0, v6

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/weather/entity/Hour24Data;

    .line 1151
    iget-object v3, v0, Lcom/moji/mjweather/weather/entity/Hour24Data;->d:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    const/4 v4, 0x3

    if-ge v3, v4, :cond_7

    .line 1152
    iget-object v3, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->k(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v4

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->l(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v5

    iget-object v0, v0, Lcom/moji/mjweather/weather/entity/Hour24Data;->d:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    iget-object v7, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v8

    const/high16 v10, 0x41980000    # 19.0f

    invoke-static {v7, v8, v10}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Landroid/content/Context;F)I

    move-result v7

    mul-int v0, v0, v7

    invoke-static {v3, v4, v5, v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;III)I

    move-result v0

    goto :goto_6

    .line 1154
    :cond_7
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->l(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v0

    goto :goto_6

    :cond_8
    move-object/from16 v16, v4

    move v0, v11

    move v11, v8

    .line 1157
    :goto_6
    invoke-static {v2, v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;I)I

    .line 1158
    invoke-static {v2, v9}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Ljava/util/List;)Ljava/util/List;

    .line 1159
    invoke-static {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->m(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v0

    mul-int/lit8 v0, v0, 0x2

    invoke-virtual {v2}, Lcom/moji/mjweather/weather/view/Today24HourView;->getContext()Landroid/content/Context;

    move-result-object v3

    const/high16 v4, 0x420c0000    # 35.0f

    invoke-static {v2, v3, v4}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Landroid/content/Context;F)I

    move-result v3

    sub-int/2addr v0, v3

    iput v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->g:I

    .line 1160
    iget-object v0, v1, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a:Lcom/moji/mjweather/weather/view/Today24HourView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->e(Lcom/moji/mjweather/weather/view/Today24HourView;)Ljava/util/concurrent/atomic/AtomicBoolean;

    move-result-object v0

    invoke-virtual {v0, v6}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 1161
    invoke-static {v2, v11}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;Z)V

    .line 1162
    monitor-exit v16

    const/4 v2, 0x0

    return-object v2

    :catchall_0
    move-exception v0

    move-object/from16 v16, v4

    :goto_7
    monitor-exit v16
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    throw v0

    :catchall_1
    move-exception v0

    goto :goto_7
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 1061
    check-cast p1, Ljava/lang/Void;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->a(Ljava/lang/Void;)V

    return-void
.end method

.method protected a(Ljava/lang/Void;)V
    .locals 4

    .line 1168
    invoke-super {p0, p1}, Lcom/moji/tool/thread/task/MJAsyncTask;->a(Ljava/lang/Object;)V

    .line 1169
    iget-object p1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->b:Ljava/lang/ref/SoftReference;

    invoke-virtual {p1}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/weather/view/Today24HourView;

    if-eqz p1, :cond_4

    .line 1171
    iget-object v0, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c:Lcom/moji/weatherprovider/data/ForecastHourList;

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

    if-eqz v0, :cond_2

    .line 1172
    iget-object v0, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->c: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

    const/16 v1, 0x14

    if-lt v0, v1, :cond_1

    const/16 v1, 0x1a

    if-le v0, v1, :cond_0

    goto :goto_0

    .line 1176
    :cond_0
    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->n(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v0

    iget v1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->g:I

    if-eq v0, v1, :cond_2

    .line 1177
    iget v0, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->g:I

    invoke-static {p1, v0}, Lcom/moji/mjweather/weather/view/Today24HourView;->b(Lcom/moji/mjweather/weather/view/Today24HourView;I)I

    .line 1178
    invoke-virtual {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->requestLayout()V

    goto :goto_1

    .line 1174
    :cond_1
    :goto_0
    iget v1, p0, Lcom/moji/mjweather/weather/view/Today24HourView$AsyncDataSetter;->g:I

    div-int/lit8 v1, v1, 0x18

    mul-int v1, v1, v0

    invoke-static {p1, v1}, Lcom/moji/mjweather/weather/view/Today24HourView;->b(Lcom/moji/mjweather/weather/view/Today24HourView;I)I

    .line 1175
    invoke-virtual {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->requestLayout()V

    .line 1181
    :cond_2
    :goto_1
    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;)Lcom/moji/mjweather/weather/view/Today24HourView$Hour24ViewListener;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 1182
    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->a(Lcom/moji/mjweather/weather/view/Today24HourView;)Lcom/moji/mjweather/weather/view/Today24HourView$Hour24ViewListener;

    move-result-object v0

    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->o(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v1

    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->p(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v2

    sub-int/2addr v1, v2

    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->q(Lcom/moji/mjweather/weather/view/Today24HourView;)Z

    move-result v2

    invoke-static {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->r(Lcom/moji/mjweather/weather/view/Today24HourView;)I

    move-result v3

    invoke-interface {v0, v1, v2, v3}, Lcom/moji/mjweather/weather/view/Today24HourView$Hour24ViewListener;->a(IZI)V

    .line 1184
    :cond_3
    invoke-virtual {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->invalidate()V

    .line 1185
    invoke-virtual {p1}, Lcom/moji/mjweather/weather/view/Today24HourView;->b()V

    :cond_4
    return-void
.end method
