fix: Browse icon not animating after first interaction (#1582)

This commit is contained in:
Abdallah 2024-05-26 06:54:43 +01:00 committed by GitHub
parent 224430ec0d
commit 69f0787a26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ data class BrowseTab(
override val options: TabOptions
@Composable
get() {
val isSelected = LocalTabNavigator.current.current.key == key
val isSelected = LocalTabNavigator.current.current is BrowseTab
val image = AnimatedImageVector.animatedVectorResource(R.drawable.anim_browse_enter)
return TabOptions(
index = 3u,