Show message when no recordings

This commit is contained in:
Damontecres 2025-10-20 19:08:44 -04:00
parent a908f0d6e5
commit a11dfbe8f1
No known key found for this signature in database

View file

@ -18,6 +18,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel
import androidx.lifecycle.MutableLiveData
@ -145,6 +146,17 @@ fun DvrScheduleContent(
.fillMaxWidth(.6f)
.background(MaterialTheme.colorScheme.surface),
) {
if (activeRecordings.isEmpty() && scheduledRecordings.isEmpty()) {
item {
Text(
text = "No scheduled recordings",
style = MaterialTheme.typography.headlineSmall,
color = MaterialTheme.colorScheme.onSurface,
textAlign = TextAlign.Center,
modifier = Modifier.fillMaxWidth(),
)
}
}
if (activeRecordings.isNotEmpty()) {
item {
Text(