fix: Convert recordingTime to float before calculation to fix progress bar

This commit is contained in:
Myzel394 2023-12-31 16:54:15 +01:00
parent 61a63eeabb
commit 7c646835e9
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -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