.class Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity$2;
.super Lcom/moji/tool/thread/wrapper/MJRunnable;
.source "TyphoonMapDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;->loadTyphoonMapSuccess(Lcom/moji/http/show/TyphoonMapInfo;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;Lcom/moji/tool/thread/ThreadPriority;)V
    .locals 0

    .line 350
    iput-object p1, p0, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity$2;->a:Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;

    invoke-direct {p0, p2}, Lcom/moji/tool/thread/wrapper/MJRunnable;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    const/4 v0, 0x0

    .line 353
    :goto_0
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity$2;->a:Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;

    invoke-static {v1}, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;->d(Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;)Ljava/util/List;

    move-result-object v1

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

    move-result v1

    if-ge v0, v1, :cond_1

    .line 354
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity$2;->a:Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;

    invoke-static {v1}, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;->d(Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;)Ljava/util/List;

    move-result-object v1

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/show/TyphoonMapDetail;

    if-eqz v1, :cond_0

    .line 356
    iget-wide v2, v1, Lcom/moji/http/show/TyphoonMapDetail;->latitude:D

    iget-wide v4, v1, Lcom/moji/http/show/TyphoonMapDetail;->longitude:D

    invoke-static {v2, v3, v4, v5}, Lcom/moji/location/util/LocationUtil;->a(DD)Z

    move-result v1

    if-eqz v1, :cond_0

    const-wide/16 v1, 0xc8

    .line 358
    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V

    .line 359
    iget-object v1, p0, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity$2;->a:Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;

    invoke-static {v1}, Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;->e(Lcom/moji/mjweather/typhoon/TyphoonMapDetailActivity;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v1

    .line 361
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    :cond_0
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method
