.class public Lf1/c;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Le1/b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lf1/c$a;
    }
.end annotation


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

.field public final s:Ljava/lang/String;

.field public final t:Le1/b$a;

.field public final u:Z

.field public final v:Ljava/lang/Object;

.field public w:Lf1/c$a;

.field public x:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Le1/b$a;Z)V
    .registers 5

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

    iput-object p1, p0, Lf1/c;->r:Landroid/content/Context;

    iput-object p2, p0, Lf1/c;->s:Ljava/lang/String;

    iput-object p3, p0, Lf1/c;->t:Le1/b$a;

    iput-boolean p4, p0, Lf1/c;->u:Z

    new-instance p1, Ljava/lang/Object;

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

    iput-object p1, p0, Lf1/c;->v:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public S()Le1/a;
    .registers 2

    invoke-virtual {p0}, Lf1/c;->b()Lf1/c$a;

    move-result-object v0

    invoke-virtual {v0}, Lf1/c$a;->g()Le1/a;

    move-result-object v0

    return-object v0
.end method

.method public final b()Lf1/c$a;
    .registers 7

    iget-object v0, p0, Lf1/c;->v:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lf1/c;->w:Lf1/c$a;

    if-nez v1, :cond_43

    const/4 v1, 0x1

    new-array v1, v1, [Lf1/a;

    iget-object v2, p0, Lf1/c;->s:Ljava/lang/String;

    if-eqz v2, :cond_2f

    iget-boolean v2, p0, Lf1/c;->u:Z

    if-eqz v2, :cond_2f

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lf1/c;->r:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getNoBackupFilesDir()Ljava/io/File;

    move-result-object v3

    iget-object v4, p0, Lf1/c;->s:Ljava/lang/String;

    invoke-direct {v2, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    new-instance v3, Lf1/c$a;

    iget-object v4, p0, Lf1/c;->r:Landroid/content/Context;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    iget-object v5, p0, Lf1/c;->t:Le1/b$a;

    invoke-direct {v3, v4, v2, v1, v5}, Lf1/c$a;-><init>(Landroid/content/Context;Ljava/lang/String;[Lf1/a;Le1/b$a;)V

    iput-object v3, p0, Lf1/c;->w:Lf1/c$a;

    goto :goto_3c

    :cond_2f
    new-instance v2, Lf1/c$a;

    iget-object v3, p0, Lf1/c;->r:Landroid/content/Context;

    iget-object v4, p0, Lf1/c;->s:Ljava/lang/String;

    iget-object v5, p0, Lf1/c;->t:Le1/b$a;

    invoke-direct {v2, v3, v4, v1, v5}, Lf1/c$a;-><init>(Landroid/content/Context;Ljava/lang/String;[Lf1/a;Le1/b$a;)V

    iput-object v2, p0, Lf1/c;->w:Lf1/c$a;

    :goto_3c
    iget-object v1, p0, Lf1/c;->w:Lf1/c$a;

    iget-boolean v2, p0, Lf1/c;->x:Z

    invoke-virtual {v1, v2}, Landroid/database/sqlite/SQLiteOpenHelper;->setWriteAheadLoggingEnabled(Z)V

    :cond_43
    iget-object v1, p0, Lf1/c;->w:Lf1/c$a;

    monitor-exit v0

    return-object v1

    :catchall_47
    move-exception v1

    monitor-exit v0
    :try_end_49
    .catchall {:try_start_3 .. :try_end_49} :catchall_47

    throw v1
.end method

.method public close()V
    .registers 2

    invoke-virtual {p0}, Lf1/c;->b()Lf1/c$a;

    move-result-object v0

    invoke-virtual {v0}, Lf1/c$a;->close()V

    return-void
.end method

.method public getDatabaseName()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lf1/c;->s:Ljava/lang/String;

    return-object v0
.end method

.method public setWriteAheadLoggingEnabled(Z)V
    .registers 4

    iget-object v0, p0, Lf1/c;->v:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lf1/c;->w:Lf1/c$a;

    if-eqz v1, :cond_a

    invoke-virtual {v1, p1}, Landroid/database/sqlite/SQLiteOpenHelper;->setWriteAheadLoggingEnabled(Z)V

    :cond_a
    iput-boolean p1, p0, Lf1/c;->x:Z

    monitor-exit v0

    return-void

    :catchall_e
    move-exception p1

    monitor-exit v0
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_e

    throw p1
.end method
