4.6.1 commit

This commit is contained in:
Xilin Jia 2024-04-08 21:00:46 +00:00
parent 0fb3f0908d
commit ec8a7bf01c
2 changed files with 5 additions and 5 deletions

View File

@ -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
}
}
// }
}
}
}

View File

@ -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