feat: added settings to enable and disable ReplayGain

This commit is contained in:
antonio 2023-07-02 23:36:52 +02:00
parent 57bb51fb8d
commit feae1b8bdd
4 changed files with 36 additions and 0 deletions

View file

@ -31,6 +31,7 @@ object Preferences {
private const val PODCAST_SECTION_VISIBILITY = "podcast_section_visibility"
private const val RADIO_SECTION_VISIBILITY = "radio_section_visibility"
private const val MUSIC_DIRECTORY_SECTION_VISIBILITY = "music_directory_section_visibility"
private const val REPLAY_GAIN_MODE = "replay_gain_mode"
@JvmStatic
fun getServer(): String? {
@ -246,4 +247,9 @@ object Preferences {
fun isMusicDirectorySectionVisible(): Boolean {
return App.getInstance().preferences.getBoolean(MUSIC_DIRECTORY_SECTION_VISIBILITY, true)
}
@JvmStatic
fun getReplayGainMode(): String? {
return App.getInstance().preferences.getString(REPLAY_GAIN_MODE, "disabled")
}
}