diff options
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt index 20c2545e12..7135ef1c64 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt @@ -64,6 +64,12 @@ class MullvadVpnService : TalpidVpnService() { notificationManager.lockedToForeground = value } + private var loggedIn = false + set(value) { + field = value + notificationManager.loggedIn = value + } + override fun onCreate() { super.onCreate() @@ -140,7 +146,7 @@ class MullvadVpnService : TalpidVpnService() { val newDaemon = MullvadDaemon(this@MullvadVpnService).apply { onSettingsChange.subscribe { settings -> - notificationManager.loggedIn = settings?.accountToken != null + loggedIn = settings?.accountToken != null } onDaemonStopped = { |
