We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fc65f commit 8cac8f4Copy full SHA for 8cac8f4
vector/src/main/java/im/vector/app/core/utils/PermissionChecker.kt
@@ -32,7 +32,7 @@ class AndroidPermissionChecker @Inject constructor(
32
) : PermissionChecker {
33
override fun checkPermission(vararg permissions: String): Boolean {
34
return permissions.any { permission ->
35
- ActivityCompat.checkSelfPermission(applicationContext, permission) != PackageManager.PERMISSION_GRANTED
+ ActivityCompat.checkSelfPermission(applicationContext, permission) == PackageManager.PERMISSION_GRANTED
36
}
37
38
0 commit comments