Created
September 28, 2018 13:51
-
-
Save felipebelluco/5ff00e97d75993693c3f5939f2aacce2 to your computer and use it in GitHub Desktop.
Check if permission is not granted;
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
if (ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { | |
// Permissão ainda não foi concedida | |
} else { | |
// Permissão já foi concedida, já é possível usufruir da funcionalidade | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment