We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 182bdcf commit ae0e54fCopy full SHA for ae0e54f
app/src/main/java/com/paulcoding/hviewer/ui/page/post/Images.kt
@@ -48,6 +48,7 @@ import com.paulcoding.hviewer.model.SiteConfig
48
import com.paulcoding.hviewer.ui.component.HIcon
49
import com.paulcoding.hviewer.ui.component.HLoading
50
import com.paulcoding.hviewer.ui.component.SystemBar
51
+import kotlinx.coroutines.delay
52
import kotlinx.coroutines.launch
53
54
@Composable
@@ -89,6 +90,14 @@ fun ImageList(
89
90
}
91
92
93
+ // auto hide system bar after 5 seconds
94
+ LaunchedEffect(uiState.isSystemBarHidden) {
95
+ if (!uiState.isSystemBarHidden) {
96
+ delay(5000)
97
+ viewModel.toggleSystemBarHidden()
98
+ }
99
100
+
101
val paginationHelper = remember {
102
BasePaginationHelper(
103
buffer = 5,
0 commit comments