Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7893: Browser Lock - Cancel Issue (#7894)
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel authored Aug 17, 2023
1 parent 7d8c78b commit d2a8fe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Brave/Frontend/Passcode/WindowProtection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public class WindowProtection {
NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification)
.sink(receiveValue: { [weak self] _ in
guard let self = self else { return }
// Should set as non cancallable for browser lock
self.isCancellable = false
// Update visibility when entering background
self.isVisible = Preferences.Privacy.lockWithPasscode.value && self.context.canEvaluatePolicy(.deviceOwnerAuthentication, error: nil)
})
Expand Down

0 comments on commit d2a8fe6

Please sign in to comment.