diff options
author | ByteHamster <info@bytehamster.com> | 2019-12-12 09:39:40 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-12-12 09:41:35 +0100 |
commit | 29f468b332e78ff2ecb35ec704297cfc8fcd828f (patch) | |
tree | 03fb7814179d7cd031fd1cf38daaf59382e8aefa | |
parent | a99a41e3bb429632ecb0b28ef3d9d0dbbad826f9 (diff) | |
download | AntennaPod-29f468b332e78ff2ecb35ec704297cfc8fcd828f.zip |
Make sure to create notification channels
3 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java index d0321ddd2..4686f0303 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java @@ -24,7 +24,6 @@ public class PreferenceUpgrader { int newVersion = BuildConfig.VERSION_CODE; if (oldVersion != newVersion) { - NotificationUtils.createChannels(context); AutoUpdateManager.restartUpdateAlarm(); upgrade(oldVersion); diff --git a/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java index 03ce82140..54cd84b43 100644 --- a/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java @@ -8,6 +8,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.storage.PodDBAdapter; import de.danoeh.antennapod.core.util.NetworkUtils; import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup; +import de.danoeh.antennapod.core.util.gui.NotificationUtils; /** * Stores callbacks for core classes like Services, DB classes etc. and other configuration variables. @@ -44,6 +45,7 @@ public class ClientConfig { NetworkUtils.init(context); SleepTimerPreferences.init(context); RxJavaErrorHandlerSetup.setupRxJavaErrorHandler(); + NotificationUtils.createChannels(context); initialized = true; } diff --git a/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java index 800222ada..55d804203 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java @@ -10,6 +10,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.storage.PodDBAdapter; import de.danoeh.antennapod.core.util.NetworkUtils; import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup; +import de.danoeh.antennapod.core.util.gui.NotificationUtils; /** * Stores callbacks for core classes like Services, DB classes etc. and other configuration variables. @@ -58,6 +59,7 @@ public class ClientConfig { } SleepTimerPreferences.init(context); RxJavaErrorHandlerSetup.setupRxJavaErrorHandler(); + NotificationUtils.createChannels(context); initialized = true; } |