summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt19
1 files changed, 0 insertions, 19 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 28d32c1c89..621463286f 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt
@@ -183,18 +183,6 @@ class ForegroundNotificationManager(
}
}
- private val connectReceiver = object : BroadcastReceiver() {
- override fun onReceive(context: Context, intent: Intent) {
- connectionProxy?.connect()
- }
- }
-
- private val disconnectReceiver = object : BroadcastReceiver() {
- override fun onReceive(context: Context, intent: Intent) {
- connectionProxy?.disconnect()
- }
- }
-
var lockedToForeground = false
set(value) {
field = value
@@ -212,8 +200,6 @@ class ForegroundNotificationManager(
}
service.apply {
- registerReceiver(connectReceiver, IntentFilter(KEY_CONNECT_ACTION))
- registerReceiver(disconnectReceiver, IntentFilter(KEY_DISCONNECT_ACTION))
registerReceiver(deviceLockListener, IntentFilter().apply {
addAction(Intent.ACTION_USER_PRESENT)
addAction(Intent.ACTION_SCREEN_OFF)
@@ -228,11 +214,6 @@ class ForegroundNotificationManager(
connectionProxy = null
settingsListener = null
- service.apply {
- unregisterReceiver(connectReceiver)
- unregisterReceiver(disconnectReceiver)
- }
-
notificationManager.cancel(FOREGROUND_NOTIFICATION_ID)
}