diff --git a/app/src/main/java/ac/mdiq/podcini/service/playback/PlaybackService.kt b/app/src/main/java/ac/mdiq/podcini/service/playback/PlaybackService.kt index 5fd23b3b..be0cd785 100644 --- a/app/src/main/java/ac/mdiq/podcini/service/playback/PlaybackService.kt +++ b/app/src/main/java/ac/mdiq/podcini/service/playback/PlaybackService.kt @@ -1578,13 +1578,14 @@ class PlaybackService : MediaBrowserServiceCompat() { fun skipIntroEndingPresetChanged(event: SkipIntroEndingChangedEvent) { if (playable is FeedMedia) { if ((playable as FeedMedia).item?.feed?.id == event.feedId) { - if (event.skipEnding != 0) { +// if (event.skipEnding != 0) { val feedPreferences = (playable as FeedMedia).item?.feed?.preferences if (feedPreferences != null) { + Log.d(TAG, "skipIntroEndingPresetChanged ${event.skipIntro} ${event.skipEnding}") feedPreferences.feedSkipIntro = event.skipIntro feedPreferences.feedSkipEnding = event.skipEnding } - } +// } } } } diff --git a/app/src/main/java/ac/mdiq/podcini/ui/fragment/FeedSettingsFragment.kt b/app/src/main/java/ac/mdiq/podcini/ui/fragment/FeedSettingsFragment.kt index fde3080d..afd70df0 100644 --- a/app/src/main/java/ac/mdiq/podcini/ui/fragment/FeedSettingsFragment.kt +++ b/app/src/main/java/ac/mdiq/podcini/ui/fragment/FeedSettingsFragment.kt @@ -17,6 +17,7 @@ import ac.mdiq.podcini.ui.dialog.AuthenticationDialog import ac.mdiq.podcini.ui.dialog.EpisodeFilterDialog import ac.mdiq.podcini.ui.dialog.FeedPreferenceSkipDialog import ac.mdiq.podcini.ui.dialog.TagSettingsDialog +import ac.mdiq.podcini.util.event.settings.SkipIntroEndingChangedEvent import ac.mdiq.podcini.util.event.settings.SpeedPresetChangedEvent import ac.mdiq.podcini.util.event.settings.VolumeAdaptionChangedEvent import android.Manifest @@ -190,9 +191,7 @@ class FeedSettingsFragment : Fragment() { feedPreferences!!.feedSkipIntro = skipIntro feedPreferences!!.feedSkipEnding = skipEnding DBWriter.setFeedPreferences(feedPreferences!!) - EventBus.getDefault().post( - ac.mdiq.podcini.util.event.settings.SkipIntroEndingChangedEvent(feedPreferences!!.feedSkipIntro, - feedPreferences!!.feedSkipEnding, feed!!.id)) + EventBus.getDefault().post(SkipIntroEndingChangedEvent(feedPreferences!!.feedSkipIntro, feedPreferences!!.feedSkipEnding, feed!!.id)) } }.show() false