.class public Lcom/moji/mjweather/dailydetail/DailyDetailActivity;
.super Lcom/moji/base/MJActivity;
.source "DailyDetailActivity.java"

# interfaces
.implements Lcom/moji/base/ISwitchFrontAndBack;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/dailydetail/DailyDetailActivity$MyTideCallBack;,
        Lcom/moji/mjweather/dailydetail/DailyDetailActivity$PageChangeListener;,
        Lcom/moji/mjweather/dailydetail/DailyDetailActivity$ShareImageTask;
    }
.end annotation


# static fields
.field public static final FORECAST_15DAYS_SHARE_POSFIX_URL:Ljava/lang/String; = "&from=moji"

.field public static final FORECAST_15DAYS_SHARE_PREFIX_URL:Ljava/lang/String; = "http://m.moji.com/param/forecast15?internal_id="


# instance fields
.field private A:Lcom/moji/share/MJThirdShareManager;

.field private B:Lcom/moji/statistics/FunctionStat;

.field private C:Ljava/util/TimeZone;

.field private D:Z

.field protected a:Lcom/moji/titlebar/MJTitleBar;

.field public areaInfo:Lcom/moji/common/area/AreaInfo;

.field private b:Z

.field private c:I

.field private volatile i:I

.field public isFirstOK:Z

.field private j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

.field private k:Landroid/widget/ImageView;

.field private l:Landroid/widget/HorizontalScrollView;

.field private m:Landroid/widget/LinearLayout;

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

.field private o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

.field private p:Landroid/content/Context;

.field private q:Landroid/support/v4/util/ArrayMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/support/v4/util/ArrayMap<",
            "Ljava/lang/Integer;",
            "Lcom/moji/mjweather/dailydetail/ObservableScrollView;",
            ">;"
        }
    .end annotation
.end field

.field private r:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;",
            ">;"
        }
    .end annotation
.end field

.field private s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

.field private t:Ljava/lang/String;

.field private u:I

.field private v:Lcom/moji/index/TidePresenter;

.field private w:I

.field private x:Z

.field private y:Ljava/util/Calendar;

.field private z:J


# direct methods
.method public constructor <init>()V
    .locals 3

    .line 85
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    const/4 v0, 0x1

    .line 88
    iput-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b:Z

    const/4 v1, 0x0

    .line 89
    iput-boolean v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->isFirstOK:Z

    .line 102
    new-instance v1, Landroid/support/v4/util/ArrayMap;

    const/16 v2, 0x10

    invoke-direct {v1, v2}, Landroid/support/v4/util/ArrayMap;-><init>(I)V

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->q:Landroid/support/v4/util/ArrayMap;

    .line 103
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    const-string v1, ""

    .line 105
    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->t:Ljava/lang/String;

    .line 355
    iput-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->D:Z

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;I)I
    .locals 0

    .line 85
    iput p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    return p1
.end method

.method private a(Ljava/util/List;)I
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;",
            ">;)I"
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 326
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 327
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

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

    iget-wide v2, v2, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mPredictDate:J

    .line 328
    invoke-direct {p0, v2, v3}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(J)Z

    move-result v2

    if-eqz v2, :cond_0

    return v1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return v0
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Landroid/widget/HorizontalScrollView;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    return-object p0
.end method

.method private a(Ljava/text/DateFormat;J)Ljava/lang/String;
    .locals 1

    .line 572
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 573
    invoke-virtual {v0, p2, p3}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 574
    invoke-virtual {v0}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/util/Calendar;)Ljava/lang/String;
    .locals 4

    const/4 v0, 0x2

    .line 563
    invoke-virtual {p1, v0}, Ljava/util/Calendar;->get(I)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    const/4 v1, 0x5

    const/16 v2, 0xa

    if-ge v0, v2, :cond_0

    .line 565
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "0"

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

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

    const-string v0, "/"

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

    invoke-virtual {p1, v1}, Ljava/util/Calendar;->get(I)I

    move-result p1

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

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

    move-result-object p1

    return-object p1

    .line 567
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v0, "/"

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

    invoke-virtual {p1, v1}, Ljava/util/Calendar;->get(I)I

    move-result p1

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

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

    move-result-object p1

    return-object p1
.end method

.method private a()V
    .locals 1

    .line 118
    iget-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 119
    iput-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b:Z

    .line 120
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->q()V

    :cond_0
    return-void
.end method

.method private a(Landroid/view/View;I)V
    .locals 2

    const v0, 0x7f090196

    .line 714
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    .line 715
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->c:Z

    .line 716
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {v0, p1, p2}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(Landroid/widget/LinearLayout;I)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Landroid/view/View;I)V
    .locals 0

    .line 85
    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Landroid/view/View;I)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Lcom/moji/mjweather/dailydetail/ObservableScrollView;)V
    .locals 0

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Lcom/moji/mjweather/dailydetail/ObservableScrollView;)V

    return-void
.end method

.method private a(Lcom/moji/mjweather/dailydetail/ObservableScrollView;)V
    .locals 1

    const v0, 0x7f090119

    .line 720
    invoke-virtual {p1, v0}, Lcom/moji/mjweather/dailydetail/ObservableScrollView;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;

    if-eqz p1, :cond_0

    .line 722
    new-instance v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;

    invoke-direct {v0, p0, p1, p1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Lcom/moji/mjad/common/view/CommonAdView;Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;)V

    invoke-virtual {p1, v0}, Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;->b(Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;)V

    :cond_0
    return-void
.end method

.method private a(J)Z
    .locals 3

    .line 336
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 337
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    .line 338
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-virtual {v2, p1, p2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 339
    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-virtual {p1, v1}, Ljava/util/Calendar;->get(I)I

    move-result p1

    if-ne v0, p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Z)Z
    .locals 0

    .line 85
    iput-boolean p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->x:Z

    return p1
.end method

.method private a(Z)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 769
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->o()Z

    move-result p1

    return p1

    .line 771
    :cond_0
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->t()V

    const/4 p1, 0x0

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;I)I
    .locals 0

    .line 85
    iput p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->w:I

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 128
    new-instance v0, Lcom/moji/share/MJThirdShareManager;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/moji/share/MJThirdShareManager;-><init>(Landroid/app/Activity;Lcom/moji/share/listener/ShareListener;)V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->A:Lcom/moji/share/MJThirdShareManager;

    return-void
.end method

.method static synthetic c(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;I)I
    .locals 0

    .line 85
    iput p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->i:I

    return p1
.end method

.method static synthetic c(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Lcom/moji/share/MJThirdShareManager;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->A:Lcom/moji/share/MJThirdShareManager;

    return-object p0
.end method

.method private c()V
    .locals 4

    .line 132
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->d()Lcom/moji/share/entity/ShareContentConfig;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 134
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->A:Lcom/moji/share/MJThirdShareManager;

    sget-object v2, Lcom/moji/share/entity/ShareFromType;->DailyDetail:Lcom/moji/share/entity/ShareFromType;

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v0, v3}, Lcom/moji/share/MJThirdShareManager;->a(Lcom/moji/share/entity/ShareFromType;Lcom/moji/share/entity/ShareContentConfig;Z)V

    :cond_0
    return-void
.end method

.method static synthetic d(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->k:Landroid/widget/ImageView;

    return-object p0
.end method

.method private d()Lcom/moji/share/entity/ShareContentConfig;
    .locals 7

    .line 143
    iget v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    const/4 v1, -0x1

    if-eq v1, v0, :cond_2

    iget v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result v1

    if-lt v0, v1, :cond_0

    goto/16 :goto_0

    .line 144
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

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

    move-result-object v0

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    const v0, 0x7f0e0252

    .line 145
    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v0

    const-wide/16 v1, 0x21

    .line 147
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v3, :cond_1

    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    if-eqz v3, :cond_1

    .line 148
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    iget-wide v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCityId:J

    .line 150
    :cond_1
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "http://m.moji.com/param/forecast15?internal_id="

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

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

    const-string v1, "&from=moji"

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

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

    move-result-object v1

    .line 151
    new-instance v2, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    const-string v4, "share"

    invoke-static {v3, v4}, Lcom/moji/tool/FileTool;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

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

    const-string v3, "/picture_weather_daily_detail.png"

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

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

    move-result-object v2

    .line 152
    new-instance v3, Ljava/lang/StringBuilder;

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

    const v4, 0x7f0e051d

    invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v4

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->t:Ljava/lang/String;

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

    const-string v4, "\uff0c"

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v4, v4, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a:Ljava/text/SimpleDateFormat;

    iget-object v5, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    iget-wide v5, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mPredictDate:J

    invoke-direct {p0, v4, v5, v6}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/text/DateFormat;J)Ljava/lang/String;

    move-result-object v4

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

    const-string v4, "\uff0c"

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

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

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

    const-string v4, "~"

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

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

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

    const v4, 0x7f0e02c9

    invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v4

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

    const-string v4, "\uff0c"

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    iget-object v4, v4, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mConditionNight:Ljava/lang/String;

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

    const-string v4, "\uff0c"

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

    iget-object v4, v4, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mWindDirDesc:Ljava/lang/String;

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

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->s:Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;

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

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

    const v4, 0x7f0e040e

    invoke-static {v4}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v4

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

    const-string v4, "\uff1b"

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

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

    move-result-object v3

    .line 153
    new-instance v4, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$ShareImageTask;

    invoke-direct {v4, p0, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$ShareImageTask;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Ljava/lang/String;)V

    .line 154
    sget-object v5, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Void;

    invoke-virtual {v4, v5, v6}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$ShareImageTask;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    .line 155
    new-instance v4, Lcom/moji/share/entity/ShareContentConfig$Builder;

    invoke-direct {v4, v0, v3}, Lcom/moji/share/entity/ShareContentConfig$Builder;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 156
    invoke-virtual {v4, v1}, Lcom/moji/share/entity/ShareContentConfig$Builder;->b(Ljava/lang/String;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    move-result-object v0

    .line 157
    invoke-virtual {v0, v2}, Lcom/moji/share/entity/ShareContentConfig$Builder;->c(Ljava/lang/String;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    .line 158
    invoke-virtual {v4}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a()Lcom/moji/share/entity/ShareContentConfig;

    move-result-object v0

    return-object v0

    :cond_2
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method static synthetic e(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)I
    .locals 0

    .line 85
    iget p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    return p0
.end method

.method private e()V
    .locals 2

    .line 259
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->areaInfo:Lcom/moji/common/area/AreaInfo;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->areaInfo:Lcom/moji/common/area/AreaInfo;

    iget-boolean v0, v0, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    if-eqz v0, :cond_0

    .line 260
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-static {p0}, Lcom/moji/mjweather/helper/UIHelper;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/mjweather/helper/UIHelper;->a(Lcom/moji/titlebar/MJTitleBar;Ljava/lang/String;)V

    goto :goto_0

    .line 262
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->t:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method

.method static synthetic f(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Ljava/util/List;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->m:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V
    .locals 0

    .line 85
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c()V

    return-void
.end method

.method static synthetic j(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)I
    .locals 0

    .line 85
    iget p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->i:I

    return p0
.end method

.method private j()V
    .locals 7

    .line 267
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "city_id"

    const/4 v2, -0x1

    .line 268
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

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

    move-result-object v3

    if-eqz v3, :cond_0

    .line 270
    iget v4, v3, Lcom/moji/common/area/AreaInfo;->cityId:I

    if-ne v4, v1, :cond_0

    .line 271
    iput-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->areaInfo:Lcom/moji/common/area/AreaInfo;

    goto :goto_0

    .line 273
    :cond_0
    invoke-static {v1}, Lcom/moji/areamanagement/MJAreaManager;->a(I)Lcom/moji/common/area/AreaInfo;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->areaInfo:Lcom/moji/common/area/AreaInfo;

    :goto_0
    const-string v1, "forecast_index"

    .line 275
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

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

    move-result-object v1

    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->areaInfo:Lcom/moji/common/area/AreaInfo;

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

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    .line 277
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    if-eqz v1, :cond_4

    .line 278
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l()V

    .line 279
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    iget-object v1, v1, Lcom/moji/weatherprovider/data/Detail;->mCityName:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->t:Ljava/lang/String;

    .line 280
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

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

    if-eqz v1, :cond_1

    .line 281
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

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

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

    invoke-interface {v1, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 283
    :cond_1
    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    if-ne v1, v2, :cond_3

    const-string v1, "today"

    const/4 v2, 0x0

    .line 284
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    const-string v3, "tomorrow"

    .line 285
    invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    const/4 v2, 0x1

    if-ne v1, v2, :cond_2

    .line 287
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    invoke-direct {p0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/List;)I

    move-result v1

    iput v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    :cond_2
    if-ne v0, v2, :cond_3

    .line 290
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    invoke-direct {p0, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/List;)I

    move-result v0

    add-int/2addr v0, v2

    iput v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    .line 293
    :cond_3
    iget v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    iput v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->i:I

    .line 296
    :cond_4
    new-instance v0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->q:Landroid/support/v4/util/ArrayMap;

    iget-object v5, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    iget-object v6, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->m:Landroid/widget/LinearLayout;

    move-object v1, v0

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;-><init>(Landroid/support/v4/app/FragmentActivity;Ljava/util/List;Landroid/support/v4/util/ArrayMap;Lcom/moji/weatherprovider/data/Weather;Landroid/widget/LinearLayout;)V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    .line 297
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v0, :cond_5

    const-string v0, "CN"

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

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/preferences/units/SettingCenter;->b()Lcom/moji/preferences/units/ELanguage;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/preferences/units/ELanguage;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 298
    new-instance v0, Lcom/moji/index/TidePresenter;

    new-instance v1, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$MyTideCallBack;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$MyTideCallBack;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V

    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/moji/index/TidePresenter;-><init>(Lcom/moji/index/TidePresenter$TideCallBack;Ljava/util/List;)V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->v:Lcom/moji/index/TidePresenter;

    .line 299
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->v:Lcom/moji/index/TidePresenter;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    invoke-virtual {v0, v1}, Lcom/moji/index/TidePresenter;->a(Lcom/moji/weatherprovider/data/Detail;)V

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->FORCAST_DETAIL_SHOW:Lcom/moji/statistics/EVENT_TAG;

    iget v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 302
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->k()V

    return-void
.end method

.method static synthetic k(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Landroid/support/v4/util/ArrayMap;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->q:Landroid/support/v4/util/ArrayMap;

    return-object p0
.end method

.method private k()V
    .locals 4

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

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 310
    :cond_0
    invoke-static {}, Lcom/moji/opevent/OperationEventManager;->a()Lcom/moji/opevent/OperationEventManager;

    move-result-object v1

    sget-object v2, Lcom/moji/opevent/model/OperationEventPage;->P_DAILY_DETAIL:Lcom/moji/opevent/model/OperationEventPage;

    .line 312
    invoke-virtual {v2}, Lcom/moji/opevent/model/OperationEventPage;->getPageStr()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$1;

    invoke-direct {v3, p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$1;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V

    .line 310
    invoke-virtual {v1, v0, v2, v3}, Lcom/moji/opevent/OperationEventManager;->a(Lcom/moji/common/area/AreaInfo;Ljava/lang/String;Lcom/moji/opevent/OperationEventUpdateListener;)V

    return-void
.end method

.method static synthetic l(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)I
    .locals 0

    .line 85
    iget p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->w:I

    return p0
.end method

.method private l()V
    .locals 2

    .line 347
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

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

    if-eqz v0, :cond_0

    .line 348
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n: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;->getTimeZone()Ljava/util/TimeZone;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->C:Ljava/util/TimeZone;

    goto :goto_0

    .line 350
    :cond_0
    invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->C:Ljava/util/TimeZone;

    .line 352
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->C:Ljava/util/TimeZone;

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

    return-void
.end method

.method private m()V
    .locals 4

    .line 367
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result v0

    if-lez v0, :cond_2

    .line 369
    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->u:I

    const/4 v2, 0x6

    if-le v0, v2, :cond_0

    const/4 v0, 0x6

    :cond_0
    div-int/2addr v1, v0

    .line 370
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    invoke-virtual {v0}, Landroid/widget/HorizontalScrollView;->getScrollY()I

    move-result v0

    .line 371
    iget v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    add-int/lit8 v2, v2, -0x1

    mul-int v2, v2, v1

    if-eq v0, v2, :cond_1

    .line 372
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    iget v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    add-int/lit8 v2, v2, -0x1

    mul-int v2, v2, v1

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    :cond_1
    const-string v0, "mScrollView init:"

    .line 374
    new-instance v2, Ljava/lang/StringBuilder;

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

    iget v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

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

    const-string v3, ":"

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

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

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    return-void
.end method

.method static synthetic m(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V
    .locals 0

    .line 85
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->q()V

    return-void
.end method

.method private n()V
    .locals 5

    .line 379
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->p()V

    const v0, 0x7f090258

    .line 380
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090334

    .line 381
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->k:Landroid/widget/ImageView;

    const v1, 0x7f09019e

    .line 382
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    .line 383
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;->setOffscreenPageLimit(I)V

    const v1, 0x7f09019f

    .line 384
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->m:Landroid/widget/LinearLayout;

    const v1, 0x7f0901a0

    .line 385
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/HorizontalScrollView;

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    .line 386
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    new-instance v3, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$PageChangeListener;

    const/4 v4, 0x0

    invoke-direct {v3, p0, v4}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$PageChangeListener;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Lcom/moji/mjweather/dailydetail/DailyDetailActivity$1;)V

    invoke-virtual {v1, v3}, Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 387
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j()V

    .line 388
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o()V

    .line 389
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    invoke-virtual {v1}, Lcom/moji/titlebar/MJTitleBar;->getHeight()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    add-int/2addr v1, v0

    const-string v0, "====="

    .line 390
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "height "

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

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

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

    move-result-object v3

    invoke-static {v0, v3}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 391
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget v3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    invoke-virtual {v0, v1, v3}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(II)V

    .line 392
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {v0, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(Z)V

    .line 393
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    const-string v0, "DailyDetailActivity"

    .line 395
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "mCurrentIndex:"

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

    iget v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

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

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

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 396
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->j:Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailViewPage;->setCurrentItem(IZ)V

    .line 398
    invoke-static {p0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v0

    invoke-static {}, Lcom/moji/weathersence/MJSceneManager;->a()Lcom/moji/weathersence/MJSceneManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/weathersence/MJSceneManager;->k()Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(Landroid/net/Uri;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$2;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V

    return-void
.end method

.method static synthetic n(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Z
    .locals 0

    .line 85
    iget-boolean p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->x:Z

    return p0
.end method

.method private o()V
    .locals 19

    move-object/from16 v0, p0

    .line 418
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

    if-eqz v1, :cond_9

    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n:Lcom/moji/weatherprovider/data/Weather;

    if-eqz v1, :cond_9

    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result v1

    if-nez v1, :cond_9

    .line 419
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 420
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-virtual {v3, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 421
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-direct {v0, v3}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/Calendar;)Ljava/lang/String;

    move-result-object v3

    const-wide/32 v4, 0x5265c00

    sub-long v4, v1, v4

    const-wide/32 v6, 0x3010b00

    add-long/2addr v1, v6

    .line 424
    iget-object v6, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-virtual {v6, v4, v5}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 425
    iget-object v4, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-direct {v0, v4}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/Calendar;)Ljava/lang/String;

    move-result-object v4

    .line 426
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-virtual {v5, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 427
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-direct {v0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/Calendar;)Ljava/lang/String;

    move-result-object v1

    .line 429
    iget-object v2, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result v2

    if-eqz v2, :cond_9

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

    move-result v5

    const/4 v6, 0x6

    if-le v2, v6, :cond_0

    goto :goto_0

    :cond_0
    move v6, v2

    :goto_0
    div-int/2addr v5, v6

    .line 432
    new-instance v6, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v7, -0x2

    invoke-direct {v6, v5, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/4 v8, -0x1

    const/4 v9, 0x0

    const/4 v10, -0x1

    .line 434
    :goto_1
    iget-object v11, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result v11

    const/4 v12, 0x1

    if-ge v9, v11, :cond_8

    .line 435
    new-instance v11, Landroid/widget/RelativeLayout;

    invoke-direct {v11, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .line 436
    invoke-virtual {v11, v6}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 438
    new-instance v13, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v14, 0x41f00000    # 30.0f

    invoke-static {v14}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v15

    invoke-direct {v13, v8, v15}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 439
    new-instance v15, Landroid/widget/TextView;

    invoke-direct {v15, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 440
    invoke-virtual {v15, v13}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/high16 v13, 0x41600000    # 14.0f

    .line 441
    invoke-virtual {v15, v12, v13}, Landroid/widget/TextView;->setTextSize(IF)V

    const v7, 0x7fffffff

    .line 442
    invoke-virtual {v15, v7}, Landroid/widget/TextView;->setTextColor(I)V

    const/16 v7, 0x11

    .line 443
    invoke-virtual {v15, v7}, Landroid/widget/TextView;->setGravity(I)V

    const-string v7, "text"

    .line 444
    invoke-virtual {v15, v7}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 446
    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {v14}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v14

    invoke-direct {v7, v8, v14}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v14, 0x41a00000    # 20.0f

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

    move-result v14

    iput v14, v7, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 448
    new-instance v14, Landroid/widget/TextView;

    invoke-direct {v14, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 449
    invoke-virtual {v14, v7}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 450
    invoke-virtual {v14, v12, v13}, Landroid/widget/TextView;->setTextSize(IF)V

    const v7, 0x7fffffff

    .line 451
    invoke-virtual {v14, v7}, Landroid/widget/TextView;->setTextColor(I)V

    const/16 v7, 0x11

    .line 452
    invoke-virtual {v14, v7}, Landroid/widget/TextView;->setGravity(I)V

    const-string v7, "data"

    .line 453
    invoke-virtual {v14, v7}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 455
    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v13, 0x4

    invoke-direct {v7, v5, v13}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v16, 0x42400000    # 48.0f

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

    move-result v12

    iput v12, v7, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 457
    new-instance v12, Landroid/widget/ImageView;

    invoke-direct {v12, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 458
    invoke-virtual {v12, v7}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v7, 0x7f060235

    .line 459
    invoke-virtual {v12, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 460
    sget-object v7, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v12, v7}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    const-string v7, "line"

    .line 461
    invoke-virtual {v12, v7}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 462
    invoke-virtual {v12, v13}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 464
    new-instance v7, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v13, 0x41900000    # 18.0f

    invoke-static {v13}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v13

    invoke-direct {v7, v8, v13}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v13, 0x42480000    # 50.0f

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

    move-result v13

    iput v13, v7, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    .line 466
    new-instance v13, Landroid/widget/TextView;

    invoke-direct {v13, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 467
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/high16 v7, 0x41400000    # 12.0f

    const/4 v8, 0x1

    .line 468
    invoke-virtual {v13, v8, v7}, Landroid/widget/TextView;->setTextSize(IF)V

    const v7, 0x7fffffff

    .line 469
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setTextColor(I)V

    const/16 v7, 0x11

    .line 470
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setGravity(I)V

    const-string v7, "interval"

    .line 471
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    const/16 v7, 0x8

    .line 472
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setVisibility(I)V

    const/4 v7, -0x1

    if-eq v10, v7, :cond_1

    sub-int v7, v9, v10

    const/4 v8, 0x3

    if-lt v7, v8, :cond_1

    .line 475
    new-instance v8, Ljava/lang/StringBuilder;

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

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

    const-string v7, "\u5929\u540e"

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

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

    move-result-object v7

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

    .line 478
    :cond_1
    iget-object v7, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    iget-object v8, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result-object v8

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

    move/from16 v17, v5

    move-object/from16 v18, v6

    iget-wide v5, v8, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mPredictDate:J

    invoke-virtual {v7, v5, v6}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 479
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    invoke-direct {v0, v5}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Ljava/util/Calendar;)Ljava/lang/String;

    move-result-object v5

    .line 480
    invoke-virtual {v14, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 481
    invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 483
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0e095d

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

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

    .line 484
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v5

    const-string v6, "today"

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v5

    const/4 v6, 0x1

    if-ne v5, v6, :cond_2

    .line 485
    iput v9, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    :cond_2
    move v10, v9

    goto :goto_2

    .line 487
    :cond_3
    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 488
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0e0acf

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

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

    goto :goto_2

    .line 489
    :cond_4
    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 490
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0e0963

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

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

    .line 491
    invoke-virtual/range {p0 .. p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v5

    const-string v6, "tomorrow"

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v5

    const/4 v6, 0x1

    if-ne v5, v6, :cond_6

    .line 492
    iput v9, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    goto :goto_2

    .line 495
    :cond_5
    iget-object v5, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r:Ljava/util/List;

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

    move-result-object v5

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

    iget-wide v5, v5, Lcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;->mPredictDate:J

    invoke-virtual {v0, v5, v6}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getWeekOfDate(J)Ljava/lang/String;

    move-result-object v5

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

    .line 498
    :cond_6
    :goto_2
    iget v5, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    if-ne v5, v9, :cond_7

    const/high16 v5, 0x41800000    # 16.0f

    const/4 v6, 0x1

    .line 499
    invoke-virtual {v14, v6, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 500
    invoke-virtual {v15, v6, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    const/4 v5, -0x1

    .line 501
    invoke-virtual {v14, v5}, Landroid/widget/TextView;->setTextColor(I)V

    .line 502
    invoke-virtual {v15, v5}, Landroid/widget/TextView;->setTextColor(I)V

    const/4 v7, 0x0

    .line 503
    invoke-virtual {v12, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 504
    invoke-virtual {v13, v7}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_3

    :cond_7
    const/4 v5, -0x1

    const/4 v6, 0x1

    .line 506
    :goto_3
    invoke-virtual {v11, v15}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 507
    invoke-virtual {v11, v14}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 508
    invoke-virtual {v11, v12}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 509
    invoke-virtual {v11, v13}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 510
    invoke-virtual {v11, v6}, Landroid/widget/RelativeLayout;->setClickable(Z)V

    .line 511
    invoke-virtual {v11, v9}, Landroid/widget/RelativeLayout;->setId(I)V

    .line 512
    iget-object v6, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->m:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v11, v9}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 514
    new-instance v6, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$3;

    invoke-direct {v6, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$3;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V

    invoke-virtual {v11, v6}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    add-int/lit8 v9, v9, 0x1

    move/from16 v5, v17

    move-object/from16 v6, v18

    const/4 v8, -0x1

    goto/16 :goto_1

    :cond_8
    move/from16 v17, v5

    if-lez v2, :cond_9

    .line 554
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    iget v2, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    mul-int v2, v2, v17

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v4}, Landroid/widget/HorizontalScrollView;->scrollTo(II)V

    .line 555
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->l:Landroid/widget/HorizontalScrollView;

    iget v2, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    sub-int/2addr v2, v3

    mul-int v2, v2, v17

    invoke-virtual {v1, v2, v4}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    const-string v1, "mScrollView init:"

    .line 556
    new-instance v2, Ljava/lang/StringBuilder;

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

    iget v3, v0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

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

    const-string v3, ":"

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

    move/from16 v5, v17

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

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

    move-result-object v2

    invoke-static {v1, v2}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_9
    return-void
.end method

.method static synthetic o(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)V
    .locals 0

    .line 85
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a()V

    return-void
.end method

.method private p()V
    .locals 3

    const v0, 0x7f0905c4

    .line 588
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/titlebar/MJTitleBar;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    .line 589
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a:Lcom/moji/titlebar/MJTitleBar;

    new-instance v1, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$4;

    const v2, 0x7f08079b

    invoke-direct {v1, p0, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$4;-><init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;I)V

    invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->a(Lcom/moji/titlebar/MJTitleBar$Action;)Landroid/view/View;

    return-void
.end method

.method private q()V
    .locals 2

    .line 707
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v0, v0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v0, v0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b:Ljava/util/List;

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

    move-result v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->c:I

    if-le v0, v1, :cond_0

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->TIDE_PAGE_SHOW:Lcom/moji/statistics/EVENT_TAG;

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

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

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->TTIDE_DATEPAGE_SHOW:Lcom/moji/statistics/EVENT_TAG;

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

    :cond_0
    return-void
.end method

.method private r()V
    .locals 7

    .line 813
    iget-wide v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    .line 814
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    sub-long/2addr v0, v4

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

    move-result-object v4

    sget-object v5, Lcom/moji/statistics/EVENT_TAG;->WEATHER_DETAIL_STAY_TIME:Lcom/moji/statistics/EVENT_TAG;

    const-string v6, ""

    invoke-virtual {v4, v5, v6, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;

    .line 816
    iput-wide v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    :cond_0
    return-void
.end method


# virtual methods
.method public getWeekOfDate(J)Ljava/lang/String;
    .locals 3

    .line 578
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->p:Landroid/content/Context;

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

    move-result-object v0

    const v1, 0x7f03002b

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 579
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 580
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2, p1, p2}, Ljava/util/Date;-><init>(J)V

    .line 581
    invoke-virtual {v1, v2}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    const/4 p1, 0x7

    .line 582
    invoke-virtual {v1, p1}, Ljava/util/Calendar;->get(I)I

    move-result p1

    add-int/lit8 p1, p1, -0x1

    if-gez p1, :cond_0

    const/4 p1, 0x0

    .line 584
    :cond_0
    aget-object p1, v0, p1

    return-object p1
.end method

.method protected h()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public onBackPressed()V
    .locals 2

    const/4 v0, 0x1

    .line 780
    :try_start_0
    invoke-direct {p0, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Z)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 783
    :cond_0
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onBackPressed()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "DailyDetailActivity"

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

    :goto_0
    return-void
.end method

.method public onBackToForeground()V
    .locals 5

    .line 792
    iget-wide v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    .line 793
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 244
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0b0034

    .line 245
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->setContentView(I)V

    .line 246
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->p:Landroid/content/Context;

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

    move-result p1

    iput p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->u:I

    .line 248
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->y:Ljava/util/Calendar;

    .line 249
    iput-object p0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->f:Lcom/moji/base/ISwitchFrontAndBack;

    .line 250
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->n()V

    .line 251
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->e()V

    .line 252
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b()V

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

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->B:Lcom/moji/statistics/FunctionStat;

    .line 254
    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->B:Lcom/moji/statistics/FunctionStat;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Lcom/moji/statistics/FunctionStat;->c(Z)V

    .line 255
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->z:J

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 807
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r()V

    .line 808
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onDestroy()V

    .line 809
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->B:Lcom/moji/statistics/FunctionStat;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/statistics/FunctionStat;->c(Z)V

    return-void
.end method

.method public onForeToBackground()V
    .locals 0

    .line 802
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->r()V

    return-void
.end method

.method protected onPause()V
    .locals 2

    .line 748
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onPause()V

    .line 749
    new-instance v0, Lcom/moji/mjad/AdSdk;

    invoke-direct {v0}, Lcom/moji/mjad/AdSdk;-><init>()V

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V

    .line 750
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    if-eqz v0, :cond_0

    .line 751
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Z)V

    .line 753
    :cond_0
    invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->s()V

    return-void
.end method

.method protected onResume()V
    .locals 2

    .line 758
    invoke-super {p0}, Lcom/moji/base/MJActivity;->onResume()V

    .line 760
    new-instance v0, Lcom/moji/mjad/AdSdk;

    invoke-direct {v0}, Lcom/moji/mjad/AdSdk;-><init>()V

    const/4 v1, 0x1

    invoke-virtual {v0, v1, p0}, Lcom/moji/mjad/AdSdk;->a(ZLandroid/content/Context;)V

    .line 761
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    if-eqz v0, :cond_0

    .line 762
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Z)V

    :cond_0
    const/4 v0, 0x0

    .line 764
    invoke-direct {p0, v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Z)Z

    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 1

    if-eqz p1, :cond_0

    .line 359
    iget-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->D:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 360
    iput-boolean v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->D:Z

    .line 361
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->m()V

    .line 363
    :cond_0
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onWindowFocusChanged(Z)V

    return-void
.end method

.method public refreshConstellationView(Lcom/moji/mjweather/dailydetail/event/ConstellationChangeEvent;)V
    .locals 0
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 827
    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->o:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-virtual {p1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->c()V

    return-void
.end method
