From badc8398049314451a7c2f51a632e323786d6c7b Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 26 May 2018 23:14:07 +0200 Subject: Gpodder sync does not need a notification anymore --- .../de/danoeh/antennapod/core/util/gui/NotificationUtils.java | 10 ---------- core/src/main/res/values/strings.xml | 2 -- 2 files changed, 12 deletions(-) (limited to 'core/src/main') diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/gui/NotificationUtils.java b/core/src/main/java/de/danoeh/antennapod/core/util/gui/NotificationUtils.java index 39e4d8335..1c42364ea 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/gui/NotificationUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/gui/NotificationUtils.java @@ -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; - } } diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 5759912d1..3870e2cda 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -720,6 +720,4 @@ Allows to control playback Errors Shown if something went wrong - gpodder.net - Shown while currently synchronizing -- cgit v1.2.3