- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
30 lines
1.3 KiB
Java
30 lines
1.3 KiB
Java
package androidx.room;
|
|
|
|
import androidx.sqlite.db.SupportSQLiteOpenHelper;
|
|
import java.io.File;
|
|
import java.io.InputStream;
|
|
import java.util.concurrent.Callable;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class SQLiteCopyOpenHelperFactory implements SupportSQLiteOpenHelper.Factory {
|
|
private final String mCopyFromAssetPath;
|
|
private final File mCopyFromFile;
|
|
private final Callable<InputStream> mCopyFromInputStream;
|
|
private final SupportSQLiteOpenHelper.Factory mDelegate;
|
|
|
|
public SQLiteCopyOpenHelperFactory(String str, File file, Callable<InputStream> callable, SupportSQLiteOpenHelper.Factory mDelegate) {
|
|
Intrinsics.checkNotNullParameter(mDelegate, "mDelegate");
|
|
this.mCopyFromAssetPath = str;
|
|
this.mCopyFromFile = file;
|
|
this.mCopyFromInputStream = callable;
|
|
this.mDelegate = mDelegate;
|
|
}
|
|
|
|
@Override // androidx.sqlite.db.SupportSQLiteOpenHelper.Factory
|
|
public SupportSQLiteOpenHelper create(SupportSQLiteOpenHelper.Configuration configuration) {
|
|
Intrinsics.checkNotNullParameter(configuration, "configuration");
|
|
return new SQLiteCopyOpenHelper(configuration.context, this.mCopyFromAssetPath, this.mCopyFromFile, this.mCopyFromInputStream, configuration.callback.version, this.mDelegate.create(configuration));
|
|
}
|
|
}
|