Created
May 29, 2018 03:19
-
-
Save kheldiente/be72f6b9a7c74210a2cd66ec67ca89f9 to your computer and use it in GitHub Desktop.
On switch toggled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCheckedChanged(compoundButton: CompoundButton?, checked: Boolean) { | |
enableEqualizer(checked) | |
presetAdapter?.enableAll(checked) // Update color state of list | |
} | |
private fun enableEqualizer(enable: Boolean) { | |
equalizer?.enabled = enable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment