From d372aa957781127a9d20ac1e3127c886379100d1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 3 Jun 2019 11:31:53 +0200 Subject: [PATCH] Start WorkManager on upgrade --- .../java/de/danoeh/antennapod/core/storage/DBUpgrader.java | 4 ++++ .../java/de/danoeh/antennapod/core/storage/PodDBAdapter.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBUpgrader.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBUpgrader.java index 0beb765e7..6ea72e1f6 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBUpgrader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBUpgrader.java @@ -7,6 +7,7 @@ import android.media.MediaMetadataRetriever; import android.util.Log; import de.danoeh.antennapod.core.feed.FeedItem; +import de.danoeh.antennapod.core.preferences.UserPreferences; class DBUpgrader { /** @@ -288,6 +289,9 @@ class DBUpgrader { db.execSQL("DROP TABLE " + PodDBAdapter.TABLE_NAME_FEED_IMAGES); } + if (oldVersion < 1070300) { + UserPreferences.restartUpdateAlarm(); + } } } diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java index 405c246c9..41463d4ba 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java @@ -1542,7 +1542,7 @@ public class PodDBAdapter { */ private static class PodDBHelper extends SQLiteOpenHelper { - private static final int VERSION = 1060596; + private static final int VERSION = 1070300; private final Context context;