.class public final Lcom/floydwiz/gamingcenter/receivers/BootReceiver;
.super Landroid/content/BroadcastReceiver;
.source ""


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 10

    if-nez p2, :cond_4

    const/4 p2, 0x0

    goto :goto_8

    :cond_4
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p2

    :goto_8
    const-string v0, "android.intent.action.BOOT_COMPLETED"

    invoke-static {p2, v0}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_7f

    sget-object p2, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v0, "debugbootrecboot complete broadcast has worked"

    invoke-virtual {p2, v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    if-nez p1, :cond_1a

    goto :goto_7f

    .line 1
    :cond_1a
    invoke-static {p1}, Lm1/j;->b(Landroid/content/Context;)Lm1/j;

    move-result-object v2

    const-string p2, "getInstance(ctx)"

    .line 2
    invoke-static {v2, p2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    .line 3
    new-instance p2, Lv1/b;

    const-string v0, "check_install_apps"

    invoke-direct {p2, v2, v0}, Lv1/b;-><init>(Lm1/j;Ljava/lang/String;)V

    .line 4
    iget-object v0, v2, Lm1/j;->d:Lx1/a;

    check-cast v0, Lx1/b;

    .line 5
    iget-object v0, v0, Lx1/b;->a:Lv1/j;

    invoke-virtual {v0, p2}, Lv1/j;->execute(Ljava/lang/Runnable;)V

    const/4 p2, 0x0

    const-string v0, "game_centre"

    .line 6
    invoke-virtual {p1, v0, p2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p1

    const-string v0, "INSTALLED_APPS_CHECKED"

    invoke-interface {p1, v0, p2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p1

    if-eqz p1, :cond_4a

    .line 7
    sget-object p1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string p2, "debugbootrecboot already checked installed apps"

    invoke-virtual {p1, p2}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V

    goto :goto_7f

    :cond_4a
    new-instance p1, Ll1/j$a;

    const-class p2, Lcom/floydwiz/gamingcenter/services/CheckInstalledAppsWorker;

    invoke-direct {p1, p2}, Ll1/j$a;-><init>(Ljava/lang/Class;)V

    new-instance p2, Ll1/b$a;

    invoke-direct {p2}, Ll1/b$a;-><init>()V

    sget-object v0, Landroidx/work/d;->s:Landroidx/work/d;

    .line 8
    iput-object v0, p2, Ll1/b$a;->a:Landroidx/work/d;

    .line 9
    new-instance v0, Ll1/b;

    invoke-direct {v0, p2}, Ll1/b;-><init>(Ll1/b$a;)V

    .line 10
    iget-object p2, p1, Ll1/p$a;->b:Lu1/p;

    iput-object v0, p2, Lu1/p;->j:Ll1/b;

    .line 11
    invoke-virtual {p1}, Ll1/p$a;->a()Ll1/p;

    move-result-object p1

    const-string p2, "Builder(CheckInstalledAp\u2026                 .build()"

    invoke-static {p1, p2}, Lx/e;->e(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Ll1/j;

    const/4 v4, 0x1

    .line 12
    invoke-static {p1}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v5

    .line 13
    new-instance p1, Lm1/f;

    const/4 v6, 0x0

    const-string v3, "check_install_apps"

    move-object v1, p1

    .line 14
    invoke-direct/range {v1 .. v6}, Lm1/f;-><init>(Lm1/j;Ljava/lang/String;ILjava/util/List;Ljava/util/List;)V

    .line 15
    invoke-virtual {p1}, Lm1/f;->a()Ll1/k;

    :cond_7f
    :goto_7f
    return-void
.end method
