fix app lock hanging on macOS and blocking the photo picker
- Lock only when the scene really backgrounds: transient inactive states (system photo picker, app switcher) no longer swap in the lock screen and break gallery selection on iOS. - Cache biometric availability once per session off the main thread instead of calling LAContext.canEvaluatePolicy in view bodies, which froze the macOS lock screen, and auto-prompt biometrics on iOS only. - Keep UI tests as an opt-in target and guard both fixes in verify.sh.
This commit is contained in:
@@ -406,6 +406,14 @@ grep -q 'urn:xmpp:omemo:2' Sources/Shared/XMPP/XMPPService.swift || {
|
||||
echo "OMEMO 2 payloads must be shown as undecryptable, not empty"
|
||||
exit 1
|
||||
}
|
||||
grep -q 'biometricUnlockAvailable' Sources/Shared/Models/AppModel.swift || {
|
||||
echo "Biometric availability must be cached off the view body"
|
||||
exit 1
|
||||
}
|
||||
grep -q 'case .background:' Sources/App/LumaApp.swift || {
|
||||
echo "The app lock must trigger on background only, not on inactive"
|
||||
exit 1
|
||||
}
|
||||
grep -q 'onDismissRequest' Sources/Shared/UI/SystemPhotoCameraView.swift || {
|
||||
echo "The camera picker must request dismissal before background preparation"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user