KeepAliveJob$1.smali

.class final Lim/tpelyyftgw/messenger/KeepAliveJob$1;
.super Ljava/lang/Object;
.source "KeepAliveJob.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/messenger/KeepAliveJob;->startJob()V
.end annotation

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


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    .line 21
    invoke-static {}, Lim/tpelyyftgw/messenger/KeepAliveJob;->access$000()Z

    move-result v0

    if-nez v0, :cond_35

    invoke-static {}, Lim/tpelyyftgw/messenger/KeepAliveJob;->access$100()Ljava/util/concurrent/CountDownLatch;

    move-result-object v0

    if-eqz v0, :cond_d

    goto :goto_35

    .line 25
    :cond_d
    :try_start_d
    sget-boolean v0, Lim/tpelyyftgw/messenger/BuildVars;->LOGS_ENABLED:Z

    if-eqz v0, :cond_17

    .line 26
    const-string/jumbo v0, "starting keep-alive job"

    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->d(Ljava/lang/String;)V

    .line 28
    :cond_17
    invoke-static {}, Lim/tpelyyftgw/messenger/KeepAliveJob;->access$200()Ljava/lang/Object;

    move-result-object v0

    monitor-enter v0
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_1c} :catch_33

    .line 29
    const/4 v1, 0x1

    :try_start_1d
    invoke-static {v1}, Lim/tpelyyftgw/messenger/KeepAliveJob;->access$002(Z)Z

    .line 30
    monitor-exit v0
    :try_end_21
    .catchall {:try_start_1d .. :try_end_21} :catchall_30

    .line 31
    :try_start_21
    sget-object v0, Lim/tpelyyftgw/messenger/ApplicationLoader;->applicationContext:Landroid/content/Context;

    const-class v1, Lim/tpelyyftgw/messenger/KeepAliveJob;

    const/16 v2, 0x3e8

    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    invoke-static {v0, v1, v2, v3}, Lim/tpelyyftgw/messenger/support/JobIntentService;->enqueueWork(Landroid/content/Context;Ljava/lang/Class;ILandroid/content/Intent;)V
    :try_end_2f
    .catch Ljava/lang/Exception; {:try_start_21 .. :try_end_2f} :catch_33

    .line 34
    goto :goto_34

    .line 30
    :catchall_30
    move-exception v1

    :try_start_31
    monitor-exit v0
    :try_end_32
    .catchall {:try_start_31 .. :try_end_32} :catchall_30

    :try_start_32
    throw v1
    :try_end_33
    .catch Ljava/lang/Exception; {:try_start_32 .. :try_end_33} :catch_33

    .line 32
    :catch_33
    move-exception v0

    .line 35
    :goto_34
    return-void

    .line 22
    :cond_35
    :goto_35
    return-void
.end method