.class public Lz3/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz3/i;


# instance fields
.field public final r:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Lz3/j;",
            ">;"
        }
    .end annotation
.end field

.field public s:Z

.field public t:Z


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

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

    new-instance v0, Ljava/util/WeakHashMap;

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

    invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;

    move-result-object v0

    iput-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    return-void
.end method


# virtual methods
.method public a(Lz3/j;)V
    .registers 3

    iget-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public b(Lz3/j;)V
    .registers 3

    iget-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    iget-boolean v0, p0, Lz3/a;->t:Z

    if-eqz v0, :cond_d

    invoke-interface {p1}, Lz3/j;->onDestroy()V

    goto :goto_18

    :cond_d
    iget-boolean v0, p0, Lz3/a;->s:Z

    if-eqz v0, :cond_15

    invoke-interface {p1}, Lz3/j;->onStart()V

    goto :goto_18

    :cond_15
    invoke-interface {p1}, Lz3/j;->onStop()V

    :goto_18
    return-void
.end method

.method public c()V
    .registers 3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lz3/a;->t:Z

    iget-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    invoke-static {v0}, Lg4/j;->e(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1f

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

    move-result-object v1

    check-cast v1, Lz3/j;

    invoke-interface {v1}, Lz3/j;->onDestroy()V

    goto :goto_f

    :cond_1f
    return-void
.end method

.method public d()V
    .registers 3

    const/4 v0, 0x1

    iput-boolean v0, p0, Lz3/a;->s:Z

    iget-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    invoke-static {v0}, Lg4/j;->e(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1f

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

    move-result-object v1

    check-cast v1, Lz3/j;

    invoke-interface {v1}, Lz3/j;->onStart()V

    goto :goto_f

    :cond_1f
    return-void
.end method

.method public e()V
    .registers 3

    const/4 v0, 0x0

    iput-boolean v0, p0, Lz3/a;->s:Z

    iget-object v0, p0, Lz3/a;->r:Ljava/util/Set;

    invoke-static {v0}, Lg4/j;->e(Ljava/util/Collection;)Ljava/util/List;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1f

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

    move-result-object v1

    check-cast v1, Lz3/j;

    invoke-interface {v1}, Lz3/j;->onStop()V

    goto :goto_f

    :cond_1f
    return-void
.end method
