Skip to content

Commit

Permalink
Merge pull request #632 from Automattic/issue/303-sync-skip-time-sett…
Browse files Browse the repository at this point in the history
…ings

Allow syncing of skip time settings
  • Loading branch information
ashiagr authored Dec 9, 2022
2 parents a0a30d5 + 07b004e commit 10eaa02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Bug Fixes:
* Fixed podcast date format
([#477](https://github.com/Automattic/pocket-casts-android/pull/477)).
* Fix unable to permanently change "Skip back time" setting
([#632](https://github.com/Automattic/pocket-casts-android/pull/632)).

7.28
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ class PlaybackSettingsFragment : BaseFragment() {
saved = settings.skipForwardInSecsObservable
.subscribeAsState(settings.getSkipForwardInSecs())
.value,
onSave = settings::setSkipForwardInSec
onSave = {
settings.setSkipForwardNeedsSync(true)
settings.setSkipForwardInSec(it)
}
)

// Skip back time
Expand All @@ -164,7 +167,10 @@ class PlaybackSettingsFragment : BaseFragment() {
saved = settings.skipBackwardInSecsObservable
.subscribeAsState(settings.getSkipBackwardInSecs())
.value,
onSave = settings::setSkipBackwardInSec
onSave = {
settings.setSkipBackNeedsSync(true)
settings.setSkipBackwardInSec(it)
}
)

KeepScreenAwake(
Expand Down

0 comments on commit 10eaa02

Please sign in to comment.