Skip to content

Commit d9186b3

Browse files
committed
Fixes #9074
Signed-off-by: Andreas Feldner <[email protected]>
1 parent d5fc65f commit d9186b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/src/main/java/im/vector/app/core/utils/PermissionChecker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AndroidPermissionChecker @Inject constructor(
3232
) : PermissionChecker {
3333
override fun checkPermission(vararg permissions: String): Boolean {
3434
return permissions.any { permission ->
35-
ActivityCompat.checkSelfPermission(applicationContext, permission) != PackageManager.PERMISSION_GRANTED
35+
ActivityCompat.checkSelfPermission(applicationContext, permission) == PackageManager.PERMISSION_GRANTED
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)