Make sure to create notification channels
This commit is contained in:
parent
a99a41e3bb
commit
29f468b332
@ -24,7 +24,6 @@ public class PreferenceUpgrader {
|
|||||||
int newVersion = BuildConfig.VERSION_CODE;
|
int newVersion = BuildConfig.VERSION_CODE;
|
||||||
|
|
||||||
if (oldVersion != newVersion) {
|
if (oldVersion != newVersion) {
|
||||||
NotificationUtils.createChannels(context);
|
|
||||||
AutoUpdateManager.restartUpdateAlarm();
|
AutoUpdateManager.restartUpdateAlarm();
|
||||||
|
|
||||||
upgrade(oldVersion);
|
upgrade(oldVersion);
|
||||||
|
@ -8,6 +8,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences;
|
|||||||
import de.danoeh.antennapod.core.storage.PodDBAdapter;
|
import de.danoeh.antennapod.core.storage.PodDBAdapter;
|
||||||
import de.danoeh.antennapod.core.util.NetworkUtils;
|
import de.danoeh.antennapod.core.util.NetworkUtils;
|
||||||
import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup;
|
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.
|
* Stores callbacks for core classes like Services, DB classes etc. and other configuration variables.
|
||||||
@ -44,6 +45,7 @@ public class ClientConfig {
|
|||||||
NetworkUtils.init(context);
|
NetworkUtils.init(context);
|
||||||
SleepTimerPreferences.init(context);
|
SleepTimerPreferences.init(context);
|
||||||
RxJavaErrorHandlerSetup.setupRxJavaErrorHandler();
|
RxJavaErrorHandlerSetup.setupRxJavaErrorHandler();
|
||||||
|
NotificationUtils.createChannels(context);
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ import de.danoeh.antennapod.core.preferences.UserPreferences;
|
|||||||
import de.danoeh.antennapod.core.storage.PodDBAdapter;
|
import de.danoeh.antennapod.core.storage.PodDBAdapter;
|
||||||
import de.danoeh.antennapod.core.util.NetworkUtils;
|
import de.danoeh.antennapod.core.util.NetworkUtils;
|
||||||
import de.danoeh.antennapod.core.util.exception.RxJavaErrorHandlerSetup;
|
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.
|
* Stores callbacks for core classes like Services, DB classes etc. and other configuration variables.
|
||||||
@ -58,6 +59,7 @@ public class ClientConfig {
|
|||||||
}
|
}
|
||||||
SleepTimerPreferences.init(context);
|
SleepTimerPreferences.init(context);
|
||||||
RxJavaErrorHandlerSetup.setupRxJavaErrorHandler();
|
RxJavaErrorHandlerSetup.setupRxJavaErrorHandler();
|
||||||
|
NotificationUtils.createChannels(context);
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user