g.smali

.class public final Ln5/g;
.super Landroid/content/BroadcastReceiver;
.source "com.google.firebase:firebase-messaging@@20.2.0"


# annotations
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation


# instance fields
.field public a:Ln5/h;
    .annotation build Landroidx/annotation/GuardedBy;
        value = "this"
    .end annotation

    .annotation build Landroidx/annotation/Nullable;
    .end annotation
.end field

.field public final synthetic b:Ln5/h;


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

    return-void
.end method

.method public constructor <init>(Ln5/h;Ln5/h;)V
    .registers 3

    iput-object p1, p0, Ln5/g;->b:Ln5/h;

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

    iput-object p2, p0, Ln5/g;->a:Ln5/h;

    return-void
.end method


# virtual methods
.method public final declared-synchronized onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 6

    monitor-enter p0

    :try_start_1
    iget-object p2, p0, Ln5/g;->a:Ln5/h;
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_33

    if-nez p2, :cond_7

    monitor-exit p0

    return-void

    :cond_7
    :try_start_7
    iget-object p2, p0, Ln5/g;->a:Ln5/h;

    invoke-static {p2}, Ln5/h;->a(Ln5/h;)Z

    move-result p2
    :try_end_d
    .catchall {:try_start_7 .. :try_end_d} :catchall_33

    if-nez p2, :cond_11

    monitor-exit p0

    return-void

    :cond_11
    :try_start_11
    invoke-static {}, Ln5/h;->b()Z

    move-result p2

    if-eqz p2, :cond_1e

    const-string p2, "FirebaseMessaging"

    const-string v0, "Connectivity changed. Starting background sync."

    invoke-static {p2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1e
    iget-object p2, p0, Ln5/g;->a:Ln5/h;

    invoke-static {p2}, Ln5/h;->b(Ln5/h;)Ln5/f;

    move-result-object p2

    iget-object v0, p0, Ln5/g;->a:Ln5/h;

    const-wide/16 v1, 0x0

    invoke-virtual {p2, v0, v1, v2}, Ln5/f;->a(Ljava/lang/Runnable;J)V

    invoke-virtual {p1, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    const/4 p1, 0x0

    iput-object p1, p0, Ln5/g;->a:Ln5/h;
    :try_end_31
    .catchall {:try_start_11 .. :try_end_31} :catchall_33

    monitor-exit p0

    return-void

    :catchall_33
    move-exception p1

    monitor-exit p0

    throw p1
.end method