handle equalizer color only after dynamically adding all views

This commit is contained in:
tibbi 2021-02-06 22:43:35 +01:00
parent 9184617af6
commit 9b245b2c27

View file

@ -29,7 +29,6 @@ class EqualizerActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_equalizer)
updateTextColors(equalizer_holder)
initMediaPlayer()
}
@ -45,6 +44,7 @@ class EqualizerActivity : SimpleActivity() {
equalizer.enabled = true
setupBands(equalizer)
setupPresets(equalizer)
updateTextColors(equalizer_holder)
}
private fun setupBands(equalizer: Equalizer) {