mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-22 18:13:13 +02:00
Fixes crash when more than 1 status
This commit is contained in:
@@ -161,7 +161,7 @@ fun RotateStatuses(
|
|||||||
LaunchedEffect(Unit) {
|
LaunchedEffect(Unit) {
|
||||||
while (true) {
|
while (true) {
|
||||||
delay(10.seconds)
|
delay(10.seconds)
|
||||||
indexToDisplay = ((indexToDisplay + 1) % (statuses.size + 1))
|
indexToDisplay = ((indexToDisplay + 1) % (statuses.size))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user