summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/NotificationBanner.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/NotificationBanner.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/NotificationBanner.kt
index 976a82cdd2..17d8fd3e20 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/NotificationBanner.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/NotificationBanner.kt
@@ -38,6 +38,9 @@ class NotificationBanner : FrameLayout {
private val animation = ObjectAnimator.ofFloat(this, "translationY", 0.0f).apply {
addListener(animationListener)
setDuration(350)
+
+ // Ensure there's time for the layout to finish before making the banner visible
+ setStartDelay(20)
}
private val container =