{"action":"created","comment":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments/60170990","id":60170990,"diff_hunk":"@@ -38,7 +39,6 @@ protected void onCreate(Bundle savedInstanceState) {\n         PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).\n                 registerOnSharedPreferenceChangeListener(this);\n \n-        castUICounter = 0;\n         mCastManager = CastManager.getInstance();\n         mCastManager.addCastConsumer(castConsumer);\n         isCastEnabled = UserPreferences.isCastEnabled();","path":"app/src/main/java/de/danoeh/antennapod/activity/CastEnabledActivity.java","position":null,"original_position":20,"commit_id":"c05d6564b0ffc164022107415c5164d09fa27cdc","original_commit_id":"c05d6564b0ffc164022107415c5164d09fa27cdc","user":{"login":"domingos86","id":9538859,"avatar_url":"https://avatars.githubusercontent.com/u/9538859?v=3","gravatar_id":"","url":"https://api.github.com/users/domingos86","html_url":"https://github.com/domingos86","followers_url":"https://api.github.com/users/domingos86/followers","following_url":"https://api.github.com/users/domingos86/following{/other_user}","gists_url":"https://api.github.com/users/domingos86/gists{/gist_id}","starred_url":"https://api.github.com/users/domingos86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domingos86/subscriptions","organizations_url":"https://api.github.com/users/domingos86/orgs","repos_url":"https://api.github.com/users/domingos86/repos","events_url":"https://api.github.com/users/domingos86/events{/privacy}","received_events_url":"https://api.github.com/users/domingos86/received_events","type":"User","site_admin":false},"body":"unlike when the preference is changed, here we're sure that `isResumed == false`, so no locking is needed","created_at":"2016-04-19T04:10:32Z","updated_at":"2016-04-19T04:10:32Z","html_url":"https://github.com/AntennaPod/AntennaPod/pull/1879#discussion_r60170990","pull_request_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879","_links":{"self":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments/60170990"},"html":{"href":"https://github.com/AntennaPod/AntennaPod/pull/1879#discussion_r60170990"},"pull_request":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879"}}},"pull_request":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879","id":66782899,"html_url":"https://github.com/AntennaPod/AntennaPod/pull/1879","diff_url":"https://github.com/AntennaPod/AntennaPod/pull/1879.diff","patch_url":"https://github.com/AntennaPod/AntennaPod/pull/1879.patch","issue_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1879","number":1879,"state":"open","locked":false,"title":"Chromecast issue 340 initial PR","user":{"login":"domingos86","id":9538859,"avatar_url":"https://avatars.githubusercontent.com/u/9538859?v=3","gravatar_id":"","url":"https://api.github.com/users/domingos86","html_url":"https://github.com/domingos86","followers_url":"https://api.github.com/users/domingos86/followers","following_url":"https://api.github.com/users/domingos86/following{/other_user}","gists_url":"https://api.github.com/users/domingos86/gists{/gist_id}","starred_url":"https://api.github.com/users/domingos86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domingos86/subscriptions","organizations_url":"https://api.github.com/users/domingos86/orgs","repos_url":"https://api.github.com/users/domingos86/repos","events_url":"https://api.github.com/users/domingos86/events{/privacy}","received_events_url":"https://api.github.com/users/domingos86/received_events","type":"User","site_admin":false},"body":"Related to #340 \r\n\r\nChromecast support will only be triggered once the user enables it in the settings.\r\nThe way it works is that, despite being disabled, all the chromecast support components are activated, but out of reach from the user. And if the user disables chromecast support, it also disconnects (if PlaybackService is started and was connected to a chromecast).\r\n\r\nIf it's disabled, the only thing that is supposed to affect the normal use of the app is in the `AudioplayerActivity`, where I'm setting the position seekbar to indeterminate whenever it's seeking or buffering (or perparing?). This does not affect the position it shows, just its background.\r\nI understand that, visually, there are certainly better ways to show the user it's doing some sort of loading, but I couldn't come up with an obviously better one given the current layout, and this one was extremely simple to implement.","created_at":"2016-04-17T21:55:25Z","updated_at":"2016-04-19T04:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccfd103549d8f4763b284ffe8c67603adfc89e10","assignee":null,"milestone":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/37","html_url":"https://github.com/AntennaPod/AntennaPod/milestones/1.6","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/37/labels","id":1554403,"number":37,"title":"1.6","description":null,"creator":{"login":"TomHennen","id":5216560,"avatar_url":"https://avatars.githubusercontent.com/u/5216560?v=3","gravatar_id":"","url":"https://api.github.com/users/TomHennen","html_url":"https://github.com/TomHennen","followers_url":"https://api.github.com/users/TomHennen/followers","following_url":"https://api.github.com/users/TomHennen/following{/other_user}","gists_url":"https://api.github.com/users/TomHennen/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHennen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHennen/subscriptions","organizations_url":"https://api.github.com/users/TomHennen/orgs","repos_url":"https://api.github.com/users/TomHennen/repos","events_url":"https://api.github.com/users/TomHennen/events{/privacy}","received_events_url":"https://api.github.com/users/TomHennen/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":62,"state":"open","created_at":"2016-02-01T00:29:38Z","updated_at":"2016-04-18T20:41:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879/commits","review_comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879/comments","review_comment_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1879/comments","statuses_url":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/c05d6564b0ffc164022107415c5164d09fa27cdc","head":{"label":"domingos86:chromecast-issue-340","ref":"chromecast-issue-340","sha":"c05d6564b0ffc164022107415c5164d09fa27cdc","user":{"login":"domingos86","id":9538859,"avatar_url":"https://avatars.githubusercontent.com/u/9538859?v=3","gravatar_id":"","url":"https://api.github.com/users/domingos86","html_url":"https://github.com/domingos86","followers_url":"https://api.github.com/users/domingos86/followers","following_url":"https://api.github.com/users/domingos86/following{/other_user}","gists_url":"https://api.github.com/users/domingos86/gists{/gist_id}","starred_url":"https://api.github.com/users/domingos86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domingos86/subscriptions","organizations_url":"https://api.github.com/users/domingos86/orgs","repos_url":"https://api.github.com/users/domingos86/repos","events_url":"https://api.github.com/users/domingos86/events{/privacy}","received_events_url":"https://api.github.com/users/domingos86/received_events","type":"User","site_admin":false},"repo":{"id":46543472,"name":"AntennaPod","full_name":"domingos86/AntennaPod","owner":{"login":"domingos86","id":9538859,"avatar_url":"https://avatars.githubusercontent.com/u/9538859?v=3","gravatar_id":"","url":"https://api.github.com/users/domingos86","html_url":"https://github.com/domingos86","followers_url":"https://api.github.com/users/domingos86/followers","following_url":"https://api.github.com/users/domingos86/following{/other_user}","gists_url":"https://api.github.com/users/domingos86/gists{/gist_id}","starred_url":"https://api.github.com/users/domingos86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domingos86/subscriptions","organizations_url":"https://api.github.com/users/domingos86/orgs","repos_url":"https://api.github.com/users/domingos86/repos","events_url":"https://api.github.com/users/domingos86/events{/privacy}","received_events_url":"https://api.github.com/users/domingos86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domingos86/AntennaPod","description":"A podcast manager for Android","fork":true,"url":"https://api.github.com/repos/domingos86/AntennaPod","forks_url":"https://api.github.com/repos/domingos86/AntennaPod/forks","keys_url":"https://api.github.com/repos/domingos86/AntennaPod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domingos86/AntennaPod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domingos86/AntennaPod/teams","hooks_url":"https://api.github.com/repos/domingos86/AntennaPod/hooks","issue_events_url":"https://api.github.com/repos/domingos86/AntennaPod/issues/events{/number}","events_url":"https://api.github.com/repos/domingos86/AntennaPod/events","assignees_url":"https://api.github.com/repos/domingos86/AntennaPod/assignees{/user}","branches_url":"https://api.github.com/repos/domingos86/AntennaPod/branches{/branch}","tags_url":"https://api.github.com/repos/domingos86/AntennaPod/tags","blobs_url":"https://api.github.com/repos/domingos86/AntennaPod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domingos86/AntennaPod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domingos86/AntennaPod/git/refs{/sha}","trees_url":"https://api.github.com/repos/domingos86/AntennaPod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domingos86/AntennaPod/statuses/{sha}","languages_url":"https://api.github.com/repos/domingos86/AntennaPod/languages","stargazers_url":"https://api.github.com/repos/domingos86/AntennaPod/stargazers","contributors_url":"https://api.github.com/repos/domingos86/AntennaPod/contributors","subscribers_url":"https://api.github.com/repos/domingos86/AntennaPod/subscribers","subscription_url":"https://api.github.com/repos/domingos86/AntennaPod/subscription","commits_url":"https://api.github.com/repos/domingos86/AntennaPod/commits{/sha}","git_commits_url":"https://api.github.com/repos/domingos86/AntennaPod/git/commits{/sha}","comments_url":"https://api.github.com/repos/domingos86/AntennaPod/comments{/number}","issue_comment_url":"https://api.github.com/repos/domingos86/AntennaPod/issues/comments{/number}","contents_url":"https://api.github.com/repos/domingos86/AntennaPod/contents/{+path}","compare_url":"https://api.github.com/repos/domingos86/AntennaPod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domingos86/AntennaPod/merges","archive_url":"https://api.github.com/repos/domingos86/AntennaPod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domingos86/AntennaPod/downloads","issues_url":"https://api.github.com/repos/domingos86/AntennaPod/issues{/number}","pulls_url":"https://api.github.com/repos/domingos86/AntennaPod/pulls{/number}","milestones_url":"https://api.github.com/repos/domingos86/AntennaPod/milestones{/number}","notifications_url":"https://api.github.com/repos/domingos86/AntennaPod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domingos86/AntennaPod/labels{/name}","releases_url":"https://api.github.com/repos/domingos86/AntennaPod/releases{/id}","deployments_url":"https://api.github.com/repos/domingos86/AntennaPod/deployments","created_at":"2015-11-20T06:17:00Z","updated_at":"2016-02-02T00:47:31Z","pushed_at":"2016-04-19T04:07:13Z","git_url":"git://github.com/domingos86/AntennaPod.git","ssh_url":"git@github.com:domingos86/AntennaPod.git","clone_url":"https://github.com/domingos86/AntennaPod.git","svn_url":"https://github.com/domingos86/AntennaPod","homepage":"","size":26540,"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":"develop"}},"base":{"label":"AntennaPod:develop","ref":"develop","sha":"6f15660b11ca35b0f4cae9d93ae24760ef8b095a","user":{"login":"AntennaPod","id":10713470,"avatar_url":"https://avatars.githubusercontent.com/u/10713470?v=3","gravatar_id":"","url":"https://api.github.com/users/AntennaPod","html_url":"https://github.com/AntennaPod","followers_url":"https://api.github.com/users/AntennaPod/followers","following_url":"https://api.github.com/users/AntennaPod/following{/other_user}","gists_url":"https://api.github.com/users/AntennaPod/gists{/gist_id}","starred_url":"https://api.github.com/users/AntennaPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntennaPod/subscriptions","organizations_url":"https://api.github.com/users/AntennaPod/orgs","repos_url":"https://api.github.com/users/AntennaPod/repos","events_url":"https://api.github.com/users/AntennaPod/events{/privacy}","received_events_url":"https://api.github.com/users/AntennaPod/received_events","type":"Organization","site_admin":false},"repo":{"id":5244445,"name":"AntennaPod","full_name":"AntennaPod/AntennaPod","owner":{"login":"AntennaPod","id":10713470,"avatar_url":"https://avatars.githubusercontent.com/u/10713470?v=3","gravatar_id":"","url":"https://api.github.com/users/AntennaPod","html_url":"https://github.com/AntennaPod","followers_url":"https://api.github.com/users/AntennaPod/followers","following_url":"https://api.github.com/users/AntennaPod/following{/other_user}","gists_url":"https://api.github.com/users/AntennaPod/gists{/gist_id}","starred_url":"https://api.github.com/users/AntennaPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntennaPod/subscriptions","organizations_url":"https://api.github.com/users/AntennaPod/orgs","repos_url":"https://api.github.com/users/AntennaPod/repos","events_url":"https://api.github.com/users/AntennaPod/events{/privacy}","received_events_url":"https://api.github.com/users/AntennaPod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AntennaPod/AntennaPod","description":"A podcast manager for Android","fork":false,"url":"https://api.github.com/repos/AntennaPod/AntennaPod","forks_url":"https://api.github.com/repos/AntennaPod/AntennaPod/forks","keys_url":"https://api.github.com/repos/AntennaPod/AntennaPod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntennaPod/AntennaPod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntennaPod/AntennaPod/teams","hooks_url":"https://api.github.com/repos/AntennaPod/AntennaPod/hooks","issue_events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/events{/number}","events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/events","assignees_url":"https://api.github.com/repos/AntennaPod/AntennaPod/assignees{/user}","branches_url":"https://api.github.com/repos/AntennaPod/AntennaPod/branches{/branch}","tags_url":"https://api.github.com/repos/AntennaPod/AntennaPod/tags","blobs_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/{sha}","languages_url":"https://api.github.com/repos/AntennaPod/AntennaPod/languages","stargazers_url":"https://api.github.com/repos/AntennaPod/AntennaPod/stargazers","contributors_url":"https://api.github.com/repos/AntennaPod/AntennaPod/contributors","subscribers_url":"https://api.github.com/repos/AntennaPod/AntennaPod/subscribers","subscription_url":"https://api.github.com/repos/AntennaPod/AntennaPod/subscription","commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntennaPod/AntennaPod/contents/{+path}","compare_url":"https://api.github.com/repos/AntennaPod/AntennaPod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntennaPod/AntennaPod/merges","archive_url":"https://api.github.com/repos/AntennaPod/AntennaPod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntennaPod/AntennaPod/downloads","issues_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues{/number}","pulls_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls{/number}","milestones_url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones{/number}","notifications_url":"https://api.github.com/repos/AntennaPod/AntennaPod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/labels{/name}","releases_url":"https://api.github.com/repos/AntennaPod/AntennaPod/releases{/id}","deployments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/deployments","created_at":"2012-07-31T10:25:08Z","updated_at":"2016-04-18T22:48:00Z","pushed_at":"2016-04-19T04:07:14Z","git_url":"git://github.com/AntennaPod/AntennaPod.git","ssh_url":"git@github.com:AntennaPod/AntennaPod.git","clone_url":"https://github.com/AntennaPod/AntennaPod.git","svn_url":"https://github.com/AntennaPod/AntennaPod","homepage":"","size":27124,"stargazers_count":1145,"watchers_count":1145,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":401,"mirror_url":null,"open_issues_count":148,"forks":401,"open_issues":148,"watchers":1145,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879"},"html":{"href":"https://github.com/AntennaPod/AntennaPod/pull/1879"},"issue":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1879"},"comments":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1879/comments"},"review_comments":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879/comments"},"review_comment":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1879/commits"},"statuses":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/c05d6564b0ffc164022107415c5164d09fa27cdc"}}}}