We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d40289c commit 13c633fCopy full SHA for 13c633f
1 file changed
app/src/main/java/to/bitkit/ui/screens/wallets/activity/components/CustomTabRowWithSpacing.kt
@@ -40,8 +40,9 @@ fun <T : TabItem> CustomTabRowWithSpacing(
40
horizontalArrangement = Arrangement.SpaceEvenly,
41
modifier = Modifier.fillMaxWidth()
42
) {
43
+ val safeIndex = currentTabIndex.coerceIn(0, tabs.lastIndex)
44
tabs.forEachIndexed { index, tab ->
- val isSelected = tabs[currentTabIndex] == tab
45
+ val isSelected = tabs[safeIndex] == tab
46
47
Column(
48
modifier = Modifier.weight(1f)
0 commit comments