Fix SleepTimer visibility on main screen

This commit is contained in:
Ensar Sarajčić
2023-10-02 12:37:33 +02:00
parent cd02f52d12
commit 87e92df993
3 changed files with 6 additions and 7 deletions

View File

@ -28,7 +28,7 @@ import com.simplemobiletools.flashlight.views.SleepTimer
@Composable
internal fun BrightDisplayScreen(
backgroundColor: Int,
timerText: String?,
timerText: String,
timerVisible: Boolean,
onChangeColorPress: () -> Unit,
onTimerClosePress: () -> Unit
@ -59,7 +59,7 @@ internal fun BrightDisplayScreen(
modifier = Modifier
.align(Alignment.BottomEnd)
.navigationBarsPadding(),
visible = timerVisible,
visible = timerVisible && timerText.isNotEmpty(),
enter = fadeIn(),
exit = fadeOut()
) {