From 816a885f6b2cded1e746778a78559035ac1aab7a Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 28 Nov 2019 12:14:09 +0100 Subject: [PATCH] Fixed db cleanup tests Cleanup is currently just enabled if autodownload is enabled --- .../java/de/test/antennapod/storage/DBCleanupTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/androidTest/java/de/test/antennapod/storage/DBCleanupTests.java b/app/src/androidTest/java/de/test/antennapod/storage/DBCleanupTests.java index 1acb96d01..88d78fd14 100644 --- a/app/src/androidTest/java/de/test/antennapod/storage/DBCleanupTests.java +++ b/app/src/androidTest/java/de/test/antennapod/storage/DBCleanupTests.java @@ -82,6 +82,7 @@ public class DBCleanupTests { SharedPreferences.Editor prefEdit = PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext()).edit(); prefEdit.putString(UserPreferences.PREF_EPISODE_CACHE_SIZE, Integer.toString(EPISODE_CACHE_SIZE)); prefEdit.putString(UserPreferences.PREF_EPISODE_CLEANUP, Integer.toString(cleanupAlgorithm)); + prefEdit.putBoolean(UserPreferences.PREF_ENABLE_AUTODL, true); prefEdit.commit(); UserPreferences.init(context);