diff options
Diffstat (limited to 'android')
2 files changed, 10 insertions, 0 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/NotificationWithUrl.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/NotificationWithUrl.kt index cd0b0564ec..ea36973660 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/NotificationWithUrl.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/NotificationWithUrl.kt @@ -18,4 +18,9 @@ abstract class NotificationWithUrl(protected val context: Context, urlString: St onClick = openUrl showIcon = true } + + internal fun disableExternalLink() { + showIcon = false + onClick = null + } } diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/VersionInfoNotification.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/VersionInfoNotification.kt index 862c59400d..c37b5e5220 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/VersionInfoNotification.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/notification/VersionInfoNotification.kt @@ -1,7 +1,9 @@ package net.mullvad.mullvadvpn.ui.notification import android.content.Context +import net.mullvad.mullvadvpn.BuildConfig import net.mullvad.mullvadvpn.R +import net.mullvad.mullvadvpn.constant.BuildTypes import net.mullvad.mullvadvpn.ui.VersionInfo import net.mullvad.mullvadvpn.util.appendHideNavOnReleaseBuild @@ -39,6 +41,9 @@ class VersionInfoNotification(val isEnabled: Boolean, context: Context) : } shouldShow = true + if (BuildConfig.BUILD_TYPE == BuildTypes.RELEASE) { + disableExternalLink() + } } else { shouldShow = false } |
