Start WorkManager on upgrade

This commit is contained in:
ByteHamster 2019-06-03 11:31:53 +02:00
parent f05132a716
commit d372aa9577
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import android.media.MediaMetadataRetriever;
import android.util.Log; import android.util.Log;
import de.danoeh.antennapod.core.feed.FeedItem; import de.danoeh.antennapod.core.feed.FeedItem;
import de.danoeh.antennapod.core.preferences.UserPreferences;
class DBUpgrader { class DBUpgrader {
/** /**
@ -288,6 +289,9 @@ class DBUpgrader {
db.execSQL("DROP TABLE " + PodDBAdapter.TABLE_NAME_FEED_IMAGES); db.execSQL("DROP TABLE " + PodDBAdapter.TABLE_NAME_FEED_IMAGES);
} }
if (oldVersion < 1070300) {
UserPreferences.restartUpdateAlarm();
}
} }
} }

View File

@ -1542,7 +1542,7 @@ public class PodDBAdapter {
*/ */
private static class PodDBHelper extends SQLiteOpenHelper { private static class PodDBHelper extends SQLiteOpenHelper {
private static final int VERSION = 1060596; private static final int VERSION = 1070300;
private final Context context; private final Context context;