Fixes animations when selecting Tor options in the privacy screen

This commit is contained in:
Vitor Pamplona
2025-09-11 10:54:22 -04:00
parent d4c39bd9cb
commit bbbdc05243

View File

@@ -168,6 +168,8 @@ fun PrivacySettingsBody(dialogViewModel: TorDialogViewModel) {
AnimatedVisibility(
visible = dialogViewModel.torType.value == TorType.EXTERNAL,
enter = fadeIn() + expandVertically(),
exit = fadeOut() + shrinkVertically(),
) {
SettingsRow(
R.string.orbot_socks_port,
@@ -194,6 +196,8 @@ fun PrivacySettingsBody(dialogViewModel: TorDialogViewModel) {
AnimatedVisibility(
visible = dialogViewModel.torType.value != TorType.OFF,
enter = fadeIn() + expandVertically(),
exit = fadeOut() + shrinkVertically(),
) {
Column(
modifier = Modifier.padding(horizontal = 5.dp),