Fix crash when opening camera without storage permissions.

This commit is contained in:
Greyson Parrelli 2021-09-09 09:44:22 -04:00
parent 5b1069018f
commit 8e8def8b03

View file

@ -32,6 +32,7 @@ class MediaCaptureRepository(context: Context) {
if (!StorageUtil.canReadFromMediaStore()) {
Log.w(TAG, "Cannot read from storage.")
callback(null)
return
}
SignalExecutors.BOUNDED.execute {