{"action":"created","issue":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/189","repository_url":"https://api.github.com/repos/Karumi/Dexter","labels_url":"https://api.github.com/repos/Karumi/Dexter/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/Karumi/Dexter/issues/189/comments","events_url":"https://api.github.com/repos/Karumi/Dexter/issues/189/events","html_url":"https://github.com/Karumi/Dexter/issues/189","id":267927488,"number":189,"title":"Check for permission without actually ask for it using Dexter","user":{"login":"romshiri","id":1813531,"avatar_url":"https://avatars2.githubusercontent.com/u/1813531?v=4","gravatar_id":"","url":"https://api.github.com/users/romshiri","html_url":"https://github.com/romshiri","followers_url":"https://api.github.com/users/romshiri/followers","following_url":"https://api.github.com/users/romshiri/following{/other_user}","gists_url":"https://api.github.com/users/romshiri/gists{/gist_id}","starred_url":"https://api.github.com/users/romshiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romshiri/subscriptions","organizations_url":"https://api.github.com/users/romshiri/orgs","repos_url":"https://api.github.com/users/romshiri/repos","events_url":"https://api.github.com/users/romshiri/events{/privacy}","received_events_url":"https://api.github.com/users/romshiri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-24T07:37:15Z","updated_at":"2018-03-08T22:02:40Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nIs there any way to check for permissions without actually showing a dialog using the library?\r\nI know I can do that with the framework library but as the code in Dexter is much cleaner so I prefer to use that.\r\n\r\nI couldn't find in the documentation something that points to that.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/comments/371639818","html_url":"https://github.com/Karumi/Dexter/issues/189#issuecomment-371639818","issue_url":"https://api.github.com/repos/Karumi/Dexter/issues/189","id":371639818,"user":{"login":"erawhctim","id":6600919,"avatar_url":"https://avatars0.githubusercontent.com/u/6600919?v=4","gravatar_id":"","url":"https://api.github.com/users/erawhctim","html_url":"https://github.com/erawhctim","followers_url":"https://api.github.com/users/erawhctim/followers","following_url":"https://api.github.com/users/erawhctim/following{/other_user}","gists_url":"https://api.github.com/users/erawhctim/gists{/gist_id}","starred_url":"https://api.github.com/users/erawhctim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erawhctim/subscriptions","organizations_url":"https://api.github.com/users/erawhctim/orgs","repos_url":"https://api.github.com/users/erawhctim/repos","events_url":"https://api.github.com/users/erawhctim/events{/privacy}","received_events_url":"https://api.github.com/users/erawhctim/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T22:02:40Z","updated_at":"2018-03-08T22:02:40Z","author_association":"NONE","body":"@romshiri I was wondering the same thing. From what I can tell, Dexter doesn't have a method to do this, I would guess because the [actual platform API call](https://developer.android.com/reference/android/support/v4/content/ContextCompat.html#checkSelfPermission%29android.content.Context,%20java.lang.String%29) call is simple enough that there's no need to make a dexter wrapper around it. I'd just stick with that:\r\n```\r\nval calendarPermissionGranted = ContextCompat.checkSelfPermission(thisActivity, Manifest.permission.WRITE_CALENDAR) == PackageManager.PERMISSION_GRANTED\r\n```"}}
{"actor":{"display_login":"erawhctim"}}