summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-12-12 09:39:40 +0100
committerByteHamster <info@bytehamster.com>2019-12-12 09:41:35 +0100
commit29f468b332e78ff2ecb35ec704297cfc8fcd828f (patch)
tree03fb7814179d7cd031fd1cf38daaf59382e8aefa
parenta99a41e3bb429632ecb0b28ef3d9d0dbbad826f9 (diff)
downloadAntennaPod-29f468b332e78ff2ecb35ec704297cfc8fcd828f.zip
Make sure to create notification channels
-rw-r--r--app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java1
-rw-r--r--core/src/free/java/de/danoeh/antennapod/core/ClientConfig.java2
-rw-r--r--core/src/play/java/de/danoeh/antennapod/core/ClientConfig.java2
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;
}