mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-10 07:36:46 +00:00
App asks for Microphone access while user tries to scan QR or capture an image (#1148)
This commit is contained in:
parent
08247698c3
commit
808aa46f4f
@ -17,7 +17,7 @@
|
|||||||
(defn request-access [callback]
|
(defn request-access [callback]
|
||||||
(if platform/android?
|
(if platform/android?
|
||||||
(callback true)
|
(callback true)
|
||||||
(let [result (.checkDeviceAuthorizationStatus camera-default)
|
(let [result (.checkVideoAuthorizationStatus camera-default)
|
||||||
result (.then result #(callback %))
|
result (.then result #(callback %))
|
||||||
result (.catch result #(callback false))])))
|
result (.catch result #(callback false))])))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user