summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-01-30 16:10:15 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-01-30 19:25:03 +0000
commitcc824d5e24db901f0720ea600fea75760c422b10 (patch)
tree1858c318655c04d131b3a18293cf047617b6c673
parent35b92d42ff83deeb7b95b276df03af5af67b130e (diff)
downloadmullvadvpn-cc824d5e24db901f0720ea600fea75760c422b10.tar.xz
mullvadvpn-cc824d5e24db901f0720ea600fea75760c422b10.zip
Remove notification when service stops
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
index a04af6d8a8..29c6681cd1 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
@@ -169,6 +169,8 @@ class ForegroundNotificationManager(val service: Service, val connectionProxy: C
stopForeground(true)
}
+
+ notificationManager.cancel(FOREGROUND_NOTIFICATION_ID)
}
private fun initChannel() {