fix: Keep screen on while viewing items doesn't keep the screen on

This commit is contained in:
Artem Chepurnoy 2024-01-28 17:51:17 +02:00
parent a874d88e06
commit fc8910f93f
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import com.artemchep.keyguard.ui.FabState
import com.artemchep.keyguard.ui.FlatItemAction
import com.artemchep.keyguard.ui.FlatItemLayout
import com.artemchep.keyguard.ui.MediumEmphasisAlpha
import com.artemchep.keyguard.ui.OptionallyKeepScreenOnEffect
import com.artemchep.keyguard.ui.OptionsButton
import com.artemchep.keyguard.ui.ScaffoldLazyColumn
import com.artemchep.keyguard.ui.button.FavouriteToggleButton
@ -68,6 +69,8 @@ fun VaultViewScreen(
itemId: String,
accountId: String,
) {
OptionallyKeepScreenOnEffect()
val state = vaultViewScreenState(
mode = LocalAppMode.current,
contentColor = LocalContentColor.current,