diff options
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt | 5 |
1 files changed, 4 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 6af7bb8428..1b2019b07e 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/ForegroundNotificationManager.kt @@ -75,7 +75,10 @@ class ForegroundNotificationManager( updateNotification() } - private var deviceIsUnlocked by observable(true) { _, _, _ -> updateNotification() } + private var deviceIsUnlocked by observable(!keyguardManager.isDeviceLocked) { _, _, _ -> + updateNotification() + } + private var loggedIn by observable(false) { _, _, _ -> updateNotification() } private val shouldBeOnForeground |
