Created
May 29, 2018 08:32
-
-
Save talosdev/a703fffaccb4ce1cab3b50cd7c4d9aaa to your computer and use it in GitHub Desktop.
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
| @Override | |
| public boolean checkHasPermission() { | |
| if (activityWeakReference.get() != null) { | |
| Activity activity = activityWeakReference.get(); | |
| return ContextCompat.checkSelfPermission(activity, permission) | |
| == PackageManager.PERMISSION_GRANTED; | |
| } | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment