Fix CronJob model API compatibility and register BackHandler in SettingsScreen

This commit is contained in:
Hy4ri committed 2026-06-16 00:21:31 +03:00
1 parent 9b2aeae836
commit 3ff148f6d0
3 files changed
+28 -5

No files matched your search

@@ -108,14 +108,17 @@ fun CronJobsScreen(
Column(modifier = Modifier.padding(16.dp)) {
Text(text = job.name, style = MaterialTheme.typography.titleMedium)
Spacer(modifier = Modifier.height(4.dp))
Text(text = "Schedule: ${job.schedule}", style = MaterialTheme.typography.bodyMedium)
Text(
text = "Schedule: ${job.scheduleText}",
style = MaterialTheme.typography.bodyMedium,
)
Text(text = "Status: ${job.state}", style = MaterialTheme.typography.bodyMedium)
Text(
text = "Last Run: ${job.last_run_status ?: "Never"}",
text = "Last Run: ${job.lastRunStatus.ifBlank { "Never" }}",
style = MaterialTheme.typography.bodyMedium,
)
Text(
text = "Next Run: ${job.next_run ?: "N/A"}",
text = "Next Run: ${job.nextRunTime.ifBlank { "N/A" }}",
style = MaterialTheme.typography.bodyMedium,
)