AFb1xSDK$5$1.smali

.class final Lcom/appsflyer/internal/AFb1xSDK$5$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/appsflyer/internal/AFb1xSDK$5;->onActivityPaused(Landroid/app/Activity;)V
.end annotation

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


# instance fields
.field private synthetic AFInAppEventParameterName:Landroid/app/Activity;

.field public final synthetic AFKeystoreWrapper:Lcom/appsflyer/internal/AFb1xSDK$5;


# direct methods
.method public constructor <init>(Lcom/appsflyer/internal/AFb1xSDK$5;Landroid/app/Activity;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    iput-object p1, p0, Lcom/appsflyer/internal/AFb1xSDK$5$1;->AFKeystoreWrapper:Lcom/appsflyer/internal/AFb1xSDK$5;

    iput-object p2, p0, Lcom/appsflyer/internal/AFb1xSDK$5$1;->AFInAppEventParameterName:Landroid/app/Activity;

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 10

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    const/4 v2, 0x1

    if-ne v0, v1, :cond_d

    const/4 v0, 0x1

    goto :goto_e

    :cond_d
    const/4 v0, 0x0

    :goto_e
    const-string v1, "runnable"

    const-string v3, "com/appsflyer/internal/AFb1xSDK$5$1"

    const-string v4, "run"

    if-eqz v0, :cond_19

    invoke-static {v4, v3, v1}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1
    :cond_19
    iget-object v5, p0, Lcom/appsflyer/internal/AFb1xSDK$5$1;->AFKeystoreWrapper:Lcom/appsflyer/internal/AFb1xSDK$5;

    iput-boolean v2, v5, Lcom/appsflyer/internal/AFb1xSDK$5;->AFInAppEventParameterName:Z

    .line 2
    iget-object v2, p0, Lcom/appsflyer/internal/AFb1xSDK$5$1;->AFInAppEventParameterName:Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    .line 3
    :try_start_23
    invoke-static {}, Lcom/shopee/app/asm/anr/threadpool/e;->a()Z

    move-result v5

    if-eqz v5, :cond_2c

    .line 4
    sget-object v5, Lcom/shopee/app/asm/anr/threadpool/e;->a:Lcom/shopee/app/asm/anr/threadpool/e;

    goto :goto_31

    .line 5
    :cond_2c
    new-instance v5, Ljava/util/Timer;

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

    .line 6
    :goto_31
    new-instance v6, Lcom/appsflyer/internal/AFb1xSDK$5$1$4;

    invoke-direct {v6, p0, v2}, Lcom/appsflyer/internal/AFb1xSDK$5$1$4;-><init>(Lcom/appsflyer/internal/AFb1xSDK$5$1;Landroid/content/Context;)V

    sget-wide v7, Lcom/appsflyer/internal/AFb1xSDK;->valueOf:J

    invoke-virtual {v5, v6, v7, v8}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V
    :try_end_3b
    .catchall {:try_start_23 .. :try_end_3b} :catchall_41

    if-eqz v0, :cond_40

    .line 7
    invoke-static {v4, v3, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_40
    return-void

    :catchall_41
    move-exception v2

    const-string v5, "Background task failed with a throwable: "

    .line 8
    invoke-static {v5, v2}, Lcom/appsflyer/AFLogger;->afErrorLog(Ljava/lang/String;Ljava/lang/Throwable;)V

    if-eqz v0, :cond_4c

    .line 9
    invoke-static {v4, v3, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_4c
    return-void
.end method