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.
2 parents 51d6209 + fb36167 commit 22092bbCopy full SHA for 22092bb
feature/main/src/main/java/com/stackknowledge/main/component/StackKnowledgePager.kt
@@ -30,6 +30,7 @@ import kotlinx.coroutines.launch
30
import kotlinx.coroutines.withContext
31
32
const val SCROLL_SPEED = 1000
33
+const val BANNER_DELAY_TIME = 4000L
34
35
@OptIn(ExperimentalFoundationApi::class)
36
@Composable
@@ -45,7 +46,7 @@ fun StackKnowledgePager(
45
46
LaunchedEffect(key1 = pagerState.currentPage) {
47
launch {
48
while (true) {
- delay(2000)
49
+ delay(BANNER_DELAY_TIME)
50
withContext(NonCancellable) {
51
if (pagerState.currentPage + 1 in 0..Int.MAX_VALUE) {
52
pagerState.animateScrollToPage(
0 commit comments