mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Convert recordingTime to float before calculation to fix progress bar
This commit is contained in:
parent
61a63eeabb
commit
7c646835e9
@ -35,7 +35,7 @@ abstract class BaseRecorderModel<I, B : BatchesFolder, T : IntervalRecorderServi
|
||||
get() = recorderState === RecorderState.PAUSED
|
||||
|
||||
val progress: Float
|
||||
get() = (recordingTime / (recorderService!!.settings.maxDuration / 1000)).toFloat()
|
||||
get() = recordingTime.toFloat() / (recorderService!!.settings.maxDuration / 1000)
|
||||
|
||||
var recorderService by mutableStateOf<T?>(null)
|
||||
protected set
|
||||
|
Loading…
x
Reference in New Issue
Block a user