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

View File

@ -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))])))