From ec8a7bf01c182603b1c63e51760312d9c6209813 Mon Sep 17 00:00:00 2001 From: Xilin Jia <6257601+XilinJia@users.noreply.github.com> Date: Mon, 8 Apr 2024 21:00:46 +0000 Subject: [PATCH] 4.6.1 commit --- .../java/ac/mdiq/podcini/service/playback/PlaybackService.kt | 5 +++-- .../java/ac/mdiq/podcini/ui/fragment/FeedSettingsFragment.kt | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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