Skip to content

Commit

Permalink
Remove settings migration
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr committed Mar 23, 2024
1 parent 2fbe9c0 commit 9a3c96c
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.schabi.newpipe.error.ErrorUtil;
import org.schabi.newpipe.error.UserAction;
import org.schabi.newpipe.util.DeviceUtils;
import org.schabi.newpipe.util.ReleaseVersionUtil;

import java.util.Collections;
import java.util.HashSet;
Expand Down Expand Up @@ -144,16 +143,6 @@ protected void migrate(@NonNull final Context context) {
}
};

public static final Migration MIGRATION_6_7 = new Migration(6, 7) {
@Override
protected void migrate(@NonNull final Context context) {
final boolean isAutoUpdateCheckEnabled = sp.getBoolean("update_app_key", true);
if (isAutoUpdateCheckEnabled && ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
UpdateSettingsFragment.askForConsentToUpdateChecks(context);
}
}
};

/**
* List of all implemented migrations.
* <p>
Expand All @@ -167,13 +156,12 @@ protected void migrate(@NonNull final Context context) {
MIGRATION_3_4,
MIGRATION_4_5,
MIGRATION_5_6,
MIGRATION_6_7,
};

/**
* Version number for preferences. Must be incremented every time a migration is necessary.
*/
private static final int VERSION = 7;
private static final int VERSION = 6;


public static void runMigrationsIfNeeded(@NonNull final Context context) {
Expand Down

0 comments on commit 9a3c96c

Please sign in to comment.