CountDownTimer$1.smali

.class Lio/rong/common/CountDownTimer$1;
.super Landroid/os/Handler;
.source "CountDownTimer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/rong/common/CountDownTimer;
.end annotation

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


# instance fields
.field final synthetic this$0:Lio/rong/common/CountDownTimer;


# direct methods
.method constructor <init>(Lio/rong/common/CountDownTimer;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .registers 11

    .line 1
    iget-object p1, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    monitor-enter p1

    .line 2
    :try_start_3
    iget-object v0, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    # getter for: Lio/rong/common/CountDownTimer;->mCancelled:Z
    invoke-static {v0}, Lio/rong/common/CountDownTimer;->access$000(Lio/rong/common/CountDownTimer;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 3
    monitor-exit p1

    return-void

    .line 4
    :cond_d
    iget-object v0, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    # getter for: Lio/rong/common/CountDownTimer;->mStopTimeInFuture:J
    invoke-static {v0}, Lio/rong/common/CountDownTimer;->access$100(Lio/rong/common/CountDownTimer;)J

    move-result-wide v0

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-gtz v4, :cond_24

    .line 5
    iget-object v0, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    invoke-virtual {v0}, Lio/rong/common/CountDownTimer;->onFinish()V

    goto :goto_5e

    .line 6
    :cond_24
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v4

    .line 7
    iget-object v6, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    invoke-virtual {v6, v0, v1}, Lio/rong/common/CountDownTimer;->onTick(J)V

    .line 8
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v6

    sub-long/2addr v6, v4

    .line 9
    iget-object v4, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    # getter for: Lio/rong/common/CountDownTimer;->mCountdownInterval:J
    invoke-static {v4}, Lio/rong/common/CountDownTimer;->access$200(Lio/rong/common/CountDownTimer;)J

    move-result-wide v4

    cmp-long v8, v0, v4

    if-gez v8, :cond_43

    sub-long/2addr v0, v6

    cmp-long v4, v0, v2

    if-gez v4, :cond_56

    move-wide v0, v2

    goto :goto_56

    .line 10
    :cond_43
    iget-object v0, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    # getter for: Lio/rong/common/CountDownTimer;->mCountdownInterval:J
    invoke-static {v0}, Lio/rong/common/CountDownTimer;->access$200(Lio/rong/common/CountDownTimer;)J

    move-result-wide v0

    sub-long/2addr v0, v6

    :goto_4a
    cmp-long v4, v0, v2

    if-gez v4, :cond_56

    .line 11
    iget-object v4, p0, Lio/rong/common/CountDownTimer$1;->this$0:Lio/rong/common/CountDownTimer;

    # getter for: Lio/rong/common/CountDownTimer;->mCountdownInterval:J
    invoke-static {v4}, Lio/rong/common/CountDownTimer;->access$200(Lio/rong/common/CountDownTimer;)J

    move-result-wide v4

    add-long/2addr v0, v4

    goto :goto_4a

    :cond_56
    :goto_56
    const/4 v2, 0x1

    .line 12
    invoke-virtual {p0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v2

    invoke-virtual {p0, v2, v0, v1}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    .line 13
    :goto_5e
    monitor-exit p1

    return-void

    :catchall_60
    move-exception v0

    monitor-exit p1
    :try_end_62
    .catchall {:try_start_3 .. :try_end_62} :catchall_60

    goto :goto_64

    :goto_63
    throw v0

    :goto_64
    goto :goto_63
.end method