Skip to content

Commit 9a3c96c

Browse files
committed
Remove settings migration
1 parent 2fbe9c0 commit 9a3c96c

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/src/main/java/org/schabi/newpipe/settings/SettingMigrations.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.schabi.newpipe.error.ErrorUtil;
1414
import org.schabi.newpipe.error.UserAction;
1515
import org.schabi.newpipe.util.DeviceUtils;
16-
import org.schabi.newpipe.util.ReleaseVersionUtil;
1716

1817
import java.util.Collections;
1918
import java.util.HashSet;
@@ -144,16 +143,6 @@ protected void migrate(@NonNull final Context context) {
144143
}
145144
};
146145

147-
public static final Migration MIGRATION_6_7 = new Migration(6, 7) {
148-
@Override
149-
protected void migrate(@NonNull final Context context) {
150-
final boolean isAutoUpdateCheckEnabled = sp.getBoolean("update_app_key", true);
151-
if (isAutoUpdateCheckEnabled && ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
152-
UpdateSettingsFragment.askForConsentToUpdateChecks(context);
153-
}
154-
}
155-
};
156-
157146
/**
158147
* List of all implemented migrations.
159148
* <p>
@@ -167,13 +156,12 @@ protected void migrate(@NonNull final Context context) {
167156
MIGRATION_3_4,
168157
MIGRATION_4_5,
169158
MIGRATION_5_6,
170-
MIGRATION_6_7,
171159
};
172160

173161
/**
174162
* Version number for preferences. Must be incremented every time a migration is necessary.
175163
*/
176-
private static final int VERSION = 7;
164+
private static final int VERSION = 6;
177165

178166

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

0 commit comments

Comments
 (0)