summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-10-28 18:40:25 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-10-28 18:42:02 +0000
commite1a381faeb330a1e62c6e250a65da69b9115bf6e (patch)
tree93b4cb4fa97f32d48dc2804fecbe59f6f20be4ee /android/src/main
parentcab3ea22597900b0d4f853a5ae4b68d76bb02117 (diff)
downloadmullvadvpn-e1a381faeb330a1e62c6e250a65da69b9115bf6e.tar.xz
mullvadvpn-e1a381faeb330a1e62c6e250a65da69b9115bf6e.zip
Remove unnecessary conditional
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt2
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 {