Files
rr3-apk/decompiled/sources/androidx/work/impl/RescheduleMigration.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

34 lines
1.2 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.PreferenceUtils;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class RescheduleMigration extends Migration {
private final Context mContext;
public final Context getMContext() {
return this.mContext;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RescheduleMigration(Context mContext, int i, int i2) {
super(i, i2);
Intrinsics.checkNotNullParameter(mContext, "mContext");
this.mContext = mContext;
}
@Override // androidx.room.migration.Migration
public void migrate(SupportSQLiteDatabase db) {
Intrinsics.checkNotNullParameter(db, "db");
if (this.endVersion >= 10) {
db.execSQL(PreferenceUtils.INSERT_PREFERENCE, new Object[]{PreferenceUtils.KEY_RESCHEDULE_NEEDED, 1});
} else {
this.mContext.getSharedPreferences(PreferenceUtils.PREFERENCES_FILE_NAME, 0).edit().putBoolean(PreferenceUtils.KEY_RESCHEDULE_NEEDED, true).apply();
}
}
}