mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 10:00:35 +02:00
Fixes animations when selecting Tor options in the privacy screen
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user