diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-24 14:46:34 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-24 16:43:09 +0000 |
| commit | 60aee67c462e7f2f7c42910fbf030fd6fb3a9a45 (patch) | |
| tree | dab5f4efdd9ed121002c3564a4a65c3693e55ec4 | |
| parent | 5aaf1949061e0866d8f0fdbeb6757fb8d9f6ea63 (diff) | |
| download | mullvadvpn-60aee67c462e7f2f7c42910fbf030fd6fb3a9a45.tar.xz mullvadvpn-60aee67c462e7f2f7c42910fbf030fd6fb3a9a45.zip | |
Make sure notification is removed when closing
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt | 4 |
1 files changed, 2 insertions, 2 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 9d34d81a97..a5d05628b2 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt @@ -101,6 +101,8 @@ class ForegroundNotificationManager( service.unregisterReceiver(deviceLockListener) updater.close() + + tunnelStateNotification.visible = false } fun acknowledgeStartForegroundService() { @@ -128,8 +130,6 @@ class ForegroundNotificationManager( } } } - - tunnelStateNotification.visible = false } private fun showOnForeground() { |
