d.smali

.class public final Lcom/bumptech/glide/manager/d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/bumptech/glide/manager/b;


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

.field public final b:Lcom/bumptech/glide/manager/b$a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/manager/b$a;)V
    .registers 3

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

    .line 2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/bumptech/glide/manager/d;->a:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/bumptech/glide/manager/d;->b:Lcom/bumptech/glide/manager/b$a;

    return-void
.end method


# virtual methods
.method public final onDestroy()V
    .registers 1

    return-void
.end method

.method public final onStart()V
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/bumptech/glide/manager/d;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/bumptech/glide/manager/o;->a(Landroid/content/Context;)Lcom/bumptech/glide/manager/o;

    move-result-object v0

    iget-object v1, p0, Lcom/bumptech/glide/manager/d;->b:Lcom/bumptech/glide/manager/b$a;

    .line 2
    monitor-enter v0

    .line 3
    :try_start_9
    iget-object v2, v0, Lcom/bumptech/glide/manager/o;->b:Ljava/util/HashSet;

    invoke-virtual {v2, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 4
    iget-boolean v1, v0, Lcom/bumptech/glide/manager/o;->c:Z

    if-nez v1, :cond_23

    iget-object v1, v0, Lcom/bumptech/glide/manager/o;->b:Ljava/util/HashSet;

    invoke-virtual {v1}, Ljava/util/HashSet;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_1b

    goto :goto_23

    .line 5
    :cond_1b
    iget-object v1, v0, Lcom/bumptech/glide/manager/o;->a:Lcom/bumptech/glide/manager/o$c;

    invoke-interface {v1}, Lcom/bumptech/glide/manager/o$c;->register()Z

    move-result v1

    iput-boolean v1, v0, Lcom/bumptech/glide/manager/o;->c:Z
    :try_end_23
    .catchall {:try_start_9 .. :try_end_23} :catchall_25

    .line 6
    :cond_23
    :goto_23
    monitor-exit v0

    return-void

    :catchall_25
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public final onStop()V
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/bumptech/glide/manager/d;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/bumptech/glide/manager/o;->a(Landroid/content/Context;)Lcom/bumptech/glide/manager/o;

    move-result-object v0

    iget-object v1, p0, Lcom/bumptech/glide/manager/d;->b:Lcom/bumptech/glide/manager/b$a;

    .line 2
    monitor-enter v0

    .line 3
    :try_start_9
    iget-object v2, v0, Lcom/bumptech/glide/manager/o;->b:Ljava/util/HashSet;

    invoke-virtual {v2, v1}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z

    .line 4
    iget-boolean v1, v0, Lcom/bumptech/glide/manager/o;->c:Z

    if-eqz v1, :cond_23

    iget-object v1, v0, Lcom/bumptech/glide/manager/o;->b:Ljava/util/HashSet;

    invoke-virtual {v1}, Ljava/util/HashSet;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1b

    goto :goto_23

    .line 5
    :cond_1b
    iget-object v1, v0, Lcom/bumptech/glide/manager/o;->a:Lcom/bumptech/glide/manager/o$c;

    invoke-interface {v1}, Lcom/bumptech/glide/manager/o$c;->unregister()V

    const/4 v1, 0x0

    .line 6
    iput-boolean v1, v0, Lcom/bumptech/glide/manager/o;->c:Z
    :try_end_23
    .catchall {:try_start_9 .. :try_end_23} :catchall_25

    .line 7
    :cond_23
    :goto_23
    monitor-exit v0

    return-void

    :catchall_25
    move-exception v1

    monitor-exit v0

    throw v1
.end method