feat: Don't show RecordingControl until recording ready

This commit is contained in:
Myzel394 2023-12-16 23:44:28 +01:00
parent 4f9f65d0b1
commit df0bb35672
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 26 additions and 23 deletions

View File

@ -140,6 +140,7 @@ fun VideoRecordingStatus(
Divider() Divider()
if (!videoRecorder.isStartingRecording) {
RecordingControl( RecordingControl(
isPaused = videoRecorder.isPaused, isPaused = videoRecorder.isPaused,
recordingTime = videoRecorder.recordingTime, recordingTime = videoRecorder.recordingTime,
@ -165,6 +166,9 @@ fun VideoRecordingStatus(
videoRecorder.onRecordingSave(false) videoRecorder.onRecordingSave(false)
} }
) )
} else {
Box {}
}
} }
} }
} }

View File

@ -8,7 +8,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue import androidx.compose.runtime.setValue
import app.myzel394.alibi.db.AppSettings
import app.myzel394.alibi.db.RecordingInformation import app.myzel394.alibi.db.RecordingInformation
import app.myzel394.alibi.enums.RecorderState import app.myzel394.alibi.enums.RecorderState
import app.myzel394.alibi.helpers.VideoBatchesFolder import app.myzel394.alibi.helpers.VideoBatchesFolder