App asks for Microphone access while user tries to scan QR or capture an image (#1148)

This commit is contained in:
alwx 2017-05-05 06:15:59 +03:00 committed by Roman Volosovskyi
parent 08247698c3
commit 808aa46f4f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
(defn request-access [callback]
(if platform/android?
(callback true)
(let [result (.checkDeviceAuthorizationStatus camera-default)
(let [result (.checkVideoAuthorizationStatus camera-default)
result (.then result #(callback %))
result (.catch result #(callback false))])))