4.6.1 commit
This commit is contained in:
parent
0fb3f0908d
commit
ec8a7bf01c
|
@ -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
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue