- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
47 lines
1.5 KiB
Java
47 lines
1.5 KiB
Java
package com.ironsource;
|
|
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.database.sqlite.SQLiteOpenHelper;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class r9 {
|
|
public static final a a = new a(null);
|
|
private static final Object b = new Object();
|
|
|
|
public static final class a {
|
|
private a() {
|
|
}
|
|
|
|
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ SQLiteDatabase a(r9 r9Var, boolean z, SQLiteOpenHelper sQLiteOpenHelper, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z = false;
|
|
}
|
|
return r9Var.a(z, sQLiteOpenHelper);
|
|
}
|
|
|
|
public final SQLiteDatabase a(SQLiteOpenHelper sqliteOpenHelper) {
|
|
Intrinsics.checkNotNullParameter(sqliteOpenHelper, "sqliteOpenHelper");
|
|
return a(this, false, sqliteOpenHelper, 1, null);
|
|
}
|
|
|
|
public final SQLiteDatabase a(boolean z, SQLiteOpenHelper sqliteOpenHelper) {
|
|
SQLiteDatabase writableDatabase;
|
|
Intrinsics.checkNotNullParameter(sqliteOpenHelper, "sqliteOpenHelper");
|
|
synchronized (b) {
|
|
try {
|
|
writableDatabase = z ? sqliteOpenHelper.getWritableDatabase() : sqliteOpenHelper.getReadableDatabase();
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
return writableDatabase;
|
|
}
|
|
}
|