Skip to content

Commit 2dea47f

Browse files
Copilotignoramous
andcommitted
Add ACTION_USER_UNLOCKED to programmatic receiver registration
Co-authored-by: ignoramous <852289+ignoramous@users.noreply.github.com>
1 parent 2a0072d commit 2dea47f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/celzero/bravedns/service/BraveVPNService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ class BraveVPNService : VpnService(), ConnectionMonitor.NetworkListener, Bridge,
14021402
private fun registerUserPresentReceiver() {
14031403
val filter = IntentFilter().apply {
14041404
addAction(Intent.ACTION_USER_PRESENT)
1405+
addAction(Intent.ACTION_USER_UNLOCKED)
14051406
}
14061407
registerReceiver(userPresentReceiver, filter)
14071408
Logger.i(LOG_TAG_VPN, "user present receiver registered")

0 commit comments

Comments
 (0)