diff options
| author | saber safavi <saber.safavi@codic.se> | 2023-07-18 17:03:03 +0200 |
|---|---|---|
| committer | saber safavi <saber.safavi@codic.se> | 2023-07-19 15:52:17 +0200 |
| commit | e3aed94155e8982822c8e419c7d218d7e7c8b1de (patch) | |
| tree | 92ce9af1086ebcc3e1912320d78b139400bae59d /android | |
| parent | 38d912fb6f7522c1e2356dac1aa23e1917b59bce (diff) | |
| download | mullvadvpn-e3aed94155e8982822c8e419c7d218d7e7c8b1de.tar.xz mullvadvpn-e3aed94155e8982822c8e419c7d218d7e7c8b1de.zip | |
Remove download link from notification in google play builds
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 } |
