Animate visibility of the developer option entry point.

Related to #6703
This commit is contained in:
Benoit Marty
2026-08-12 09:49:24 +02:00
parent fae7df16f9
commit 7c4e81679f
@@ -8,6 +8,7 @@
package io.element.android.features.preferences.impl.root
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
@@ -337,7 +338,9 @@ private fun ColumnScope.GeneralSection(
)
}
// Put developer settings at the end, so nothing bad happens if the user clicks 8 times to enable the entry
if (state.showDeveloperSettings) {
AnimatedVisibility(
visible = state.showDeveloperSettings,
) {
DeveloperPreferencesView(onOpenDeveloperSettings)
}
}