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

@@ -1,5 +1,6 @@
package com.m57.hermescontrol.ui.settings
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
@@ -66,6 +67,8 @@ fun SettingsScreen(
val state by viewModel.uiState.collectAsStateWithLifecycle()
var passwordVisible by remember { mutableStateOf(false) }
BackHandler(onBack = onBack)
Scaffold(
modifier = modifier.fillMaxSize(),
topBar = {