mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Fixes #6987 - Prevent ZXing from unnecessarily requesting camera access
This commit is contained in:
committed by
Stefan Ceriu
parent
7daa4f121e
commit
33cf429526
+5
-1
@@ -106,7 +106,11 @@ class QRLoginService: NSObject, QRLoginServiceProtocol {
|
||||
}
|
||||
|
||||
func stopScanning(destroy: Bool) {
|
||||
zxCapture.delegate = nil
|
||||
if (zxCapture.delegate != nil) {
|
||||
// Setting the zxCapture to nil without checking makes it start
|
||||
// scanning and implicitly requesting camera access
|
||||
zxCapture.delegate = nil
|
||||
}
|
||||
|
||||
guard zxCapture.running else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user