Fix crash when opening camera without storage permissions.
This commit is contained in:
parent
5b1069018f
commit
8e8def8b03
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ class MediaCaptureRepository(context: Context) {
|
|||
if (!StorageUtil.canReadFromMediaStore()) {
|
||||
Log.w(TAG, "Cannot read from storage.")
|
||||
callback(null)
|
||||
return
|
||||
}
|
||||
|
||||
SignalExecutors.BOUNDED.execute {
|
||||
|
|
Loading…
Add table
Reference in a new issue