-
-
Save victorbrndls/0ddbfd804df33aa5d82f2901249c914b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Traditional way (Activity) | |
(ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) | |
!= PackageManager.PERMISSION_GRANTED) && (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) | |
!= PackageManager.PERMISSION_GRANTED) | |
// Extension (Activity) | |
hasPermissions(Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment