Skip to content

Commit 0deed96

Browse files
authored
decouple boost and nonrggain
1 parent 79dc399 commit 0deed96

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/org/akanework/gramophone/logic/GramophonePlaybackService.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,10 +728,12 @@ class GramophonePlaybackService : MediaLibraryService(), MediaSessionService.Lis
728728
val rgGain = prefs.getIntStrict("rg_rg_gain", 19)
729729
restart = restart || !rgAp.setRgGain(rgGain - 15)
730730
}
731-
if (key == null || key == "rg_no_rg_gain" || key == "rg_boost_gain") {
731+
if (key == null || key == "rg_no_rg_gain") {
732732
val nonRgGain = prefs.getIntStrict("rg_no_rg_gain", 0)
733+
restart = restart || !rgAp.setNonRgGain(-nonRgGain)
734+
}
735+
if (key == null || key == "rg_boost_gain") {
733736
val boostGain = prefs.getIntStrict("rg_boost_gain", 0)
734-
restart = restart || !rgAp.setNonRgGain(-nonRgGain - boostGain)
735737
restart = restart || !rgAp.setBoostGain(boostGain)
736738
}
737739
if (restart) {

0 commit comments

Comments
 (0)