From b5bd1190122c782cbf63c7cff7bc736733aeb010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 6 Oct 2023 12:57:09 +0200 Subject: [PATCH] Set better defaults for brightness and stroboscope sliders --- .../simplemobiletools/flashlight/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt index d24e525..8f40b88 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/MainActivity.kt @@ -469,7 +469,7 @@ class MainActivity : ComponentActivity() { private val _sosActive: MutableStateFlow = MutableStateFlow(false) val sosActive = _sosActive.asStateFlow() - private val _brightnessBarValue: MutableStateFlow = MutableStateFlow(0f) + private val _brightnessBarValue: MutableStateFlow = MutableStateFlow(1f) val brightnessBarValue = _brightnessBarValue.asStateFlow() private val _stroboscopeActive: MutableStateFlow = MutableStateFlow(false) @@ -477,7 +477,7 @@ class MainActivity : ComponentActivity() { val stroboscopeBarVisible = stroboscopeActive - private val _stroboscopeBarValue: MutableStateFlow = MutableStateFlow(0f) + private val _stroboscopeBarValue: MutableStateFlow = MutableStateFlow(0.5f) val stroboscopeBarValue = _stroboscopeBarValue.asStateFlow() init {