{"action":"created","comment":{"url":"https://api.github.com/repos/novoda/spikes/pulls/comments/84140045","pull_request_review_id":4936426,"id":84140045,"diff_hunk":"@@ -1,12 +1,18 @@\n package com.novoda.wallpaper.droidcon;\n \n-import java.util.Calendar;\n-\n class TimeOfDayCalculator {\n \n+    private static int flag = 0;\n+\n     TimeOfDay currentTimeOfDay() {\n-        Calendar calendar = Calendar.getInstance();\n-        int hourOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n-        return TimeOfDay.forHourOfDay(hourOfDay);\n+        TimeOfDay[] values = TimeOfDay.values();\n+        flag++;\n+        if (flag >= values.length) {\n+            flag = 0;\n+        }","path":"FacesofLondon/app/src/main/java/com/novoda/wallpaper/droidcon/TimeOfDayCalculator.java","position":17,"original_position":17,"commit_id":"fed8e47517979135fc821aca12b427651aacb8f8","original_commit_id":"fed8e47517979135fc821aca12b427651aacb8f8","user":{"login":"devisnik","id":1219911,"avatar_url":"https://avatars.githubusercontent.com/u/1219911?v=3","gravatar_id":"","url":"https://api.github.com/users/devisnik","html_url":"https://github.com/devisnik","followers_url":"https://api.github.com/users/devisnik/followers","following_url":"https://api.github.com/users/devisnik/following{/other_user}","gists_url":"https://api.github.com/users/devisnik/gists{/gist_id}","starred_url":"https://api.github.com/users/devisnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devisnik/subscriptions","organizations_url":"https://api.github.com/users/devisnik/orgs","repos_url":"https://api.github.com/users/devisnik/repos","events_url":"https://api.github.com/users/devisnik/events{/privacy}","received_events_url":"https://api.github.com/users/devisnik/received_events","type":"User","site_admin":false},"body":"Or `flags = (flags+1) % values.length` ?","created_at":"2016-10-19T18:46:33Z","updated_at":"2016-10-19T18:46:33Z","html_url":"https://github.com/novoda/spikes/pull/171#discussion_r84140045","pull_request_url":"https://api.github.com/repos/novoda/spikes/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/novoda/spikes/pulls/comments/84140045"},"html":{"href":"https://github.com/novoda/spikes/pull/171#discussion_r84140045"},"pull_request":{"href":"https://api.github.com/repos/novoda/spikes/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/novoda/spikes/pulls/171","id":89908142,"html_url":"https://github.com/novoda/spikes/pull/171","diff_url":"https://github.com/novoda/spikes/pull/171.diff","patch_url":"https://github.com/novoda/spikes/pull/171.patch","issue_url":"https://api.github.com/repos/novoda/spikes/issues/171","number":171,"state":"open","locked":false,"title":"Load assets according to time of day","user":{"login":"alexstyl","id":1665273,"avatar_url":"https://avatars.githubusercontent.com/u/1665273?v=3","gravatar_id":"","url":"https://api.github.com/users/alexstyl","html_url":"https://github.com/alexstyl","followers_url":"https://api.github.com/users/alexstyl/followers","following_url":"https://api.github.com/users/alexstyl/following{/other_user}","gists_url":"https://api.github.com/users/alexstyl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexstyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexstyl/subscriptions","organizations_url":"https://api.github.com/users/alexstyl/orgs","repos_url":"https://api.github.com/users/alexstyl/repos","events_url":"https://api.github.com/users/alexstyl/events{/privacy}","received_events_url":"https://api.github.com/users/alexstyl/received_events","type":"User","site_admin":false},"body":"In this PR we are actually switching out the displaying assets of the time of day we want to load. Previously we were loading 3 different layers at the same time. Now we are only loading one each time (as the images are static)\r\n\r\nFor the purpose of the screenshot I am switching out each asset everytime the screen is on:\r\n\r\n| Switching in action |\r\n| --- | \r\n| ![wallapper](https://cloud.githubusercontent.com/assets/1665273/19498188/988f3bc4-9587-11e6-8cfc-2965d110e016.gif) |\r\n\r\n_it looks better in person..._ :(","created_at":"2016-10-18T22:09:26Z","updated_at":"2016-10-19T18:46:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8faf9f942c54c948bcdbe33a3867fa7d42fb8c9b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/novoda/spikes/pulls/171/commits","review_comments_url":"https://api.github.com/repos/novoda/spikes/pulls/171/comments","review_comment_url":"https://api.github.com/repos/novoda/spikes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/novoda/spikes/issues/171/comments","statuses_url":"https://api.github.com/repos/novoda/spikes/statuses/fed8e47517979135fc821aca12b427651aacb8f8","head":{"label":"novoda:novodawallpaper/actually-switch-assets","ref":"novodawallpaper/actually-switch-assets","sha":"fed8e47517979135fc821aca12b427651aacb8f8","user":{"login":"novoda","id":74874,"avatar_url":"https://avatars.githubusercontent.com/u/74874?v=3","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"repo":{"id":13300550,"name":"spikes","full_name":"novoda/spikes","owner":{"login":"novoda","id":74874,"avatar_url":"https://avatars.githubusercontent.com/u/74874?v=3","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/novoda/spikes","description":"Where ideas & concepts are born & incubated","fork":false,"url":"https://api.github.com/repos/novoda/spikes","forks_url":"https://api.github.com/repos/novoda/spikes/forks","keys_url":"https://api.github.com/repos/novoda/spikes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/novoda/spikes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/novoda/spikes/teams","hooks_url":"https://api.github.com/repos/novoda/spikes/hooks","issue_events_url":"https://api.github.com/repos/novoda/spikes/issues/events{/number}","events_url":"https://api.github.com/repos/novoda/spikes/events","assignees_url":"https://api.github.com/repos/novoda/spikes/assignees{/user}","branches_url":"https://api.github.com/repos/novoda/spikes/branches{/branch}","tags_url":"https://api.github.com/repos/novoda/spikes/tags","blobs_url":"https://api.github.com/repos/novoda/spikes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/novoda/spikes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/novoda/spikes/git/refs{/sha}","trees_url":"https://api.github.com/repos/novoda/spikes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/novoda/spikes/statuses/{sha}","languages_url":"https://api.github.com/repos/novoda/spikes/languages","stargazers_url":"https://api.github.com/repos/novoda/spikes/stargazers","contributors_url":"https://api.github.com/repos/novoda/spikes/contributors","subscribers_url":"https://api.github.com/repos/novoda/spikes/subscribers","subscription_url":"https://api.github.com/repos/novoda/spikes/subscription","commits_url":"https://api.github.com/repos/novoda/spikes/commits{/sha}","git_commits_url":"https://api.github.com/repos/novoda/spikes/git/commits{/sha}","comments_url":"https://api.github.com/repos/novoda/spikes/comments{/number}","issue_comment_url":"https://api.github.com/repos/novoda/spikes/issues/comments{/number}","contents_url":"https://api.github.com/repos/novoda/spikes/contents/{+path}","compare_url":"https://api.github.com/repos/novoda/spikes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/novoda/spikes/merges","archive_url":"https://api.github.com/repos/novoda/spikes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/novoda/spikes/downloads","issues_url":"https://api.github.com/repos/novoda/spikes/issues{/number}","pulls_url":"https://api.github.com/repos/novoda/spikes/pulls{/number}","milestones_url":"https://api.github.com/repos/novoda/spikes/milestones{/number}","notifications_url":"https://api.github.com/repos/novoda/spikes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/novoda/spikes/labels{/name}","releases_url":"https://api.github.com/repos/novoda/spikes/releases{/id}","deployments_url":"https://api.github.com/repos/novoda/spikes/deployments","created_at":"2013-10-03T14:31:43Z","updated_at":"2016-10-14T09:01:42Z","pushed_at":"2016-10-19T17:23:06Z","git_url":"git://github.com/novoda/spikes.git","ssh_url":"git@github.com:novoda/spikes.git","clone_url":"https://github.com/novoda/spikes.git","svn_url":"https://github.com/novoda/spikes","homepage":"","size":44955,"stargazers_count":191,"watchers_count":191,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":191,"default_branch":"master"}},"base":{"label":"novoda:novodawallpaper/feature_time_of_day_assets","ref":"novodawallpaper/feature_time_of_day_assets","sha":"79003bc00288cd8f0c3cc7bea45f274d1da691fa","user":{"login":"novoda","id":74874,"avatar_url":"https://avatars.githubusercontent.com/u/74874?v=3","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"repo":{"id":13300550,"name":"spikes","full_name":"novoda/spikes","owner":{"login":"novoda","id":74874,"avatar_url":"https://avatars.githubusercontent.com/u/74874?v=3","gravatar_id":"","url":"https://api.github.com/users/novoda","html_url":"https://github.com/novoda","followers_url":"https://api.github.com/users/novoda/followers","following_url":"https://api.github.com/users/novoda/following{/other_user}","gists_url":"https://api.github.com/users/novoda/gists{/gist_id}","starred_url":"https://api.github.com/users/novoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/novoda/subscriptions","organizations_url":"https://api.github.com/users/novoda/orgs","repos_url":"https://api.github.com/users/novoda/repos","events_url":"https://api.github.com/users/novoda/events{/privacy}","received_events_url":"https://api.github.com/users/novoda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/novoda/spikes","description":"Where ideas & concepts are born & incubated","fork":false,"url":"https://api.github.com/repos/novoda/spikes","forks_url":"https://api.github.com/repos/novoda/spikes/forks","keys_url":"https://api.github.com/repos/novoda/spikes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/novoda/spikes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/novoda/spikes/teams","hooks_url":"https://api.github.com/repos/novoda/spikes/hooks","issue_events_url":"https://api.github.com/repos/novoda/spikes/issues/events{/number}","events_url":"https://api.github.com/repos/novoda/spikes/events","assignees_url":"https://api.github.com/repos/novoda/spikes/assignees{/user}","branches_url":"https://api.github.com/repos/novoda/spikes/branches{/branch}","tags_url":"https://api.github.com/repos/novoda/spikes/tags","blobs_url":"https://api.github.com/repos/novoda/spikes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/novoda/spikes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/novoda/spikes/git/refs{/sha}","trees_url":"https://api.github.com/repos/novoda/spikes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/novoda/spikes/statuses/{sha}","languages_url":"https://api.github.com/repos/novoda/spikes/languages","stargazers_url":"https://api.github.com/repos/novoda/spikes/stargazers","contributors_url":"https://api.github.com/repos/novoda/spikes/contributors","subscribers_url":"https://api.github.com/repos/novoda/spikes/subscribers","subscription_url":"https://api.github.com/repos/novoda/spikes/subscription","commits_url":"https://api.github.com/repos/novoda/spikes/commits{/sha}","git_commits_url":"https://api.github.com/repos/novoda/spikes/git/commits{/sha}","comments_url":"https://api.github.com/repos/novoda/spikes/comments{/number}","issue_comment_url":"https://api.github.com/repos/novoda/spikes/issues/comments{/number}","contents_url":"https://api.github.com/repos/novoda/spikes/contents/{+path}","compare_url":"https://api.github.com/repos/novoda/spikes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/novoda/spikes/merges","archive_url":"https://api.github.com/repos/novoda/spikes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/novoda/spikes/downloads","issues_url":"https://api.github.com/repos/novoda/spikes/issues{/number}","pulls_url":"https://api.github.com/repos/novoda/spikes/pulls{/number}","milestones_url":"https://api.github.com/repos/novoda/spikes/milestones{/number}","notifications_url":"https://api.github.com/repos/novoda/spikes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/novoda/spikes/labels{/name}","releases_url":"https://api.github.com/repos/novoda/spikes/releases{/id}","deployments_url":"https://api.github.com/repos/novoda/spikes/deployments","created_at":"2013-10-03T14:31:43Z","updated_at":"2016-10-14T09:01:42Z","pushed_at":"2016-10-19T17:23:06Z","git_url":"git://github.com/novoda/spikes.git","ssh_url":"git@github.com:novoda/spikes.git","clone_url":"https://github.com/novoda/spikes.git","svn_url":"https://github.com/novoda/spikes","homepage":"","size":44955,"stargazers_count":191,"watchers_count":191,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":191,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/novoda/spikes/pulls/171"},"html":{"href":"https://github.com/novoda/spikes/pull/171"},"issue":{"href":"https://api.github.com/repos/novoda/spikes/issues/171"},"comments":{"href":"https://api.github.com/repos/novoda/spikes/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/novoda/spikes/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/novoda/spikes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/novoda/spikes/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/novoda/spikes/statuses/fed8e47517979135fc821aca12b427651aacb8f8"}}}}
{"actor":{"display_login":"devisnik"}}