apkfuckery/com.discord/smali/androidx/room/SQLiteCopyOpenHelperFactory.smali

82 lines
3 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Landroidx/room/SQLiteCopyOpenHelperFactory;
.super Ljava/lang/Object;
.source "SQLiteCopyOpenHelperFactory.java"
# interfaces
.implements Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
# instance fields
2020-11-14 03:19:56 +00:00
.field private final mCopyFromAssetPath:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2020-11-14 03:19:56 +00:00
.field private final mCopyFromFile:Ljava/io/File;
2020-11-12 02:11:44 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
2020-11-14 03:19:56 +00:00
.field private final mDelegate:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
2020-11-12 02:11:44 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/io/File;Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/io/File;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mCopyFromAssetPath:Ljava/lang/String;
iput-object p2, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mCopyFromFile:Ljava/io/File;
iput-object p3, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mDelegate:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
return-void
.end method
# virtual methods
.method public create(Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;)Landroidx/sqlite/db/SupportSQLiteOpenHelper;
.locals 7
new-instance v6, Landroidx/room/SQLiteCopyOpenHelper;
iget-object v1, p1, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;->context:Landroid/content/Context;
iget-object v2, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mCopyFromAssetPath:Ljava/lang/String;
iget-object v3, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mCopyFromFile:Ljava/io/File;
iget-object v0, p1, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;->callback:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;
iget v4, v0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;->version:I
iget-object v0, p0, Landroidx/room/SQLiteCopyOpenHelperFactory;->mDelegate:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
invoke-interface {v0, p1}, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;->create(Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;)Landroidx/sqlite/db/SupportSQLiteOpenHelper;
move-result-object v5
move-object v0, v6
invoke-direct/range {v0 .. v5}, Landroidx/room/SQLiteCopyOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;ILandroidx/sqlite/db/SupportSQLiteOpenHelper;)V
return-object v6
.end method