{"action":"created","issue":{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/16","labels_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/16/comments","events_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/16/events","html_url":"https://github.com/hotchemi/PermissionsDispatcher/issues/16","id":103553081,"number":16,"title":"Call the WithCheck method from Fragment. onRequestPermissionsResult is not called back","user":{"login":"katsuki-nakatani","id":6699802,"avatar_url":"https://avatars.githubusercontent.com/u/6699802?v=3","gravatar_id":"","url":"https://api.github.com/users/katsuki-nakatani","html_url":"https://github.com/katsuki-nakatani","followers_url":"https://api.github.com/users/katsuki-nakatani/followers","following_url":"https://api.github.com/users/katsuki-nakatani/following{/other_user}","gists_url":"https://api.github.com/users/katsuki-nakatani/gists{/gist_id}","starred_url":"https://api.github.com/users/katsuki-nakatani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katsuki-nakatani/subscriptions","organizations_url":"https://api.github.com/users/katsuki-nakatani/orgs","repos_url":"https://api.github.com/users/katsuki-nakatani/repos","events_url":"https://api.github.com/users/katsuki-nakatani/events{/privacy}","received_events_url":"https://api.github.com/users/katsuki-nakatani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/milestones/4","html_url":"https://github.com/hotchemi/PermissionsDispatcher/milestones/1.2.0","labels_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/milestones/4/labels","id":1268355,"number":4,"title":"1.2.0","description":"","creator":{"login":"hotchemi","id":471318,"avatar_url":"https://avatars.githubusercontent.com/u/471318?v=3","gravatar_id":"","url":"https://api.github.com/users/hotchemi","html_url":"https://github.com/hotchemi","followers_url":"https://api.github.com/users/hotchemi/followers","following_url":"https://api.github.com/users/hotchemi/following{/other_user}","gists_url":"https://api.github.com/users/hotchemi/gists{/gist_id}","starred_url":"https://api.github.com/users/hotchemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotchemi/subscriptions","organizations_url":"https://api.github.com/users/hotchemi/orgs","repos_url":"https://api.github.com/users/hotchemi/repos","events_url":"https://api.github.com/users/hotchemi/events{/privacy}","received_events_url":"https://api.github.com/users/hotchemi/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2015-08-23T21:49:04Z","updated_at":"2015-08-28T01:23:57Z","due_on":"2015-08-30T15:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-27T17:03:25Z","updated_at":"2015-09-02T04:32:00Z","closed_at":null,"body":"Generated Diapatcher.java withCheck method\r\n```\r\nActivityCompat.requestPermissions(target.getActivity(), PERMISSION_METHOD, REQUEST_METHOD);\r\n```\r\n\r\nIf the target is a fragment it is expected to be referred to as the FragmentCompat class below\r\n```\r\nFragmentCompat.requestPermissions(target, PERMISSION_METHOD, REQUEST_METHOD);\r\n```\r\n\r\nnot called as well shouldShowRequestPermissionRationale method\r\nIt is necessary to call in FragmentCompat\r\n\r\nWe hope that you add the fragment for the method to PermissionsUtils.java\r\n\r\n```\r\n public static boolean shouldShowRequestPermissionRationale(Fragment fragment, String... permissions) {\r\n        String[] var2 = permissions;\r\n        int var3 = permissions.length;\r\n\r\n        for(int var4 = 0; var4 < var3; ++var4) {\r\n            String permission = var2[var4];\r\n            if(FragmentCompat.shouldShowRequestPermissionRationale(fragment, permission)) {\r\n                return true;\r\n            }\r\n        }\r\n\r\n        return false;\r\n    }\r\n```\r\n\r\nBut if you make this change, there is a need to up the MinSDKVersion to 15\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/comments/136934939","html_url":"https://github.com/hotchemi/PermissionsDispatcher/issues/16#issuecomment-136934939","issue_url":"https://api.github.com/repos/hotchemi/PermissionsDispatcher/issues/16","id":136934939,"user":{"login":"hotchemi","id":471318,"avatar_url":"https://avatars.githubusercontent.com/u/471318?v=3","gravatar_id":"","url":"https://api.github.com/users/hotchemi","html_url":"https://github.com/hotchemi","followers_url":"https://api.github.com/users/hotchemi/followers","following_url":"https://api.github.com/users/hotchemi/following{/other_user}","gists_url":"https://api.github.com/users/hotchemi/gists{/gist_id}","starred_url":"https://api.github.com/users/hotchemi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotchemi/subscriptions","organizations_url":"https://api.github.com/users/hotchemi/orgs","repos_url":"https://api.github.com/users/hotchemi/repos","events_url":"https://api.github.com/users/hotchemi/events{/privacy}","received_events_url":"https://api.github.com/users/hotchemi/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T04:32:00Z","updated_at":"2015-09-02T04:32:00Z","body":"For the time being I'm gonna rule out android.app.Fragment. We should deal with it as a option but currently I have no idea about good interface..."}}