playback: fix parent play mode not being applied

Caused by a trivial problem with key use.
This commit is contained in:
Alexander Capehart 2023-07-11 14:44:30 -06:00
parent 4275fdbcf0
commit ecc84dd8c8
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -82,8 +82,9 @@ class PlaybackSettingsImpl @Inject constructor(@ApplicationContext context: Cont
override val inParentPlaybackMode: PlaySong?
get() =
PlaySong.fromIntCode(
sharedPreferences.getInt(
getString(R.string.set_key_play_in_list_with), Int.MIN_VALUE),
sharedPreferences
.getInt(getString(R.string.set_key_play_in_parent_with), Int.MIN_VALUE)
.also { logD(it) },
null)
override val barAction: ActionMode