63 lines
2.1 KiB
Smali
63 lines
2.1 KiB
Smali
|
.class public Landroidx/work/impl/WorkDatabaseMigrations$WorkMigration9To10;
|
||
|
.super Landroidx/room/migration/Migration;
|
||
|
.source "WorkDatabaseMigrations.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/work/impl/WorkDatabaseMigrations;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "WorkMigration9To10"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final mContext:Landroid/content/Context;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;)V
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/content/Context;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
const/16 v0, 0x9
|
||
|
|
||
|
const/16 v1, 0xa
|
||
|
|
||
|
invoke-direct {p0, v0, v1}, Landroidx/room/migration/Migration;-><init>(II)V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/work/impl/WorkDatabaseMigrations$WorkMigration9To10;->mContext:Landroid/content/Context;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public migrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
||
|
.locals 1
|
||
|
.param p1 # Landroidx/sqlite/db/SupportSQLiteDatabase;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
const-string v0, "CREATE TABLE IF NOT EXISTS `Preference` (`key` TEXT NOT NULL, `long_value` INTEGER, PRIMARY KEY(`key`))"
|
||
|
|
||
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabaseMigrations$WorkMigration9To10;->mContext:Landroid/content/Context;
|
||
|
|
||
|
invoke-static {v0, p1}, Landroidx/work/impl/utils/PreferenceUtils;->migrateLegacyPreferences(Landroid/content/Context;Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabaseMigrations$WorkMigration9To10;->mContext:Landroid/content/Context;
|
||
|
|
||
|
invoke-static {v0, p1}, Landroidx/work/impl/utils/IdGenerator;->migrateLegacyIdGenerator(Landroid/content/Context;Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|