mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
33 lines
1.8 KiB
Java
33 lines
1.8 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.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"Landroidx/work/impl/WorkMigration9To10;", "Landroidx/room/migration/Migration;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "migrate", "", "db", "Landroidx/sqlite/db/SupportSQLiteDatabase;", "work-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes14.dex */
|
|
public final class WorkMigration9To10 extends Migration {
|
|
|
|
@NotNull
|
|
private final Context context;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public WorkMigration9To10(@NotNull Context context) {
|
|
super(9, 10);
|
|
context.getClass();
|
|
this.context = context;
|
|
}
|
|
|
|
@Override // androidx.room.migration.Migration
|
|
public void migrate(@NotNull SupportSQLiteDatabase db) {
|
|
db.getClass();
|
|
db.execSQL(PreferenceUtils.CREATE_PREFERENCE);
|
|
PreferenceUtils.migrateLegacyPreferences(this.context, db);
|
|
IdGeneratorKt.migrateLegacyIdGenerator(this.context, db);
|
|
}
|
|
}
|