reverting the recent seekbar extension change

This commit is contained in:
tibbi 2021-02-04 20:45:34 +01:00
parent 24f0fb097f
commit a681594e5b
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.33.13'
propVersionName = '5.33.14'
kotlin_version = '1.4.21'
}

View file

@ -2,9 +2,9 @@ package com.simplemobiletools.commons.extensions
import android.widget.SeekBar
fun SeekBar.onSeekBarChangeListener(seekBarChangeListener: (progress: Int, fromUser: Boolean) -> Unit) = setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
fun SeekBar.onSeekBarChangeListener(seekBarChangeListener: (progress: Int) -> Unit) = setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) {
seekBarChangeListener(progress, fromUser)
seekBarChangeListener(progress)
}
override fun onStartTrackingTouch(seekBar: SeekBar) {}