Use apply when building SleepTimerRadioDialog

This commit is contained in:
Ensar Sarajčić 2023-10-04 16:36:47 +02:00
parent 2fd3dc5c77
commit 6296d893b0

@ -87,9 +87,10 @@ class MainActivity : ComponentActivity() {
} }
) )
val sleepTimerDialogState = rememberAlertDialogState() val sleepTimerDialogState = rememberAlertDialogState().apply {
sleepTimerDialogState.DialogMember { DialogMember {
SleepTimerRadioDialog(alertDialogState = sleepTimerDialogState) SleepTimerRadioDialog(alertDialogState = this)
}
} }
MainScreen( MainScreen(