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

# interfaces
.implements Landroid/database/DatabaseErrorHandler;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lf1/c$a;-><init>(Landroid/content/Context;Ljava/lang/String;[Lf1/a;Le1/b$a;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = null
.end annotation


# instance fields
.field public final synthetic a:Le1/b$a;

.field public final synthetic b:[Lf1/a;


# direct methods
.method public constructor <init>(Le1/b$a;[Lf1/a;)V
    .registers 3

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

    iput-object p2, p0, Lf1/c$a$a;->b:[Lf1/a;

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

    return-void
.end method


# virtual methods
.method public onCorruption(Landroid/database/sqlite/SQLiteDatabase;)V
    .registers 5

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

    iget-object v1, p0, Lf1/c$a$a;->b:[Lf1/a;

    invoke-static {v1, p1}, Lf1/c$a;->e([Lf1/a;Landroid/database/sqlite/SQLiteDatabase;)Lf1/a;

    move-result-object p1

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Corruption reported by sqlite on database: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lf1/a;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "SupportSQLite"

    invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 2
    iget-object v1, p1, Lf1/a;->r:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v1}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z

    move-result v1

    if-nez v1, :cond_2e

    goto :goto_7a

    :cond_2e
    const/4 v1, 0x0

    .line 3
    :try_start_2f
    iget-object v2, p1, Lf1/a;->r:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->getAttachedDbs()Ljava/util/List;

    move-result-object v1
    :try_end_35
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_2f .. :try_end_35} :catch_38
    .catchall {:try_start_2f .. :try_end_35} :catchall_36

    goto :goto_38

    :catchall_36
    move-exception v2

    goto :goto_3e

    .line 4
    :catch_38
    :goto_38
    :try_start_38
    iget-object v2, p1, Lf1/a;->r:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->close()V
    :try_end_3d
    .catch Ljava/io/IOException; {:try_start_38 .. :try_end_3d} :catch_60
    .catchall {:try_start_38 .. :try_end_3d} :catchall_36

    goto :goto_60

    :goto_3e
    if-eqz v1, :cond_58

    .line 5
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

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

    move-result v1

    if-eqz v1, :cond_5f

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

    move-result-object v1

    check-cast v1, Landroid/util/Pair;

    iget-object v1, v1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Le1/b$a;->a(Ljava/lang/String;)V

    goto :goto_44

    :cond_58
    invoke-virtual {p1}, Lf1/a;->b()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Le1/b$a;->a(Ljava/lang/String;)V

    :cond_5f
    throw v2

    :catch_60
    :goto_60
    if-eqz v1, :cond_7a

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

    move-result-object p1

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

    move-result v1

    if-eqz v1, :cond_81

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

    move-result-object v1

    check-cast v1, Landroid/util/Pair;

    iget-object v1, v1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Le1/b$a;->a(Ljava/lang/String;)V

    goto :goto_66

    :cond_7a
    :goto_7a
    invoke-virtual {p1}, Lf1/a;->b()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Le1/b$a;->a(Ljava/lang/String;)V

    :cond_81
    return-void
.end method
