mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
fix crash when opening camera while having partial storage access
This commit is contained in:
parent
557b76da67
commit
f5b55febb4
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ object PermissionUtils {
|
|||
vararg permissions: String
|
||||
) {
|
||||
if (hasPartialAccess(activity)) {
|
||||
Thread(onPermissionGranted).start()
|
||||
CoroutineScope(Dispatchers.Main).launch { onPermissionGranted.run() }
|
||||
return
|
||||
}
|
||||
checkPermissionsAndPerformAction(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue