{"action":"closed","issue":{"url":"https://api.github.com/repos/florent37/RuntimePermission/issues/3","repository_url":"https://api.github.com/repos/florent37/RuntimePermission","labels_url":"https://api.github.com/repos/florent37/RuntimePermission/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/florent37/RuntimePermission/issues/3/comments","events_url":"https://api.github.com/repos/florent37/RuntimePermission/issues/3/events","html_url":"https://github.com/florent37/RuntimePermission/issues/3","id":306839031,"node_id":"MDU6SXNzdWUzMDY4MzkwMzE=","number":3,"title":"Java 7: No matter the selection, askPermission falls in the onDenied block","user":{"login":"MalcolmMcFly","id":15109016,"node_id":"MDQ6VXNlcjE1MTA5MDE2","avatar_url":"https://avatars1.githubusercontent.com/u/15109016?v=4","gravatar_id":"","url":"https://api.github.com/users/MalcolmMcFly","html_url":"https://github.com/MalcolmMcFly","followers_url":"https://api.github.com/users/MalcolmMcFly/followers","following_url":"https://api.github.com/users/MalcolmMcFly/following{/other_user}","gists_url":"https://api.github.com/users/MalcolmMcFly/gists{/gist_id}","starred_url":"https://api.github.com/users/MalcolmMcFly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MalcolmMcFly/subscriptions","organizations_url":"https://api.github.com/users/MalcolmMcFly/orgs","repos_url":"https://api.github.com/users/MalcolmMcFly/repos","events_url":"https://api.github.com/users/MalcolmMcFly/events{/privacy}","received_events_url":"https://api.github.com/users/MalcolmMcFly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-20T12:10:11Z","updated_at":"2018-09-07T09:26:05Z","closed_at":"2018-09-07T09:26:05Z","author_association":"NONE","body":"I have a pretty basic Java 7 implementation. No matter what the user selects, I am always falling in the onDenied block:\r\n\r\n```public void sharePhoto(View view) {\r\n        Toast.makeText(this, \"photo button pressed\", Toast.LENGTH_SHORT).show();\r\n        askPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE,Manifest.permission.READ_EXTERNAL_STORAGE)\r\n                .ask(new PermissionListener() {\r\n                    @Override\r\n                    public void onAccepted(RuntimePermission runtimePermission, List<String> accepted) {\r\n                        Toast.makeText(DetailActivity.this, \"permission accepted\", Toast.LENGTH_SHORT).show();\r\n                    }\r\n\r\n                    @Override\r\n                    public void onDenied(RuntimePermission runtimePermission, List<String> denied, List<String> foreverDenied) {\r\n                        // permission denied\r\n                        Timber.d(\"permissions denied\");\r\n                        Toast.makeText(DetailActivity.this, \"permission denied\", Toast.LENGTH_SHORT).show();\r\n                    }\r\n                });\r\n    }"}}
{"actor":{"display_login":"florent37"}}