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