- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
34 lines
1.2 KiB
Java
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();
|
|
}
|
|
}
|
|
}
|