playback: fix nonfunctional notif action setting

Fix an issue where the playback notification would not update afer the
setting changes...again.
This commit is contained in:
Alexander Capehart 2023-01-18 17:24:11 -07:00
parent a5971cbccd
commit 018e2ef310
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -192,10 +192,12 @@ interface PlaybackSettings : Settings<PlaybackSettings.Listener> {
}
override fun onSettingChanged(key: String, listener: Listener) {
if (key == getString(R.string.set_key_replay_gain) ||
key == getString(R.string.set_key_pre_amp_with) ||
key == getString(R.string.set_key_pre_amp_without)) {
listener.onReplayGainSettingsChanged()
when (key) {
getString(R.string.set_key_replay_gain),
getString(R.string.set_key_pre_amp_with),
getString(R.string.set_key_pre_amp_without) ->
listener.onReplayGainSettingsChanged()
getString(R.string.set_key_notif_action) -> listener.onNotificationActionChanged()
}
}