- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
29 lines
1.0 KiB
Java
29 lines
1.0 KiB
Java
package androidx.work.impl;
|
|
|
|
import android.content.Context;
|
|
import androidx.room.migration.Migration;
|
|
import androidx.sqlite.db.SupportSQLiteDatabase;
|
|
import androidx.work.impl.utils.IdGeneratorKt;
|
|
import androidx.work.impl.utils.PreferenceUtils;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class WorkMigration9To10 extends Migration {
|
|
private final Context context;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public WorkMigration9To10(Context context) {
|
|
super(9, 10);
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
this.context = context;
|
|
}
|
|
|
|
@Override // androidx.room.migration.Migration
|
|
public void migrate(SupportSQLiteDatabase db) {
|
|
Intrinsics.checkNotNullParameter(db, "db");
|
|
db.execSQL(PreferenceUtils.CREATE_PREFERENCE);
|
|
PreferenceUtils.migrateLegacyPreferences(this.context, db);
|
|
IdGeneratorKt.migrateLegacyIdGenerator(this.context, db);
|
|
}
|
|
}
|