Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ fun DataScreen(
}
)
}
TeleopLockScreen(isOverlayActive = formState.teleopRunning)
TeleopLockScreen(
visible = formState.teleopRunning || formState.teleopCachedMilliseconds > 0,
message = if(formState.teleopRunning) "Teleop is running" else "Assign your cached time"
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.LayoutDirection

@Composable
fun TeleopLockScreen(isOverlayActive: Boolean) {
fun TeleopLockScreen(visible: Boolean, message: String) {

//disables back press
BackHandler(enabled = isOverlayActive) {
BackHandler(enabled = visible) {
}


Expand All @@ -50,8 +50,8 @@ fun TeleopLockScreen(isOverlayActive: Boolean) {
}
}

if (isOverlayActive) {
Popup (
if(visible) {
Popup(
popupPositionProvider = screenEdgePositionProvider,
properties = PopupProperties(
focusable = false,
Expand Down Expand Up @@ -82,7 +82,7 @@ fun TeleopLockScreen(isOverlayActive: Boolean) {
Spacer(modifier = Modifier.width(8.dp))

Text(
text = "Teleop is running",
text = message,
color = Color.White,
style = MaterialTheme.typography.titleLarge
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fun MatchSchedule(

// 1. Header Title
Text(
text = "Buckeye Regional",
text = "Miami Valley Regional",
color = TextPrimary,
fontSize = 22.sp,
fontWeight = FontWeight.Bold,
Expand Down
Loading