{"action":"created","issue":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/31","labels_url":"https://api.github.com/repos/Karumi/Dexter/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Karumi/Dexter/issues/31/comments","events_url":"https://api.github.com/repos/Karumi/Dexter/issues/31/events","html_url":"https://github.com/Karumi/Dexter/issues/31","id":120650306,"number":31,"title":"Keep execution context on permission requested.","user":{"login":"cmc00022","id":3494156,"avatar_url":"https://avatars.githubusercontent.com/u/3494156?v=3","gravatar_id":"","url":"https://api.github.com/users/cmc00022","html_url":"https://github.com/cmc00022","followers_url":"https://api.github.com/users/cmc00022/followers","following_url":"https://api.github.com/users/cmc00022/following{/other_user}","gists_url":"https://api.github.com/users/cmc00022/gists{/gist_id}","starred_url":"https://api.github.com/users/cmc00022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmc00022/subscriptions","organizations_url":"https://api.github.com/users/cmc00022/orgs","repos_url":"https://api.github.com/users/cmc00022/repos","events_url":"https://api.github.com/users/cmc00022/events{/privacy}","received_events_url":"https://api.github.com/users/cmc00022/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Karumi/Dexter/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Karumi/Dexter/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-06T18:30:44Z","updated_at":"2015-12-14T09:32:27Z","closed_at":null,"body":"Hi guys,\r\n\r\nI just found out a behaviour that I was not expecting, although I'm not quite sure it should be consider as an issue. But definitely it's something I wasn't expecting.\r\n\r\nIf a permission is requested from a background thread the result is returned on the main thread. \r\n\r\nI was having a look at the code and the reason seems to be that when the internal activity that the lib uses is started it changes the thread under the covers.\r\n\r\nI'd like to know what are you thoughts about this.\r\n\r\nCheers."},"comment":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/comments/164388859","html_url":"https://github.com/Karumi/Dexter/issues/31#issuecomment-164388859","issue_url":"https://api.github.com/repos/Karumi/Dexter/issues/31","id":164388859,"user":{"login":"cmc00022","id":3494156,"avatar_url":"https://avatars.githubusercontent.com/u/3494156?v=3","gravatar_id":"","url":"https://api.github.com/users/cmc00022","html_url":"https://github.com/cmc00022","followers_url":"https://api.github.com/users/cmc00022/followers","following_url":"https://api.github.com/users/cmc00022/following{/other_user}","gists_url":"https://api.github.com/users/cmc00022/gists{/gist_id}","starred_url":"https://api.github.com/users/cmc00022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmc00022/subscriptions","organizations_url":"https://api.github.com/users/cmc00022/orgs","repos_url":"https://api.github.com/users/cmc00022/repos","events_url":"https://api.github.com/users/cmc00022/events{/privacy}","received_events_url":"https://api.github.com/users/cmc00022/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T09:32:27Z","updated_at":"2015-12-14T09:32:27Z","body":"Ok, I'll try to find some spare time and have a working solution by the end of this week. I'll get back to you then.\r\n\r\nThanks."}}