mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
feat: Don't show RecordingControl until recording ready
This commit is contained in:
parent
4f9f65d0b1
commit
df0bb35672
@ -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 {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user