Make sure to create notification channels

This commit is contained in:
ByteHamster 2019-12-12 09:39:40 +01:00
parent a99a41e3bb
commit 29f468b332
3 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,6 @@ public class PreferenceUpgrader {
int newVersion = BuildConfig.VERSION_CODE;
if (oldVersion != newVersion) {
NotificationUtils.createChannels(context);
AutoUpdateManager.restartUpdateAlarm();
upgrade(oldVersion);

View File

@ -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;
}

View File

@ -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;
}