{"action":"created","comment":{"url":"https://api.github.com/repos/greysonp/permiso/pulls/comments/72833017","id":72833017,"diff_hunk":"@@ -178,9 +180,17 @@ public void onRequestPermissionResult(int requestCode, String[] permissions, int\n      */\n     @MainThread\n     public void showRationaleInDialog(@Nullable String title, @NonNull String message, @Nullable String buttonText, @NonNull final IOnRationaleProvided rationaleCallback) {\n-        checkActivity();\n+        Activity activity = checkActivity();\n \n-        PermisoDialogFragment dialogFragment = PermisoDialogFragment.newInstance(title, message, buttonText);\n+        FragmentManager fm = activity.getFragmentManager();\n+\n+        PermisoDialogFragment dialogFragment = (PermisoDialogFragment) fm.findFragmentByTag(PermisoDialogFragment.TAG);\n+        if (dialogFragment != null)\n+        {","path":"permiso/src/main/java/com/greysonparrelli/permiso/Permiso.java","position":57,"original_position":57,"commit_id":"663ba0b5218e3d93bd1c9ff16061d5e0e5d648a5","original_commit_id":"663ba0b5218e3d93bd1c9ff16061d5e0e5d648a5","user":{"login":"greysonp","id":1358731,"avatar_url":"https://avatars.githubusercontent.com/u/1358731?v=3","gravatar_id":"","url":"https://api.github.com/users/greysonp","html_url":"https://github.com/greysonp","followers_url":"https://api.github.com/users/greysonp/followers","following_url":"https://api.github.com/users/greysonp/following{/other_user}","gists_url":"https://api.github.com/users/greysonp/gists{/gist_id}","starred_url":"https://api.github.com/users/greysonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greysonp/subscriptions","organizations_url":"https://api.github.com/users/greysonp/orgs","repos_url":"https://api.github.com/users/greysonp/repos","events_url":"https://api.github.com/users/greysonp/events{/privacy}","received_events_url":"https://api.github.com/users/greysonp/received_events","type":"User","site_admin":false},"body":"Same-line curly brace please :)","created_at":"2016-07-29T17:50:40Z","updated_at":"2016-07-29T17:50:40Z","html_url":"https://github.com/greysonp/permiso/pull/15#discussion_r72833017","pull_request_url":"https://api.github.com/repos/greysonp/permiso/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/comments/72833017"},"html":{"href":"https://github.com/greysonp/permiso/pull/15#discussion_r72833017"},"pull_request":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/greysonp/permiso/pulls/15","id":69080443,"html_url":"https://github.com/greysonp/permiso/pull/15","diff_url":"https://github.com/greysonp/permiso/pull/15.diff","patch_url":"https://github.com/greysonp/permiso/pull/15.patch","issue_url":"https://api.github.com/repos/greysonp/permiso/issues/15","number":15,"state":"open","locked":false,"title":"Dialogfragment","user":{"login":"paulpv","id":1393897,"avatar_url":"https://avatars.githubusercontent.com/u/1393897?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpv","html_url":"https://github.com/paulpv","followers_url":"https://api.github.com/users/paulpv/followers","following_url":"https://api.github.com/users/paulpv/following{/other_user}","gists_url":"https://api.github.com/users/paulpv/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpv/subscriptions","organizations_url":"https://api.github.com/users/paulpv/orgs","repos_url":"https://api.github.com/users/paulpv/repos","events_url":"https://api.github.com/users/paulpv/events{/privacy}","received_events_url":"https://api.github.com/users/paulpv/received_events","type":"User","site_admin":false},"body":"Proposed fix for #14 (and a few other updates)","created_at":"2016-05-05T22:25:04Z","updated_at":"2016-07-29T17:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7331ee02d2ad0123459a1cf178a9aa5b7b117c62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/greysonp/permiso/pulls/15/commits","review_comments_url":"https://api.github.com/repos/greysonp/permiso/pulls/15/comments","review_comment_url":"https://api.github.com/repos/greysonp/permiso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/greysonp/permiso/issues/15/comments","statuses_url":"https://api.github.com/repos/greysonp/permiso/statuses/663ba0b5218e3d93bd1c9ff16061d5e0e5d648a5","head":{"label":"paulpv:dialogfragment","ref":"dialogfragment","sha":"663ba0b5218e3d93bd1c9ff16061d5e0e5d648a5","user":{"login":"paulpv","id":1393897,"avatar_url":"https://avatars.githubusercontent.com/u/1393897?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpv","html_url":"https://github.com/paulpv","followers_url":"https://api.github.com/users/paulpv/followers","following_url":"https://api.github.com/users/paulpv/following{/other_user}","gists_url":"https://api.github.com/users/paulpv/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpv/subscriptions","organizations_url":"https://api.github.com/users/paulpv/orgs","repos_url":"https://api.github.com/users/paulpv/repos","events_url":"https://api.github.com/users/paulpv/events{/privacy}","received_events_url":"https://api.github.com/users/paulpv/received_events","type":"User","site_admin":false},"repo":{"id":58163090,"name":"permiso","full_name":"paulpv/permiso","owner":{"login":"paulpv","id":1393897,"avatar_url":"https://avatars.githubusercontent.com/u/1393897?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpv","html_url":"https://github.com/paulpv","followers_url":"https://api.github.com/users/paulpv/followers","following_url":"https://api.github.com/users/paulpv/following{/other_user}","gists_url":"https://api.github.com/users/paulpv/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpv/subscriptions","organizations_url":"https://api.github.com/users/paulpv/orgs","repos_url":"https://api.github.com/users/paulpv/repos","events_url":"https://api.github.com/users/paulpv/events{/privacy}","received_events_url":"https://api.github.com/users/paulpv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulpv/permiso","description":"An Android library to make handling runtime permissions a whole lot easier.","fork":true,"url":"https://api.github.com/repos/paulpv/permiso","forks_url":"https://api.github.com/repos/paulpv/permiso/forks","keys_url":"https://api.github.com/repos/paulpv/permiso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulpv/permiso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulpv/permiso/teams","hooks_url":"https://api.github.com/repos/paulpv/permiso/hooks","issue_events_url":"https://api.github.com/repos/paulpv/permiso/issues/events{/number}","events_url":"https://api.github.com/repos/paulpv/permiso/events","assignees_url":"https://api.github.com/repos/paulpv/permiso/assignees{/user}","branches_url":"https://api.github.com/repos/paulpv/permiso/branches{/branch}","tags_url":"https://api.github.com/repos/paulpv/permiso/tags","blobs_url":"https://api.github.com/repos/paulpv/permiso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulpv/permiso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulpv/permiso/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulpv/permiso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulpv/permiso/statuses/{sha}","languages_url":"https://api.github.com/repos/paulpv/permiso/languages","stargazers_url":"https://api.github.com/repos/paulpv/permiso/stargazers","contributors_url":"https://api.github.com/repos/paulpv/permiso/contributors","subscribers_url":"https://api.github.com/repos/paulpv/permiso/subscribers","subscription_url":"https://api.github.com/repos/paulpv/permiso/subscription","commits_url":"https://api.github.com/repos/paulpv/permiso/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulpv/permiso/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulpv/permiso/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulpv/permiso/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulpv/permiso/contents/{+path}","compare_url":"https://api.github.com/repos/paulpv/permiso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulpv/permiso/merges","archive_url":"https://api.github.com/repos/paulpv/permiso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulpv/permiso/downloads","issues_url":"https://api.github.com/repos/paulpv/permiso/issues{/number}","pulls_url":"https://api.github.com/repos/paulpv/permiso/pulls{/number}","milestones_url":"https://api.github.com/repos/paulpv/permiso/milestones{/number}","notifications_url":"https://api.github.com/repos/paulpv/permiso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulpv/permiso/labels{/name}","releases_url":"https://api.github.com/repos/paulpv/permiso/releases{/id}","deployments_url":"https://api.github.com/repos/paulpv/permiso/deployments","created_at":"2016-05-05T21:57:55Z","updated_at":"2016-05-05T21:57:56Z","pushed_at":"2016-05-06T18:52:58Z","git_url":"git://github.com/paulpv/permiso.git","ssh_url":"git@github.com:paulpv/permiso.git","clone_url":"https://github.com/paulpv/permiso.git","svn_url":"https://github.com/paulpv/permiso","homepage":"","size":154,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"greysonp:master","ref":"master","sha":"6d5086ba9e6d9f76623e2b78cdb15038b239c827","user":{"login":"greysonp","id":1358731,"avatar_url":"https://avatars.githubusercontent.com/u/1358731?v=3","gravatar_id":"","url":"https://api.github.com/users/greysonp","html_url":"https://github.com/greysonp","followers_url":"https://api.github.com/users/greysonp/followers","following_url":"https://api.github.com/users/greysonp/following{/other_user}","gists_url":"https://api.github.com/users/greysonp/gists{/gist_id}","starred_url":"https://api.github.com/users/greysonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greysonp/subscriptions","organizations_url":"https://api.github.com/users/greysonp/orgs","repos_url":"https://api.github.com/users/greysonp/repos","events_url":"https://api.github.com/users/greysonp/events{/privacy}","received_events_url":"https://api.github.com/users/greysonp/received_events","type":"User","site_admin":false},"repo":{"id":45596630,"name":"permiso","full_name":"greysonp/permiso","owner":{"login":"greysonp","id":1358731,"avatar_url":"https://avatars.githubusercontent.com/u/1358731?v=3","gravatar_id":"","url":"https://api.github.com/users/greysonp","html_url":"https://github.com/greysonp","followers_url":"https://api.github.com/users/greysonp/followers","following_url":"https://api.github.com/users/greysonp/following{/other_user}","gists_url":"https://api.github.com/users/greysonp/gists{/gist_id}","starred_url":"https://api.github.com/users/greysonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greysonp/subscriptions","organizations_url":"https://api.github.com/users/greysonp/orgs","repos_url":"https://api.github.com/users/greysonp/repos","events_url":"https://api.github.com/users/greysonp/events{/privacy}","received_events_url":"https://api.github.com/users/greysonp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/greysonp/permiso","description":"An Android library to make handling runtime permissions a whole lot easier.","fork":false,"url":"https://api.github.com/repos/greysonp/permiso","forks_url":"https://api.github.com/repos/greysonp/permiso/forks","keys_url":"https://api.github.com/repos/greysonp/permiso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greysonp/permiso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greysonp/permiso/teams","hooks_url":"https://api.github.com/repos/greysonp/permiso/hooks","issue_events_url":"https://api.github.com/repos/greysonp/permiso/issues/events{/number}","events_url":"https://api.github.com/repos/greysonp/permiso/events","assignees_url":"https://api.github.com/repos/greysonp/permiso/assignees{/user}","branches_url":"https://api.github.com/repos/greysonp/permiso/branches{/branch}","tags_url":"https://api.github.com/repos/greysonp/permiso/tags","blobs_url":"https://api.github.com/repos/greysonp/permiso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greysonp/permiso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greysonp/permiso/git/refs{/sha}","trees_url":"https://api.github.com/repos/greysonp/permiso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greysonp/permiso/statuses/{sha}","languages_url":"https://api.github.com/repos/greysonp/permiso/languages","stargazers_url":"https://api.github.com/repos/greysonp/permiso/stargazers","contributors_url":"https://api.github.com/repos/greysonp/permiso/contributors","subscribers_url":"https://api.github.com/repos/greysonp/permiso/subscribers","subscription_url":"https://api.github.com/repos/greysonp/permiso/subscription","commits_url":"https://api.github.com/repos/greysonp/permiso/commits{/sha}","git_commits_url":"https://api.github.com/repos/greysonp/permiso/git/commits{/sha}","comments_url":"https://api.github.com/repos/greysonp/permiso/comments{/number}","issue_comment_url":"https://api.github.com/repos/greysonp/permiso/issues/comments{/number}","contents_url":"https://api.github.com/repos/greysonp/permiso/contents/{+path}","compare_url":"https://api.github.com/repos/greysonp/permiso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greysonp/permiso/merges","archive_url":"https://api.github.com/repos/greysonp/permiso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greysonp/permiso/downloads","issues_url":"https://api.github.com/repos/greysonp/permiso/issues{/number}","pulls_url":"https://api.github.com/repos/greysonp/permiso/pulls{/number}","milestones_url":"https://api.github.com/repos/greysonp/permiso/milestones{/number}","notifications_url":"https://api.github.com/repos/greysonp/permiso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greysonp/permiso/labels{/name}","releases_url":"https://api.github.com/repos/greysonp/permiso/releases{/id}","deployments_url":"https://api.github.com/repos/greysonp/permiso/deployments","created_at":"2015-11-05T08:03:12Z","updated_at":"2016-07-22T09:44:26Z","pushed_at":"2016-07-25T14:46:33Z","git_url":"git://github.com/greysonp/permiso.git","ssh_url":"git@github.com:greysonp/permiso.git","clone_url":"https://github.com/greysonp/permiso.git","svn_url":"https://github.com/greysonp/permiso","homepage":"","size":153,"stargazers_count":136,"watchers_count":136,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":9,"forks":16,"open_issues":9,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/15"},"html":{"href":"https://github.com/greysonp/permiso/pull/15"},"issue":{"href":"https://api.github.com/repos/greysonp/permiso/issues/15"},"comments":{"href":"https://api.github.com/repos/greysonp/permiso/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/greysonp/permiso/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/greysonp/permiso/statuses/663ba0b5218e3d93bd1c9ff16061d5e0e5d648a5"}}}}
{"actor":{"display_login":"greysonp"}}