Skip to content

Commit

Permalink
Use fast iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 15, 2024
1 parent 14bf946 commit 69d1803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/zionhuang/music/ui/player/Player.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.util.fastForEachIndexed
import androidx.media3.common.C
import androidx.media3.common.Player.REPEAT_MODE_ALL
import androidx.media3.common.Player.REPEAT_MODE_OFF
Expand Down Expand Up @@ -198,7 +199,7 @@ fun BottomSheetPlayer(
.fillMaxWidth()
.padding(horizontal = PlayerHorizontalPadding)
) {
artistNames.forEachIndexed { index, artistName ->
artistNames.fastForEachIndexed { index, artistName ->
val artist = if (index < artists.size) artists[index] else null
Text(
text = artistName,
Expand Down

0 comments on commit 69d1803

Please sign in to comment.