Use proper default value for brightDisplayColor

This commit is contained in:
Ensar Sarajčić
2023-10-05 13:07:42 +02:00
parent 8a30781893
commit acc8500bd2

View File

@ -71,7 +71,7 @@ class BrightDisplayActivity : ComponentActivity() {
@Composable
private fun AlertDialogState.ColorPicker() {
val brightDisplayColor by preferences.brightDisplayColorFlow.collectAsStateWithLifecycle(Color.WHITE)
val brightDisplayColor by preferences.brightDisplayColorFlow.collectAsStateWithLifecycle(preferences.brightDisplayColor)
DialogMember {
ColorPickerAlertDialog(
alertDialogState = this,