mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-30 01:52:49 +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(
|
AnimatedVisibility(
|
||||||
visible = dialogViewModel.torType.value == TorType.EXTERNAL,
|
visible = dialogViewModel.torType.value == TorType.EXTERNAL,
|
||||||
|
enter = fadeIn() + expandVertically(),
|
||||||
|
exit = fadeOut() + shrinkVertically(),
|
||||||
) {
|
) {
|
||||||
SettingsRow(
|
SettingsRow(
|
||||||
R.string.orbot_socks_port,
|
R.string.orbot_socks_port,
|
||||||
@@ -194,6 +196,8 @@ fun PrivacySettingsBody(dialogViewModel: TorDialogViewModel) {
|
|||||||
|
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
visible = dialogViewModel.torType.value != TorType.OFF,
|
visible = dialogViewModel.torType.value != TorType.OFF,
|
||||||
|
enter = fadeIn() + expandVertically(),
|
||||||
|
exit = fadeOut() + shrinkVertically(),
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier.padding(horizontal = 5.dp),
|
modifier = Modifier.padding(horizontal = 5.dp),
|
||||||
|
Reference in New Issue
Block a user