summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/LocationInfo.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/LocationInfo.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/LocationInfo.kt
index 9980908353..15dcc030e7 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/LocationInfo.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/LocationInfo.kt
@@ -113,7 +113,10 @@ fun LocationInfo(
text = "${stringResource(id = R.string.out_address)} $outAddress",
color = colorExpanded,
style = MaterialTheme.typography.labelMedium,
- modifier = Modifier.alpha(if (isExpanded) AlphaVisible else AlphaInvisible)
+ modifier =
+ Modifier.alpha(
+ if (isExpanded && outAddress.isNotEmpty()) AlphaVisible else AlphaInvisible
+ )
)
}
}