Created
July 17, 2016 12:01
-
-
Save Egorand/d8e144e1120e04b012f9641b734a2e1a to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-showing-long-rationale
This file contains hidden or 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 (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_CONTACTS)) { | |
permissionDeniedRationaleView.setText(R.string.permission_denied_rationale_short); | |
} else { | |
permissionDeniedRationaleView.setText(R.string.permission_denied_rationale_long); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment