From a11dfbe8f17eed45d31582ea19c019f7c7883472 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Mon, 20 Oct 2025 19:08:44 -0400 Subject: [PATCH] Show message when no recordings --- .../wholphin/ui/detail/livetv/DvrSchedule.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/src/main/java/com/github/damontecres/wholphin/ui/detail/livetv/DvrSchedule.kt b/app/src/main/java/com/github/damontecres/wholphin/ui/detail/livetv/DvrSchedule.kt index 3ca42aac..408f9b65 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/ui/detail/livetv/DvrSchedule.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/ui/detail/livetv/DvrSchedule.kt @@ -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(