Skip to content

Commit ee71b63

Browse files
khmMounacrow
andauthored
Update ios/airship_flutter/Sources/airship_flutter/AirshipPlugin.swift
Co-authored-by: David <jdavidcrow@gmail.com>
1 parent dadc612 commit ee71b63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/airship_flutter/Sources/airship_flutter/AirshipPlugin.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ public class AirshipPlugin: NSObject, FlutterPlugin {
9595
request.result(options: nil)
9696
return
9797
}
98-
guard self.overridePresentationOptionsEnabled else {
98+
var isEnabled = false
99+
self.lock.sync { isEnabled = self.overridePresentationOptionsEnabled }
100+
guard isEnabled else {
99101
request.result(options: nil)
100102
return
101103
}

0 commit comments

Comments
 (0)