summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-01-21 15:50:29 +0100
committerAlbin <albin@mullvad.net>2022-01-24 13:44:45 +0100
commit4aabd4c0701002162a720944cd5be716b1337920 (patch)
tree445dc6c96cbee4ef6a40a6e40559db7bcec23e01 /android
parent5615c124acec08bf62fbad316d7814245edabf5b (diff)
downloadmullvadvpn-4aabd4c0701002162a720944cd5be716b1337920.tar.xz
mullvadvpn-4aabd4c0701002162a720944cd5be716b1337920.zip
Skip updating notification when service is killed
Skip creating/updating the tunnel state notification when the vpn service is killed.
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt2
1 files changed, 0 insertions, 2 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
index 92c4fcd078..09ccf1677a 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
@@ -86,8 +86,6 @@ class ForegroundNotificationManager(
}
fun onDestroy() {
- accountNumberEvents = null
-
connectionProxy.onStateChange.unsubscribe(this)
service.unregisterReceiver(deviceLockListener)