Skip to content

Commit

Permalink
Fix brave/brave-ios#7893: Browser Lock - Cancel Issue (brave/brave-io…
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel authored Aug 17, 2023
1 parent 901bb28 commit 1a51772
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 1a51772

Please sign in to comment.