few more updates here and there

This commit is contained in:
tibbi
2017-11-05 23:57:15 +01:00
parent 94fef5494c
commit cb2ec43b24
4 changed files with 74 additions and 99 deletions

View File

@ -60,6 +60,7 @@ class MainActivity : SimpleActivity() {
mCameraImpl!!.stopStroboscope()
stroboscope_bar.beInvisible()
}
updateTextColors(main_holder)
}
override fun onStart() {
@ -118,8 +119,7 @@ class MainActivity : SimpleActivity() {
stroboscope_bar.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
override fun onProgressChanged(seekBar: SeekBar, progress: Int, b: Boolean) {
val frequency = stroboscope_bar.max - progress + MIN_STROBO_DELAY
if (mCameraImpl != null)
mCameraImpl!!.stroboFrequency = frequency
mCameraImpl?.stroboFrequency = frequency
}
override fun onStartTrackingTouch(seekBar: SeekBar) {