Fixed db cleanup tests

Cleanup is currently just enabled if autodownload is enabled
This commit is contained in:
ByteHamster 2019-11-28 12:14:09 +01:00
parent 21ff83158d
commit 816a885f6b
1 changed files with 1 additions and 0 deletions

View File

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