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

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/dailydetail/TideDetailActivity$ShareImageTask;
    }
.end annotation


# static fields
.field public static final MOJI_LINK:Ljava/lang/String; = "http://www.mojichina.com"


# instance fields
.field private A:Landroid/widget/LinearLayout;

.field private B:Landroid/widget/TextView;

.field private C:Ljava/util/TimeZone;

.field private D:F

.field private E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

.field private F:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/mjweather/dailydetail/entity/TideData;",
            ">;"
        }
    .end annotation
.end field

.field private G:Ljava/lang/Boolean;

.field private H:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Landroid/widget/LinearLayout;",
            ">;"
        }
    .end annotation
.end field

.field private I:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Landroid/widget/RelativeLayout;",
            ">;"
        }
    .end annotation
.end field

.field private final J:I

.field private final K:I

.field private L:Landroid/os/Handler;

.field private M:Lcom/moji/share/MJThirdShareManager;

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

.field private final b:Ljava/lang/String;

.field private final c:[Ljava/lang/String;

.field private final i:[Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Ljava/lang/String;

.field private m:J

.field private n:Lcom/moji/common/area/AreaInfo;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/TextView;

.field private q:Landroid/widget/TextView;

.field private r:Landroid/widget/TextView;

.field private s:Landroid/widget/ImageView;

.field private t:Landroid/widget/ImageView;

.field private u:Landroid/widget/LinearLayout;

.field private v:Landroid/widget/LinearLayout;

.field private w:Landroid/widget/LinearLayout;

.field private x:Landroid/widget/LinearLayout;

.field private y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

.field private z:Landroid/widget/ScrollView;


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

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

    .line 87
    const-class v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b:Ljava/lang/String;

    const v0, 0x7f030018

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

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->c:[Ljava/lang/String;

    const v0, 0x7f030019

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

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->i:[Ljava/lang/String;

    .line 285
    new-instance v0, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-direct {v0}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

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

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

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    const/4 v0, 0x0

    .line 287
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->G:Ljava/lang/Boolean;

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

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

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

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

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

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

    .line 524
    iput v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->J:I

    const/4 v0, 0x1

    .line 525
    iput v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->K:I

    .line 527
    new-instance v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity$6;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$6;-><init>(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)V

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->L:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/TideDetailActivity;F)F
    .locals 0

    .line 85
    iput p1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->D:F

    return p1
.end method

.method private static a(Ljava/util/ArrayList;)I
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;",
            ">;)I"
        }
    .end annotation

    const/4 v0, -0x1

    if-eqz p0, :cond_4

    .line 396
    invoke-virtual {p0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_1

    :cond_0
    const-wide/16 v1, -0x1

    const/4 v3, 0x0

    .line 403
    :goto_0
    invoke-virtual {p0}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v3, v4, :cond_3

    .line 404
    invoke-virtual {p0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    .line 405
    new-instance v5, Ljava/util/Date;

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

    .line 406
    invoke-virtual {v5}, Ljava/util/Date;->getTime()J

    move-result-wide v5

    invoke-virtual {v4}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->getTime()J

    move-result-wide v7

    const-wide/16 v9, 0x3e8

    mul-long v7, v7, v9

    sub-long/2addr v5, v7

    invoke-static {v5, v6}, Ljava/lang/Math;->abs(J)J

    move-result-wide v4

    const-wide/16 v6, 0x0

    cmp-long v8, v1, v6

    if-ltz v8, :cond_1

    cmp-long v6, v4, v1

    if-gez v6, :cond_2

    :cond_1
    move v0, v3

    move-wide v1, v4

    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    return v0

    :cond_4
    :goto_1
    return v0
.end method

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

    .line 903
    :try_start_0
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "HH:mm"

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

    .line 904
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->C:Ljava/util/TimeZone;

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

    .line 905
    new-instance v1, Ljava/util/Date;

    const-wide/16 v2, 0x3e8

    mul-long p1, p1, v2

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

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

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    const-string p1, "--:--"

    return-object p1
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    const v0, 0x7f0e0524

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

    move-result-object v0

    :try_start_0
    const-string v1, " "

    .line 929
    invoke-virtual {p1, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const-string v2, ":"

    .line 930
    invoke-virtual {p1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    add-int/lit8 v1, v1, 0x1

    .line 931
    invoke-virtual {p1, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object v0
.end method

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

    .line 85
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    return-object p1
.end method

.method private a(Landroid/widget/HorizontalScrollView;)V
    .locals 1

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    .line 700
    invoke-virtual {p1, v0, v0}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V

    :cond_0
    return-void
.end method

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

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

    return-void
.end method

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

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Landroid/widget/HorizontalScrollView;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/dailydetail/TideDetailActivity;Lorg/json/JSONObject;)V
    .locals 0

    .line 85
    invoke-direct {p0, p1}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Lorg/json/JSONObject;)V

    return-void
.end method

.method private a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;Landroid/widget/HorizontalScrollView;)V
    .locals 1

    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

    .line 694
    invoke-virtual {p1}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->getWidth()I

    move-result p1

    const/4 v0, 0x0

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

    :cond_0
    return-void
.end method

.method private a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;Lcom/moji/mjweather/dailydetail/view/TideFloatView;Landroid/widget/HorizontalScrollView;)V
    .locals 1

    if-eqz p1, :cond_1

    if-nez p2, :cond_0

    goto :goto_0

    .line 684
    :cond_0
    :try_start_0
    invoke-virtual {p2}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->getExtarDataPoints()Ljava/util/List;

    move-result-object p1

    const v0, 0x7f0e05eb

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

    move-result-object v0

    invoke-static {p1, v0}, Lcom/moji/mjweather/dailydetail/utils/DataPointsConvertor;->a(Ljava/util/List;Ljava/lang/String;)I

    move-result p1

    .line 685
    invoke-virtual {p2, p1}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->a(I)F

    move-result p1

    float-to-int p1, p1

    const/4 p2, 0x0

    .line 686
    invoke-virtual {p3, p1, p2}, Landroid/widget/HorizontalScrollView;->smoothScrollTo(II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void

    :cond_1
    :goto_0
    return-void
.end method

.method private a(Lorg/json/JSONObject;)V
    .locals 12

    :try_start_0
    const-string v0, "details"

    .line 291
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    const-string v1, "moonInfo"

    .line 292
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    if-eqz p1, :cond_0

    const-string v1, "moonPhase"

    .line 294
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "moonRise"

    .line 295
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "moonSet"

    .line 296
    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 298
    invoke-direct {p0, v2}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 299
    invoke-direct {p0, p1}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 301
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v3, v1}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->a(Ljava/lang/String;)V

    .line 302
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->b(Ljava/lang/String;)V

    .line 303
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v1, p1}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->c(Ljava/lang/String;)V

    :cond_0
    if-eqz v0, :cond_7

    .line 306
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result p1

    if-eqz p1, :cond_7

    const/4 p1, 0x0

    const/4 v1, 0x0

    .line 308
    :goto_0
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v1, v2, :cond_7

    .line 310
    invoke-virtual {v0, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    const-string v3, "tidehours"

    .line 312
    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    const-string v4, "tideranges"

    .line 313
    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    const-string v5, "port"

    .line 314
    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    const-string v5, "name"

    .line 316
    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "seaLevel"

    .line 317
    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "baseline"

    .line 319
    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_1

    const-string v7, "baseline"

    .line 320
    invoke-virtual {v2, v7}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;)D

    move-result-wide v7

    goto :goto_1

    :cond_1
    const-wide v7, -0x3f70c00000000000L    # -1000.0

    .line 325
    :goto_1
    new-instance v2, Lcom/moji/mjweather/dailydetail/entity/TideData;

    invoke-direct {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;-><init>()V

    .line 327
    invoke-virtual {v2, v5}, Lcom/moji/mjweather/dailydetail/entity/TideData;->setPortName(Ljava/lang/String;)V

    .line 328
    invoke-virtual {v2, v6}, Lcom/moji/mjweather/dailydetail/entity/TideData;->setSeaLevel(Ljava/lang/String;)V

    const-wide/high16 v5, 0x4059000000000000L    # 100.0

    mul-double v7, v7, v5

    double-to-int v5, v7

    .line 329
    invoke-virtual {v2, v5}, Lcom/moji/mjweather/dailydetail/entity/TideData;->setBaseline(I)V

    const/4 v5, 0x0

    .line 331
    :goto_2
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge v5, v6, :cond_4

    .line 332
    new-instance v6, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    invoke-direct {v6}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;-><init>()V

    .line 333
    invoke-virtual {v3, v5}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    .line 335
    rem-int/lit8 v8, v5, 0x2

    if-nez v8, :cond_2

    goto :goto_4

    :cond_2
    const-string v8, "hour"

    .line 338
    invoke-virtual {v7, v8}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v8

    const-string v9, "level"

    .line 339
    invoke-virtual {v7, v9}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v9

    const-string v10, "timestamp"

    .line 340
    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v10

    .line 342
    invoke-virtual {v6, v10, v11}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setTime(J)V

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

    move-result-object v7

    .line 345
    invoke-virtual {v7, v10, v11}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 346
    invoke-static {v10, v11}, Lcom/moji/tool/DateFormatTool;->b(J)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setDate(Ljava/lang/String;)V

    const v7, 0x7f0e083c

    if-ltz v8, :cond_3

    const/16 v10, 0x9

    if-gt v8, v10, :cond_3

    .line 348
    new-instance v10, Ljava/lang/StringBuilder;

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

    const-string v11, "0"

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

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

    invoke-virtual {p0, v7}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

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

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

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setHour(Ljava/lang/String;)V

    goto :goto_3

    .line 350
    :cond_3
    new-instance v10, Ljava/lang/StringBuilder;

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

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

    invoke-virtual {p0, v7}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

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

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

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setHour(Ljava/lang/String;)V

    .line 352
    :goto_3
    invoke-virtual {v6, v9}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setLevel(I)V

    .line 353
    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getBaseline()I

    move-result v7

    int-to-float v7, v7

    const/high16 v8, 0x42c80000    # 100.0f

    div-float/2addr v7, v8

    invoke-virtual {v6, v7}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setSeaLevel(F)V

    .line 354
    iget-object v7, v2, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    invoke-virtual {v7, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_4
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_2

    :cond_4
    const/4 v3, 0x0

    .line 357
    :goto_5
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-ge v3, v5, :cond_5

    .line 358
    new-instance v5, Lcom/moji/index/TideRangeData;

    invoke-direct {v5}, Lcom/moji/index/TideRangeData;-><init>()V

    .line 359
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    const/4 v7, 0x1

    .line 361
    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v7

    iput-object v7, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->G:Ljava/lang/Boolean;

    const-string v7, "level"

    .line 364
    invoke-virtual {v6, v7}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v7

    const-string v8, "timestamp"

    .line 365
    invoke-virtual {v6, v8}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v8

    .line 367
    invoke-virtual {v5, v8, v9}, Lcom/moji/index/TideRangeData;->setTime(J)V

    .line 368
    invoke-direct {p0, v8, v9}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(J)Ljava/lang/String;

    move-result-object v6

    .line 369
    invoke-direct {p0, v8, v9}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b(J)Ljava/lang/String;

    move-result-object v8

    .line 370
    invoke-virtual {v5, v6}, Lcom/moji/index/TideRangeData;->setDate(Ljava/lang/String;)V

    .line 371
    invoke-virtual {v5, v7}, Lcom/moji/index/TideRangeData;->setLevel(I)V

    .line 372
    invoke-virtual {v5, v8}, Lcom/moji/index/TideRangeData;->setDayDate(Ljava/lang/String;)V

    .line 374
    iget-object v6, v2, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideRanges:Ljava/util/ArrayList;

    invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_5

    .line 376
    :cond_5
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->G:Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-eqz v3, :cond_6

    .line 377
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    iput-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->G:Ljava/lang/Boolean;

    .line 378
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

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

    goto/16 :goto_0

    .line 383
    :cond_7
    :try_start_1
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->k()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_6

    :catch_0
    move-exception p1

    :try_start_2
    const-string v0, "LQDEBUG"

    .line 385
    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

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

    .line 388
    :goto_6
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->l()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_7

    :catch_1
    move-exception p1

    const-string v0, "LQDEBUG"

    .line 390
    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

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

    :goto_7
    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    return-object p0
.end method

.method private b(J)Ljava/lang/String;
    .locals 4

    .line 916
    :try_start_0
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd"

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

    .line 917
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->C:Ljava/util/TimeZone;

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

    .line 918
    new-instance v1, Ljava/util/Date;

    const-wide/16 v2, 0x3e8

    mul-long p1, p1, v2

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

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

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    const-string p1, ""

    return-object p1
.end method

.method private b(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 940
    invoke-static {p1}, Lcom/moji/skinshop/util/Util;->b(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    :cond_0
    const-string v0, "/"

    const-string v1, "-"

    .line 943
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

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

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

    return-object p0
.end method

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

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

    return-object p0
.end method

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

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

    return-object p0
.end method

.method private e()V
    .locals 3

    const v0, 0x7f0905c4

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

    move-result-object v0

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

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

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

    new-instance v1, Lcom/moji/mjweather/dailydetail/TideDetailActivity$1;

    const v2, 0x7f08079b

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

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

    return-void
.end method

.method static synthetic f(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)V
    .locals 0

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

    return-void
.end method

.method static synthetic g(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)F
    .locals 0

    .line 85
    iget p0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->D:F

    return p0
.end method

.method static synthetic h(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)Ljava/lang/String;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b:Ljava/lang/String;

    return-object p0
.end method

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

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

    return-object p0
.end method

.method static synthetic j(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)Landroid/os/Handler;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->L:Landroid/os/Handler;

    return-object p0
.end method

.method private j()V
    .locals 11

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

    move-result v0

    if-nez v0, :cond_0

    .line 238
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->t_()V

    return-void

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

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->n:Lcom/moji/common/area/AreaInfo;

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

    move-result-object v0

    if-nez v0, :cond_1

    return-void

    .line 245
    :cond_1
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->initCurTimeZone(Lcom/moji/weatherprovider/data/Weather;)V

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

    move-result-object v1

    sget-object v2, Lcom/moji/location/MJLocationSource;->AMAP_LOCATION:Lcom/moji/location/MJLocationSource;

    invoke-static {v1, v2}, Lcom/moji/location/provider/HistoryLocationHelper;->b(Landroid/content/Context;Lcom/moji/location/MJLocationSource;)Lcom/moji/location/entity/MJLocation;

    move-result-object v1

    .line 248
    :try_start_0
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->l:Ljava/lang/String;

    invoke-direct {p0, v2}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-wide/16 v2, 0x0

    if-eqz v1, :cond_2

    .line 252
    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v2

    .line 253
    invoke-virtual {v1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v5

    move-wide v7, v2

    move-wide v9, v5

    goto :goto_0

    :cond_2
    move-wide v7, v2

    move-wide v9, v7

    .line 255
    :goto_0
    new-instance v1, Lcom/moji/http/weather/TideDetailInfoRequest;

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

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

    move-object v3, v1

    invoke-direct/range {v3 .. v10}, Lcom/moji/http/weather/TideDetailInfoRequest;-><init>(Ljava/lang/String;JDD)V

    .line 256
    new-instance v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity$5;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$5;-><init>(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)V

    invoke-virtual {v1, v0}, Lcom/moji/http/weather/TideDetailInfoRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 281
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

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

    :goto_1
    return-void
.end method

.method private k()V
    .locals 17

    move-object/from16 v0, p0

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 417
    :goto_0
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v3

    if-ge v2, v3, :cond_6

    .line 418
    iget-object v3, v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result-object v3

    check-cast v3, Lcom/moji/mjweather/dailydetail/entity/TideData;

    .line 419
    iget-object v4, v3, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideRanges:Ljava/util/ArrayList;

    .line 420
    iget-object v5, v3, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    .line 422
    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getBaseline()I

    move-result v6

    const/4 v7, 0x0

    .line 424
    :goto_1
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-ge v7, v8, :cond_5

    .line 425
    invoke-virtual {v4, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/moji/index/TideRangeData;

    .line 426
    invoke-virtual {v8}, Lcom/moji/index/TideRangeData;->getLevel()I

    move-result v9

    .line 427
    invoke-virtual {v8}, Lcom/moji/index/TideRangeData;->getDate()Ljava/lang/String;

    move-result-object v10

    const-string v11, ":"

    .line 428
    invoke-virtual {v10, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v11

    invoke-virtual {v10, v1, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v11

    .line 429
    invoke-static {v11}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v11

    .line 430
    invoke-virtual {v8}, Lcom/moji/index/TideRangeData;->getTime()J

    move-result-wide v12

    const/4 v8, 0x0

    .line 431
    :goto_2
    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v14

    if-ge v8, v14, :cond_4

    .line 432
    invoke-virtual {v5, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    invoke-virtual {v14}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->getHour()Ljava/lang/String;

    move-result-object v14

    const-string v15, ":"

    .line 434
    invoke-virtual {v10, v15}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v15

    invoke-virtual {v14, v1, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v14

    .line 436
    invoke-static {v14}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v14

    const-string v15, "=========================="

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

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

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

    move-object/from16 v16, v4

    const-string v4, "-----"

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

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

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

    move-result-object v1

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

    if-eq v11, v14, :cond_1

    add-int/lit8 v14, v14, 0x1

    if-eq v11, v14, :cond_1

    if-nez v11, :cond_0

    goto :goto_3

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

    move-object/from16 v4, v16

    const/4 v1, 0x0

    goto :goto_2

    .line 439
    :cond_1
    :goto_3
    new-instance v1, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    invoke-direct {v1}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;-><init>()V

    .line 441
    invoke-virtual {v1, v12, v13}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setTime(J)V

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

    move-result-object v4

    .line 444
    invoke-virtual {v4, v12, v13}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 445
    invoke-static {v12, v13}, Lcom/moji/tool/DateFormatTool;->b(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setDate(Ljava/lang/String;)V

    .line 447
    invoke-virtual {v1, v10}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setHour(Ljava/lang/String;)V

    .line 448
    invoke-virtual {v1, v9}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setLevel(I)V

    if-le v9, v6, :cond_2

    const v4, 0x7f0e03b5

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

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setContent(Ljava/lang/String;)V

    goto :goto_4

    :cond_2
    const v4, 0x7f0e047a

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

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setContent(Ljava/lang/String;)V

    .line 454
    :goto_4
    invoke-virtual {v3}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getBaseline()I

    move-result v4

    int-to-float v4, v4

    const/high16 v9, 0x42c80000    # 100.0f

    div-float/2addr v4, v9

    invoke-virtual {v1, v4}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setSeaLevel(F)V

    if-nez v11, :cond_3

    const/4 v4, 0x0

    .line 456
    invoke-virtual {v5, v4, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_5

    :cond_3
    const/4 v4, 0x0

    add-int/lit8 v8, v8, 0x1

    .line 458
    invoke-virtual {v5, v8, v1}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_5

    :cond_4
    move-object/from16 v16, v4

    const/4 v4, 0x0

    :goto_5
    add-int/lit8 v7, v7, 0x1

    move-object/from16 v4, v16

    const/4 v1, 0x0

    goto/16 :goto_1

    :cond_5
    const/4 v4, 0x0

    add-int/lit8 v2, v2, 0x1

    const/4 v1, 0x0

    goto/16 :goto_0

    :cond_6
    const/4 v4, 0x0

    .line 466
    :goto_6
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v1

    if-ge v4, v1, :cond_8

    .line 467
    iget-object v1, v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/entity/TideData;

    .line 468
    iget-object v1, v1, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    .line 469
    invoke-static {v1}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Ljava/util/ArrayList;)I

    move-result v2

    .line 470
    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    .line 471
    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->getTime()J

    move-result-wide v2

    .line 472
    new-instance v5, Ljava/util/Date;

    const-wide/16 v6, 0x3e8

    mul-long v2, v2, v6

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

    .line 473
    invoke-static {v5}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;)Z

    move-result v2

    if-eqz v2, :cond_7

    const v2, 0x7f0e05eb

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

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->setHour(Ljava/lang/String;)V

    :cond_7
    add-int/lit8 v4, v4, 0x1

    goto :goto_6

    :cond_8
    return-void
.end method

.method static synthetic k(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)V
    .locals 0

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

    return-void
.end method

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

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

    return-object p0
.end method

.method private l()V
    .locals 7

    .line 482
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v0}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->a()I

    move-result v0

    .line 483
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v1}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->b()Ljava/lang/String;

    move-result-object v1

    .line 484
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->E:Lcom/moji/mjweather/dailydetail/entity/MoonInfo;

    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/MoonInfo;->c()Ljava/lang/String;

    move-result-object v2

    .line 485
    invoke-static {v1}, Lcom/moji/skinshop/util/Util;->b(Ljava/lang/String;)Z

    move-result v3

    const v4, 0x7f0e0524

    if-eqz v3, :cond_0

    .line 486
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->o:Landroid/widget/TextView;

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

    move-result-object v3

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

    goto :goto_0

    .line 488
    :cond_0
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->o:Landroid/widget/TextView;

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

    .line 491
    :goto_0
    invoke-static {v2}, Lcom/moji/skinshop/util/Util;->b(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 492
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->p:Landroid/widget/TextView;

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

    move-result-object v2

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

    goto :goto_1

    .line 494
    :cond_1
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->p:Landroid/widget/TextView;

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

    :goto_1
    const/4 v1, 0x0

    const/4 v2, 0x1

    const/16 v3, 0x8

    if-lt v0, v2, :cond_2

    if-gt v0, v3, :cond_2

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

    move-result-object v4

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

    move-result-object v4

    const v5, 0x7f030017

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->obtainTypedArray(I)Landroid/content/res/TypedArray;

    move-result-object v4

    .line 500
    iget-object v5, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->q:Landroid/widget/TextView;

    iget-object v6, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->c:[Ljava/lang/String;

    sub-int/2addr v0, v2

    aget-object v2, v6, v0

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

    .line 501
    invoke-virtual {v4, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v2

    .line 502
    iget-object v5, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v5, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 503
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->r:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->i:[Ljava/lang/String;

    aget-object v0, v5, v0

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

    .line 505
    invoke-virtual {v4}, Landroid/content/res/TypedArray;->recycle()V

    goto :goto_2

    .line 507
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->s:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 508
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->r:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 509
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->q:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 510
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->w:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 512
    :goto_2
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_3

    goto :goto_3

    .line 516
    :cond_3
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->m()V

    goto :goto_4

    .line 513
    :cond_4
    :goto_3
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->x:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 514
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_4
    return-void
.end method

.method static synthetic m(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)Landroid/widget/TextView;
    .locals 0

    .line 85
    iget-object p0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->B:Landroid/widget/TextView;

    return-object p0
.end method

.method private m()V
    .locals 15

    .line 551
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 552
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    if-eqz v1, :cond_5

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

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

    move-result v1

    if-eqz v1, :cond_5

    const/4 v1, 0x0

    .line 553
    :goto_0
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v2

    if-ge v1, v2, :cond_5

    .line 554
    iget-object v2, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/dailydetail/entity/TideData;

    if-nez v2, :cond_0

    goto/16 :goto_2

    :cond_0
    const v3, 0x7f0b03c9

    const/4 v4, 0x0

    .line 558
    invoke-virtual {v0, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    move-object v8, v3

    check-cast v8, Landroid/widget/LinearLayout;

    const v3, 0x7f09093f

    .line 559
    invoke-virtual {v8, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f090940

    .line 560
    invoke-virtual {v8, v4}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f090933

    .line 561
    invoke-virtual {v8, v5}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    const v6, 0x7f090942

    .line 562
    invoke-virtual {v8, v6}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/moji/mjweather/dailydetail/view/TideFloatView;

    const v7, 0x7f090841

    .line 563
    invoke-virtual {v8, v7}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView;

    const v9, 0x7f090934

    .line 564
    invoke-virtual {v8, v9}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/RelativeLayout;

    const v10, 0x7f090941

    .line 566
    invoke-virtual {v8, v10}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Lcom/moji/index/view/TideTrendView;

    const v11, 0x7f090935

    .line 567
    invoke-virtual {v8, v11}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v11

    check-cast v11, Landroid/widget/ImageView;

    const v12, 0x7f090938

    .line 569
    invoke-virtual {v8, v12}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/widget/ImageView;

    .line 571
    iget-object v13, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v13

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

    const/16 v14, 0x8

    if-ne v1, v13, :cond_1

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

    .line 575
    :cond_1
    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getPortName()Ljava/lang/String;

    move-result-object v12

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

    .line 576
    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getBaseline()I

    move-result v3

    const/16 v12, -0x29a

    if-le v3, v12, :cond_2

    .line 577
    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getSeaLevel()Ljava/lang/String;

    move-result-object v3

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

    goto :goto_1

    :cond_2
    const/4 v3, 0x4

    .line 579
    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 582
    :goto_1
    invoke-virtual {v2}, Lcom/moji/mjweather/dailydetail/entity/TideData;->getBaseline()I

    move-result v3

    .line 584
    :try_start_0
    iget-object v4, v2, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideRanges:Ljava/util/ArrayList;

    invoke-virtual {v10, v4, v3}, Lcom/moji/index/view/TideTrendView;->a(Ljava/util/List;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    if-nez v5, :cond_3

    .line 590
    invoke-virtual {v9, v14}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto/16 :goto_2

    .line 593
    :cond_3
    iget-wide v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->m:J

    const-wide/16 v12, 0x0

    cmp-long v10, v3, v12

    if-eqz v10, :cond_4

    .line 594
    new-instance v3, Ljava/util/Date;

    iget-wide v12, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->m:J

    invoke-direct {v3, v12, v13}, Ljava/util/Date;-><init>(J)V

    .line 595
    invoke-static {v3}, Lcom/moji/tool/DateFormatTool;->b(Ljava/util/Date;)Z

    move-result v3

    invoke-virtual {v5, v3}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->setYesterday(Z)V

    .line 598
    :cond_4
    iget-object v3, v2, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    invoke-virtual {v5, v3}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->setDataToView(Ljava/util/List;)V

    .line 599
    invoke-virtual {v5}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    const/high16 v4, 0x424c0000    # 51.0f

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

    move-result v4

    mul-int/lit8 v4, v4, 0x10

    iput v4, v3, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 601
    invoke-virtual {v5, v3}, Lcom/moji/mjweather/dailydetail/view/TideCurveView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 602
    iget-object v2, v2, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    invoke-static {v2}, Lcom/moji/mjweather/dailydetail/utils/DataPointsConvertor;->a(Ljava/util/List;)Ljava/util/Vector;

    move-result-object v2

    invoke-virtual {v6, v2}, Lcom/moji/mjweather/dailydetail/view/TideFloatView;->setExtarDataPoints(Ljava/util/List;)V

    .line 603
    invoke-virtual {v9, v14}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 604
    invoke-virtual {v7}, Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v2

    new-instance v3, Lcom/moji/mjweather/dailydetail/TideDetailActivity$7;

    invoke-direct {v3, p0, v7, v6}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$7;-><init>(Lcom/moji/mjweather/dailydetail/TideDetailActivity;Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView;Lcom/moji/mjweather/dailydetail/view/TideFloatView;)V

    invoke-virtual {v2, v3}, Landroid/view/ViewTreeObserver;->addOnScrollChangedListener(Landroid/view/ViewTreeObserver$OnScrollChangedListener;)V

    .line 617
    new-instance v2, Lcom/moji/mjweather/dailydetail/TideDetailActivity$8;

    invoke-direct {v2, p0, v5, v6}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$8;-><init>(Lcom/moji/mjweather/dailydetail/TideDetailActivity;Lcom/moji/mjweather/dailydetail/view/TideCurveView;Lcom/moji/mjweather/dailydetail/view/TideFloatView;)V

    invoke-virtual {v7, v2}, Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView;->setOnScrollListener(Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView$OnScrollListener;)V

    .line 625
    new-instance v10, Lcom/moji/mjweather/dailydetail/TideDetailActivity$9;

    move-object v2, v10

    move-object v3, p0

    move-object v4, v9

    move-object v5, v7

    move-object v6, v11

    move v7, v1

    invoke-direct/range {v2 .. v7}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$9;-><init>(Lcom/moji/mjweather/dailydetail/TideDetailActivity;Landroid/widget/RelativeLayout;Lcom/moji/mjweather/weather/view/Day15Hour24HorizontalScrollView;Landroid/widget/ImageView;I)V

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

    .line 650
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, -0x1

    const/4 v4, -0x2

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 651
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->H:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 652
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->I:Ljava/util/List;

    invoke-interface {v3, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 653
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v8, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    :cond_5
    :goto_2
    return-void
.end method

.method private n()Ljava/lang/String;
    .locals 12

    .line 721
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

    const v1, 0x7f0e051d

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_4

    :cond_0
    const/4 v0, 0x0

    const/4 v2, -0x1

    const/4 v3, 0x0

    const/4 v4, -0x1

    const/4 v5, -0x1

    const/4 v6, 0x0

    .line 728
    :goto_0
    iget-object v7, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result v7

    if-ge v3, v7, :cond_4

    .line 729
    iget-object v7, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result-object v7

    check-cast v7, Lcom/moji/mjweather/dailydetail/entity/TideData;

    .line 730
    iget-object v7, v7, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideRanges:Ljava/util/ArrayList;

    move v8, v4

    const/4 v4, 0x0

    .line 732
    :cond_1
    :goto_1
    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v9

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

    if-ge v4, v9, :cond_3

    .line 733
    invoke-virtual {v7, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/moji/index/TideRangeData;

    .line 734
    invoke-virtual {v9}, Lcom/moji/index/TideRangeData;->getLevel()I

    move-result v9

    add-int/lit8 v4, v4, 0x1

    .line 736
    invoke-virtual {v7, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/moji/index/TideRangeData;

    .line 737
    invoke-virtual {v10}, Lcom/moji/index/TideRangeData;->getLevel()I

    move-result v10

    sub-int v11, v9, v10

    .line 739
    invoke-static {v11}, Ljava/lang/Math;->abs(I)I

    move-result v11

    if-le v11, v6, :cond_1

    if-le v9, v10, :cond_2

    move v8, v9

    move v5, v10

    :goto_2
    move v6, v11

    goto :goto_1

    :cond_2
    move v5, v9

    move v8, v10

    goto :goto_2

    :cond_3
    add-int/lit8 v3, v3, 0x1

    move v4, v8

    goto :goto_0

    :cond_4
    if-ne v4, v2, :cond_5

    if-ne v5, v2, :cond_5

    .line 759
    new-instance v0, Ljava/lang/StringBuilder;

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

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

    move-result-object v1

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

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

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

    const-string v1, ","

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

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

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

    const-string v1, ","

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

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

    move-result-object v0

    goto :goto_3

    .line 761
    :cond_5
    new-instance v0, Ljava/lang/StringBuilder;

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

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

    move-result-object v1

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

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

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

    const-string v1, ","

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

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

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

    const-string v1, ","

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

    const v1, 0x7f0e0826

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

    move-result-object v1

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

    int-to-double v1, v5

    const-wide/high16 v7, 0x4059000000000000L    # 100.0

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v1, v7

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

    const-string v1, "m,"

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

    const v1, 0x7f0e0824

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

    move-result-object v1

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

    int-to-double v1, v4

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v1, v7

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

    const-string v1, "m,"

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

    const v1, 0x7f0e0828

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

    move-result-object v1

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

    int-to-double v1, v6

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v1, v7

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

    const-string v1, "m\u3002"

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

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

    move-result-object v0

    :goto_3
    return-object v0

    .line 722
    :cond_6
    :goto_4
    new-instance v0, Ljava/lang/StringBuilder;

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

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

    move-result-object v1

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

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

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

    const-string v1, ","

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

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

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

    const-string v1, ","

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

    const v1, 0x7f0e05cc

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

    move-result-object v1

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

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

    move-result-object v0

    return-object v0
.end method

.method static synthetic n(Lcom/moji/mjweather/dailydetail/TideDetailActivity;)V
    .locals 0

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

    return-void
.end method

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

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

    return-object p0
.end method

.method private o()V
    .locals 2

    .line 773
    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/TideDetailActivity;->M:Lcom/moji/share/MJThirdShareManager;

    return-void
.end method

.method private p()V
    .locals 4

    .line 777
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->q()Lcom/moji/share/entity/ShareContentConfig;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 779
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->M:Lcom/moji/share/MJThirdShareManager;

    sget-object v2, Lcom/moji/share/entity/ShareFromType;->TideDetail: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

    goto :goto_0

    :cond_0
    const-string v0, "ShareData is null"

    const/4 v1, 0x0

    .line 781
    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void
.end method

.method private q()Lcom/moji/share/entity/ShareContentConfig;
    .locals 6

    const-string v0, "http://www.mojichina.com"

    .line 787
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->n()Ljava/lang/String;

    move-result-object v1

    .line 789
    invoke-static {v1}, Lcom/moji/skinshop/util/Util;->b(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    const-string v0, "\u6b63\u5728\u89e3\u6790\u6570\u636e\uff0c\u8bf7\u7a0d\u5019..."

    const/4 v1, 0x1

    .line 790
    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    const/4 v0, 0x0

    return-object v0

    :cond_0
    const v2, 0x7f0e0932

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

    move-result-object v2

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

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

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

    move-result-object v4

    const-string v5, "share"

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

    move-result-object v4

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

    move-result-object v4

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

    const-string v4, "/picture_tide_detail.png"

    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 797
    new-instance v4, Lcom/moji/share/entity/ShareContentConfig$Builder;

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

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

    move-result-object v0

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

    move-result-object v0

    sget-object v1, Lcom/moji/share/entity/ShareChannelType;->WX_FRIEND:Lcom/moji/share/entity/ShareChannelType;

    sget-object v2, Lcom/moji/share/entity/ShareContentType;->PIC:Lcom/moji/share/entity/ShareContentType;

    .line 800
    invoke-virtual {v0, v1, v2}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a(Lcom/moji/share/entity/ShareChannelType;Lcom/moji/share/entity/ShareContentType;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    .line 801
    new-instance v0, Lcom/moji/mjweather/dailydetail/TideDetailActivity$ShareImageTask;

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

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

    const/4 v2, 0x0

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

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/dailydetail/TideDetailActivity$ShareImageTask;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

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

    move-result-object v0

    return-object v0
.end method

.method private r()V
    .locals 1

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

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->f()V

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

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->h()V

    return-void
.end method

.method private s()V
    .locals 1

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

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->i()V

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

    invoke-virtual {v0}, Lcom/moji/titlebar/MJTitleBar;->j()V

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 4

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

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

    move-result-object v0

    const-string v1, "date"

    .line 150
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "city"

    .line 151
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "week"

    .line 152
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "time"

    const-wide/16 v2, 0x0

    .line 153
    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v1

    iput-wide v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->m:J

    const-string v1, "areaInfo"

    .line 154
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/moji/common/area/AreaInfo;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->n:Lcom/moji/common/area/AreaInfo;

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

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

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

    .line 156
    new-instance v0, Ljava/util/Date;

    iget-wide v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->m:J

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

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

    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f06023a

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

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

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

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "M\u6708d\u65e5"

    invoke-static {v0, v3}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    const-string v0, " "

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

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->k:Ljava/lang/String;

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

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

    move-result-object v0

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

    return-void
.end method

.method protected b()V
    .locals 2

    const v0, 0x7f090335

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->t:Landroid/widget/ImageView;

    const v0, 0x7f0905cb

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->o:Landroid/widget/TextView;

    const v0, 0x7f0905cc

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->p:Landroid/widget/TextView;

    const v0, 0x7f09093a

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->s:Landroid/widget/ImageView;

    const v0, 0x7f09093b

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->q:Landroid/widget/TextView;

    const v0, 0x7f09093e

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->r:Landroid/widget/TextView;

    const v0, 0x7f09093d

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->w:Landroid/widget/LinearLayout;

    const v0, 0x7f0905c3

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

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    const v0, 0x7f090937

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->u:Landroid/widget/LinearLayout;

    const v0, 0x7f090936

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->v:Landroid/widget/LinearLayout;

    const v0, 0x7f09083f

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

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->z:Landroid/widget/ScrollView;

    const v0, 0x7f09054d

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->A:Landroid/widget/LinearLayout;

    const v0, 0x7f090bb3

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->B:Landroid/widget/TextView;

    const v0, 0x7f09093c

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->x:Landroid/widget/LinearLayout;

    .line 178
    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

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->t:Landroid/widget/ImageView;

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

    return-void
.end method

.method protected c()V
    .locals 2

    .line 184
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->x:Landroid/widget/LinearLayout;

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

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

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 201
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v1, Lcom/moji/mjweather/dailydetail/TideDetailActivity$3;

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

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    .line 213
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->z:Landroid/widget/ScrollView;

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

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

    invoke-virtual {v0, v1}, Landroid/widget/ScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    return-void
.end method

.method protected d()Ljava/util/List;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/share/ShareImageManager$BitmapCompose;",
            ">;"
        }
    .end annotation

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

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

    .line 884
    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-lez v1, :cond_1

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v1, :cond_1

    .line 887
    iget-object v4, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 888
    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 889
    invoke-virtual {v4}, Landroid/view/View;->buildDrawingCache()V

    .line 890
    invoke-virtual {v4}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v4

    if-eqz v4, :cond_0

    const/high16 v5, 0x41200000    # 10.0f

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

    move-result v5

    invoke-static {v4, v2, v5}, Lcom/moji/share/ShareImageManager$BitmapCompose;->a(Landroid/graphics/Bitmap;II)Lcom/moji/share/ShareImageManager$BitmapCompose;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

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

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method public initCurTimeZone(Lcom/moji/weatherprovider/data/Weather;)V
    .locals 1

    if-eqz p1, :cond_0

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

    if-eqz v0, :cond_0

    .line 106
    iget-object p1, p1, Lcom/moji/weatherprovider/data/Weather;->mDetail:Lcom/moji/weatherprovider/data/Detail;

    invoke-virtual {p1}, Lcom/moji/weatherprovider/data/Detail;->getTimeZone()Ljava/util/TimeZone;

    move-result-object p1

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

    goto :goto_0

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

    move-result-object p1

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

    :goto_0
    return-void
.end method

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

    .line 706
    invoke-static {}, Lcom/moji/skinshop/util/Util;->d()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 709
    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    const v0, 0x7f090412

    if-eq p1, v0, :cond_2

    const v0, 0x7f090432

    if-eq p1, v0, :cond_1

    goto :goto_0

    .line 714
    :cond_1
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->finish()V

    goto :goto_0

    .line 711
    :cond_2
    invoke-direct {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->p()V

    :goto_0
    return-void
.end method

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

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

    const p1, 0x7f0b0084

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

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

    move-result-object p1

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

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

    .line 118
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a()V

    .line 119
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->b()V

    .line 120
    invoke-virtual {p0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->c()V

    .line 121
    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->y:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {p1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V

    .line 122
    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->v:Landroid/widget/LinearLayout;

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

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

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

    return-void
.end method

.method protected onDestroy()V
    .locals 2

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

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

    move-result-object v0

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

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

    return-void
.end method

.method public onEventMainThread(Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;)V
    .locals 7

    .line 660
    iget-object v0, p1, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;->a:Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;

    sget-object v1, Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;->TIDE:Lcom/moji/mjweather/dailydetail/utils/CurveDrawer$TYPE;

    if-ne v0, v1, :cond_1

    iget v0, p1, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;->b:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    .line 661
    invoke-virtual {p1}, Lcom/moji/mjweather/dailydetail/event/CurveScrollEvent;->a()I

    move-result p1

    if-ltz p1, :cond_1

    .line 662
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->H:Ljava/util/List;

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

    move-result v0

    if-gt p1, v0, :cond_1

    .line 663
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->H:Ljava/util/List;

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v1, 0x7f090933

    .line 664
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/moji/mjweather/dailydetail/view/TideCurveView;

    const v2, 0x7f090942

    .line 665
    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/dailydetail/view/TideFloatView;

    const v3, 0x7f090841

    .line 666
    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/HorizontalScrollView;

    .line 667
    iget-object v3, p0, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->F:Ljava/util/List;

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

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/dailydetail/entity/TideData;

    iget-object p1, p1, Lcom/moji/mjweather/dailydetail/entity/TideData;->tideTrends:Ljava/util/ArrayList;

    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;

    invoke-virtual {p1}, Lcom/moji/mjweather/dailydetail/entity/TideTrend24Hour;->getTime()J

    move-result-wide v3

    .line 668
    new-instance p1, Ljava/util/Date;

    const-wide/16 v5, 0x3e8

    mul-long v3, v3, v5

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

    .line 669
    invoke-static {p1}, Lcom/moji/tool/DateFormatTool;->a(Ljava/util/Date;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 670
    invoke-direct {p0, v1, v2, v0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;Lcom/moji/mjweather/dailydetail/view/TideFloatView;Landroid/widget/HorizontalScrollView;)V

    goto :goto_0

    .line 671
    :cond_0
    invoke-static {p1}, Lcom/moji/tool/DateFormatTool;->b(Ljava/util/Date;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 672
    invoke-direct {p0, v1, v0}, Lcom/moji/mjweather/dailydetail/TideDetailActivity;->a(Lcom/moji/mjweather/dailydetail/view/TideCurveView;Landroid/widget/HorizontalScrollView;)V

    :cond_1
    :goto_0
    return-void
.end method
