diff --git a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java index 262be1cf860..d731f2f5ec1 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java +++ b/app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java @@ -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; @@ -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. *

@@ -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) {