Rabbit-R1/android (non root)/smali/smali_classes2/androidx/work/impl/RescheduleMigration.smali
2024-05-21 17:08:36 -04:00

129 lines
3.8 KiB
Smali

.class public final Landroidx/work/impl/RescheduleMigration;
.super Landroidx/room/migration/Migration;
.source "WorkDatabaseMigrations.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0007J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\u000c\u001a\u00020\rH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\t\u00a8\u0006\u000e"
}
d2 = {
"Landroidx/work/impl/RescheduleMigration;",
"Landroidx/room/migration/Migration;",
"mContext",
"Landroid/content/Context;",
"startVersion",
"",
"endVersion",
"(Landroid/content/Context;II)V",
"getMContext",
"()Landroid/content/Context;",
"migrate",
"",
"db",
"Landroidx/sqlite/db/SupportSQLiteDatabase;",
"work-runtime_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final mContext:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;II)V
.locals 1
const-string v0, "mContext"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 240
invoke-direct {p0, p2, p3}, Landroidx/room/migration/Migration;-><init>(II)V
iput-object p1, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public final getMContext()Landroid/content/Context;
.locals 0
iget-object p0, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context;
return-object p0
.end method
.method public migrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
.locals 4
const-string v0, "db"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 242
iget v0, p0, Landroidx/work/impl/RescheduleMigration;->endVersion:I
const/16 v1, 0xa
const/4 v2, 0x1
const-string v3, "reschedule_needed"
if-lt v0, v1, :cond_0
.line 245
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
filled-new-array {v3, p0}, [Ljava/lang/Object;
move-result-object p0
const-string v0, "INSERT OR REPLACE INTO `Preference` (`key`, `long_value`) VALUES (@key, @long_value)"
.line 243
invoke-interface {p1, v0, p0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_0
iget-object p0, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context;
const-string p1, "androidx.work.util.preferences"
const/4 v0, 0x0
.line 248
invoke-virtual {p0, p1, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
.line 255
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
.line 256
invoke-interface {p0, v3, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p0
.line 257
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
:goto_0
return-void
.end method