fix code formatting

This commit is contained in:
orionlee 2018-11-14 14:53:51 -08:00
parent 5d75fd645d
commit eff2f154b5
2 changed files with 3 additions and 3 deletions

View File

@ -58,13 +58,13 @@ class UpdateManager {
}
private static void onUpgrade(final int oldVersionCode, final int newVersionCode) {
if(oldVersionCode < 1050004) {
if (oldVersionCode < 1050004) {
if(MediaPlayer.isPrestoLibraryInstalled(context) && Build.VERSION.SDK_INT >= 16) {
UserPreferences.enableSonic();
}
}
if(oldVersionCode < 1070196) {
if (oldVersionCode < 1070196) {
// migrate episode cleanup value (unit changed from days to hours)
int oldValueInDays = UserPreferences.getEpisodeCleanupValue();
if (oldValueInDays > 0) {

View File

@ -17,4 +17,4 @@ public class APCleanupAlgorithmTest {
Date resActual = algo.calcMostRecentDateForDeletion(curDateForTest);
assertEquals("cutoff for retaining most recent 1 day", resExpected, resActual);
}
}
}