.class public final Lz5/o61;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static final f:Lz5/o61;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "StaticFieldLeak"
        }
    .end annotation
.end field


# instance fields
.field public a:Landroid/content/Context;

.field public b:Landroid/content/BroadcastReceiver;

.field public c:Z

.field public d:Z

.field public e:Lz5/s61;


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

    new-instance v0, Lz5/o61;

    invoke-direct {v0}, Lz5/o61;-><init>()V

    sput-object v0, Lz5/o61;->f:Lz5/o61;

    return-void
.end method

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

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

    return-void
.end method

.method public static a(Lz5/o61;Z)V
    .registers 3

    iget-boolean v0, p0, Lz5/o61;->d:Z

    if-eq v0, p1, :cond_2e

    iput-boolean p1, p0, Lz5/o61;->d:Z

    iget-boolean p1, p0, Lz5/o61;->c:Z

    if-eqz p1, :cond_2e

    invoke-virtual {p0}, Lz5/o61;->b()V

    iget-object p1, p0, Lz5/o61;->e:Lz5/s61;

    if-eqz p1, :cond_2e

    .line 1
    iget-boolean p0, p0, Lz5/o61;->d:Z

    xor-int/lit8 p0, p0, 0x1

    if-eqz p0, :cond_1d

    .line 2
    sget-object p0, Lz5/g71;->g:Lz5/g71;

    .line 3
    invoke-virtual {p0}, Lz5/g71;->b()V

    return-void

    .line 4
    :cond_1d
    sget-object p0, Lz5/g71;->g:Lz5/g71;

    .line 5
    invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    sget-object p0, Lz5/g71;->i:Landroid/os/Handler;

    if-eqz p0, :cond_2e

    sget-object p1, Lz5/g71;->k:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    const/4 p0, 0x0

    sput-object p0, Lz5/g71;->i:Landroid/os/Handler;

    :cond_2e
    return-void
.end method


# virtual methods
.method public final b()V
    .registers 7

    iget-boolean v0, p0, Lz5/o61;->d:Z

    .line 1
    sget-object v1, Lz5/n61;->c:Lz5/n61;

    .line 2
    invoke-virtual {v1}, Lz5/n61;->a()Ljava/util/Collection;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_c
    :goto_c
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_40

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lz5/k61;

    .line 3
    iget-object v2, v2, Lz5/k61;->d:Lz5/uq;

    .line 4
    iget-object v3, v2, Lz5/uq;->r:Ljava/lang/Object;

    check-cast v3, Lz5/o71;

    invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v3

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-eqz v3, :cond_28

    move v3, v5

    goto :goto_29

    :cond_28
    move v3, v4

    :goto_29
    if-eqz v3, :cond_c

    if-eq v5, v0, :cond_30

    const-string v3, "foregrounded"

    goto :goto_32

    :cond_30
    const-string v3, "backgrounded"

    .line 5
    :goto_32
    invoke-virtual {v2}, Lz5/uq;->c()Landroid/webkit/WebView;

    move-result-object v2

    new-array v5, v5, [Ljava/lang/Object;

    aput-object v3, v5, v4

    const-string v3, "setState"

    invoke-static {v2, v3, v5}, Lz5/r61;->a(Landroid/webkit/WebView;Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_c

    :cond_40
    return-void
.end method
