Fixed db cleanup tests
Cleanup is currently just enabled if autodownload is enabled
This commit is contained in:
parent
21ff83158d
commit
816a885f6b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue