diff options
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt | 2 |
1 files changed, 1 insertions, 1 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 1114ecef27..c402881488 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt @@ -114,7 +114,7 @@ class ForegroundNotificationManager( if (shouldBeOnForeground != onForeground) { if (shouldBeOnForeground) { showOnForeground() - } else if (!shouldBeOnForeground) { + } else { if (Build.VERSION.SDK_INT >= 24) { service.stopForeground(Service.STOP_FOREGROUND_DETACH) } else { |
