.class Lcom/amap/api/mapcore2d/d$1;
.super Ljava/lang/Object;
.source "AnimBase.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/amap/api/mapcore2d/d;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/amap/api/mapcore2d/d;


# direct methods
.method constructor <init>(Lcom/amap/api/mapcore2d/d;)V
    .locals 0

    .line 81
    iput-object p1, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

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

    return-void
.end method


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

    const-string v0, "run"

    .line 84
    iget-object v1, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-static {v1}, Lcom/amap/api/mapcore2d/d;->a(Lcom/amap/api/mapcore2d/d;)V

    .line 85
    iget-object v1, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-virtual {v1}, Lcom/amap/api/mapcore2d/d;->f()Z

    move-result v1

    if-nez v1, :cond_2

    .line 86
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-static {v0}, Lcom/amap/api/mapcore2d/d;->b(Lcom/amap/api/mapcore2d/d;)Landroid/os/Handler;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 87
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-static {v0}, Lcom/amap/api/mapcore2d/d;->b(Lcom/amap/api/mapcore2d/d;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 88
    :cond_0
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/amap/api/mapcore2d/d;->a(Lcom/amap/api/mapcore2d/d;Landroid/os/Handler;)Landroid/os/Handler;

    .line 89
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-static {v0}, Lcom/amap/api/mapcore2d/d;->c(Lcom/amap/api/mapcore2d/d;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 90
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/d;->c()V

    goto :goto_0

    .line 92
    :cond_1
    iget-object v0, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/d;->b()V

    goto :goto_0

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

    move-result-wide v1

    .line 97
    iget-object v3, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-virtual {v3}, Lcom/amap/api/mapcore2d/d;->a()V

    .line 98
    iget-object v3, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    invoke-static {v3}, Lcom/amap/api/mapcore2d/d;->d(Lcom/amap/api/mapcore2d/d;)V

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

    move-result-wide v3

    sub-long/2addr v3, v1

    .line 100
    iget-object v1, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    iget v1, v1, Lcom/amap/api/mapcore2d/d;->b:I

    int-to-long v1, v1

    cmp-long v5, v3, v1

    if-gez v5, :cond_3

    .line 102
    :try_start_0
    iget-object v1, p0, Lcom/amap/api/mapcore2d/d$1;->a:Lcom/amap/api/mapcore2d/d;

    iget v1, v1, Lcom/amap/api/mapcore2d/d;->b:I

    int-to-long v1, v1

    sub-long/2addr v1, v3

    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    const-string v2, "AnimBase"

    .line 104
    invoke-static {v1, v2, v0}, Lcom/amap/api/mapcore2d/ci;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    :goto_0
    return-void
.end method
