diff --git a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootView.kt b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootView.kt index 6413bb3e32..5aefdf122d 100644 --- a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootView.kt +++ b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootView.kt @@ -241,7 +241,7 @@ private fun ColumnScope.MultiAccountSection( } // Animate the chevron icon to rotate when the section is expanded/collapsed val rotation: Float by animateFloatAsState( - targetValue = if (state.isOtherAccountsSectionExpanded) 180f else 0f, + targetValue = if (state.isOtherAccountsSectionExpanded) -180f else 0f, animationSpec = tween( delayMillis = 0, durationMillis = 300, @@ -250,11 +250,7 @@ private fun ColumnScope.MultiAccountSection( ) Icon( modifier = Modifier.rotate(rotation), - imageVector = if (state.isOtherAccountsSectionExpanded) { - CompoundIcons.ChevronUp() - } else { - CompoundIcons.ChevronDown() - }, + imageVector = CompoundIcons.ChevronDown(), contentDescription = null, ) }