|
|
@ -43,9 +43,9 @@ class EqualizerAdapter(private val context: Context, private val onSeeBarListene |
|
|
|
|
|
|
|
|
|
|
|
holder.barEqualizer.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { |
|
|
|
holder.barEqualizer.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { |
|
|
|
override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { |
|
|
|
override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { |
|
|
|
if (fromUser) { |
|
|
|
// if (fromUser) { |
|
|
|
onSeeBarListener?.onProgress(i, progress) |
|
|
|
// onSeeBarListener?.onProgress(i, progress) |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar) { |
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar) { |
|
|
@ -53,7 +53,7 @@ class EqualizerAdapter(private val context: Context, private val onSeeBarListene |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onStopTrackingTouch(seekBar: SeekBar) { |
|
|
|
override fun onStopTrackingTouch(seekBar: SeekBar) { |
|
|
|
|
|
|
|
onSeeBarListener?.onProgress(i, seekBar.progress) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|