Closed LZ9 closed 2 years ago
I have the same problem
Do you mean there're some cases that the order of the permissions could be different? š
Do you mean there're some cases that the order of the permissions could be different? š
Yes, The key is different if the order is different. So the result may be null.
it should be resolved in 1.1.3, thx for your report!
in PermissionRequestViewModel.kt this function :
the key is [android.permission.READ_PHONE_STATE, android.permission.WRITE_EXTERNAL_STORAGE, android.permission.READ_EXTERNAL_STORAGE]
but it[key] get is null , becasuse Observer`s it the key is [android.permission.READ_EXTERNAL_STORAGE, android.permission.READ_PHONE_STATE, android.permission.WRITE_EXTERNAL_STORAGE] , key is different from it the key.
so can not callback requiresPermission or onPermissionDenied or onNeverAskAgain when multiple permissions apply at the same time