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:
@@ -192,10 +192,12 @@ interface PlaybackSettings : Settings<PlaybackSettings.Listener> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onSettingChanged(key: String, listener: Listener) {
|
override fun onSettingChanged(key: String, listener: Listener) {
|
||||||
if (key == getString(R.string.set_key_replay_gain) ||
|
when (key) {
|
||||||
key == getString(R.string.set_key_pre_amp_with) ||
|
getString(R.string.set_key_replay_gain),
|
||||||
key == getString(R.string.set_key_pre_amp_without)) {
|
getString(R.string.set_key_pre_amp_with),
|
||||||
listener.onReplayGainSettingsChanged()
|
getString(R.string.set_key_pre_amp_without) ->
|
||||||
|
listener.onReplayGainSettingsChanged()
|
||||||
|
getString(R.string.set_key_notif_action) -> listener.onNotificationActionChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user