From da2b2e99d6ce9f3ce09f782e2a033181f3d55313 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 21 Sep 2026 14:19:54 +0200 Subject: [PATCH] Fix chevron rotation issue. --- .../features/preferences/impl/root/PreferencesRootView.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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, ) }