mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-28 17:39:24 +01:00
Gpodder sync does not need a notification anymore
This commit is contained in:
parent
3edbbe8c53
commit
badc839804
@ -13,7 +13,6 @@ public class NotificationUtils {
|
||||
public static final String CHANNEL_ID_DOWNLOADING = "downloading";
|
||||
public static final String CHANNEL_ID_PLAYING = "playing";
|
||||
public static final String CHANNEL_ID_ERROR = "error";
|
||||
public static final String CHANNEL_ID_GPODNET = "gpodnet";
|
||||
|
||||
public static void createChannels(Context context) {
|
||||
if (android.os.Build.VERSION.SDK_INT < 26) {
|
||||
@ -26,7 +25,6 @@ public class NotificationUtils {
|
||||
mNotificationManager.createNotificationChannel(createChannelDownloading(context));
|
||||
mNotificationManager.createNotificationChannel(createChannelPlaying(context));
|
||||
mNotificationManager.createNotificationChannel(createChannelError(context));
|
||||
mNotificationManager.createNotificationChannel(createChannelGpodnet(context));
|
||||
}
|
||||
}
|
||||
|
||||
@ -61,12 +59,4 @@ public class NotificationUtils {
|
||||
mChannel.setDescription(c.getString(R.string.notification_channel_error_description));
|
||||
return mChannel;
|
||||
}
|
||||
|
||||
@RequiresApi(api = Build.VERSION_CODES.O)
|
||||
private static NotificationChannel createChannelGpodnet(Context c) {
|
||||
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID_GPODNET,
|
||||
c.getString(R.string.notification_channel_gpodnet), NotificationManager.IMPORTANCE_MIN);
|
||||
mChannel.setDescription(c.getString(R.string.notification_channel_gpodnet_description));
|
||||
return mChannel;
|
||||
}
|
||||
}
|
||||
|
@ -720,6 +720,4 @@
|
||||
<string name="notification_channel_playing_description">Allows to control playback</string>
|
||||
<string name="notification_channel_error">Errors</string>
|
||||
<string name="notification_channel_error_description">Shown if something went wrong</string>
|
||||
<string name="notification_channel_gpodnet">gpodder.net</string>
|
||||
<string name="notification_channel_gpodnet_description">Shown while currently synchronizing</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user