{"action":"created","comment":{"url":"https://api.github.com/repos/vycius/NMAkademija/pulls/comments/76374529","id":76374529,"diff_hunk":"@@ -84,9 +84,25 @@ private void setScheduleItems(List<ScheduleEvent> scheduleEvents) {\n         }\n \n         Collections.sort(scheduleItems, new ScheduleItemComparator());\n+        int i = 0;\n+        Date now = new Date();\n+        while (i < scheduleItems.size()) {\n+            if (scheduleItems.get(i).getDate().before(now))\n+                i = i + 1;\n+            else\n+                break;\n+        }\n \n-        ScheduleAdapter adapter = new ScheduleAdapter(getContext(), scheduleItems);\n+        ScheduleAdapter adapter = new ScheduleAdapter(scheduleItems);\n         scheduleListView.setAdapter(adapter);\n+        scheduleListView.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));\n+        scheduleListView.setHasFixedSize(false);\n+        if (i < scheduleItems.size()) {\n+            scheduleListView.scrollToPosition(i);\n+            //TODO if(i+1==scheduleItems.size())    bottomnavigation.dontshow\n+        } else {\n+            Error.oldData(getView());","path":"app/src/main/java/com/nmakademija/nmaakademija/fragment/ScheduleFragment.java","position":54,"original_position":54,"commit_id":"59fb7a47917256afe4df6f47f4dfdbfc2eef901e","original_commit_id":"59fb7a47917256afe4df6f47f4dfdbfc2eef901e","user":{"login":"Dekedro","id":18313444,"avatar_url":"https://avatars.githubusercontent.com/u/18313444?v=3","gravatar_id":"","url":"https://api.github.com/users/Dekedro","html_url":"https://github.com/Dekedro","followers_url":"https://api.github.com/users/Dekedro/followers","following_url":"https://api.github.com/users/Dekedro/following{/other_user}","gists_url":"https://api.github.com/users/Dekedro/gists{/gist_id}","starred_url":"https://api.github.com/users/Dekedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dekedro/subscriptions","organizations_url":"https://api.github.com/users/Dekedro/orgs","repos_url":"https://api.github.com/users/Dekedro/repos","events_url":"https://api.github.com/users/Dekedro/events{/privacy}","received_events_url":"https://api.github.com/users/Dekedro/received_events","type":"User","site_admin":false},"body":"WTF? If there is no upcoming events, then you shouldn't show error or do anything like this. Why did you add this function?","created_at":"2016-08-26T07:22:14Z","updated_at":"2016-08-26T07:22:14Z","html_url":"https://github.com/vycius/NMAkademija/pull/23#discussion_r76374529","pull_request_url":"https://api.github.com/repos/vycius/NMAkademija/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/comments/76374529"},"html":{"href":"https://github.com/vycius/NMAkademija/pull/23#discussion_r76374529"},"pull_request":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/vycius/NMAkademija/pulls/23","id":82835401,"html_url":"https://github.com/vycius/NMAkademija/pull/23","diff_url":"https://github.com/vycius/NMAkademija/pull/23.diff","patch_url":"https://github.com/vycius/NMAkademija/pull/23.patch","issue_url":"https://api.github.com/repos/vycius/NMAkademija/issues/23","number":23,"state":"open","locked":false,"title":"Update schedule","user":{"login":"gediminasel","id":21194519,"avatar_url":"https://avatars.githubusercontent.com/u/21194519?v=3","gravatar_id":"","url":"https://api.github.com/users/gediminasel","html_url":"https://github.com/gediminasel","followers_url":"https://api.github.com/users/gediminasel/followers","following_url":"https://api.github.com/users/gediminasel/following{/other_user}","gists_url":"https://api.github.com/users/gediminasel/gists{/gist_id}","starred_url":"https://api.github.com/users/gediminasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gediminasel/subscriptions","organizations_url":"https://api.github.com/users/gediminasel/orgs","repos_url":"https://api.github.com/users/gediminasel/repos","events_url":"https://api.github.com/users/gediminasel/events{/privacy}","received_events_url":"https://api.github.com/users/gediminasel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-26T05:53:39Z","updated_at":"2016-08-26T07:22:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89d1b6d0bbded8498f648c37ace9e522e69cf8c2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vycius/NMAkademija/pulls/23/commits","review_comments_url":"https://api.github.com/repos/vycius/NMAkademija/pulls/23/comments","review_comment_url":"https://api.github.com/repos/vycius/NMAkademija/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vycius/NMAkademija/issues/23/comments","statuses_url":"https://api.github.com/repos/vycius/NMAkademija/statuses/59fb7a47917256afe4df6f47f4dfdbfc2eef901e","head":{"label":"vycius:update/schedule","ref":"update/schedule","sha":"59fb7a47917256afe4df6f47f4dfdbfc2eef901e","user":{"login":"vycius","id":3719141,"avatar_url":"https://avatars.githubusercontent.com/u/3719141?v=3","gravatar_id":"","url":"https://api.github.com/users/vycius","html_url":"https://github.com/vycius","followers_url":"https://api.github.com/users/vycius/followers","following_url":"https://api.github.com/users/vycius/following{/other_user}","gists_url":"https://api.github.com/users/vycius/gists{/gist_id}","starred_url":"https://api.github.com/users/vycius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vycius/subscriptions","organizations_url":"https://api.github.com/users/vycius/orgs","repos_url":"https://api.github.com/users/vycius/repos","events_url":"https://api.github.com/users/vycius/events{/privacy}","received_events_url":"https://api.github.com/users/vycius/received_events","type":"User","site_admin":false},"repo":{"id":66378139,"name":"NMAkademija","full_name":"vycius/NMAkademija","owner":{"login":"vycius","id":3719141,"avatar_url":"https://avatars.githubusercontent.com/u/3719141?v=3","gravatar_id":"","url":"https://api.github.com/users/vycius","html_url":"https://github.com/vycius","followers_url":"https://api.github.com/users/vycius/followers","following_url":"https://api.github.com/users/vycius/following{/other_user}","gists_url":"https://api.github.com/users/vycius/gists{/gist_id}","starred_url":"https://api.github.com/users/vycius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vycius/subscriptions","organizations_url":"https://api.github.com/users/vycius/orgs","repos_url":"https://api.github.com/users/vycius/repos","events_url":"https://api.github.com/users/vycius/events{/privacy}","received_events_url":"https://api.github.com/users/vycius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vycius/NMAkademija","description":null,"fork":false,"url":"https://api.github.com/repos/vycius/NMAkademija","forks_url":"https://api.github.com/repos/vycius/NMAkademija/forks","keys_url":"https://api.github.com/repos/vycius/NMAkademija/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vycius/NMAkademija/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vycius/NMAkademija/teams","hooks_url":"https://api.github.com/repos/vycius/NMAkademija/hooks","issue_events_url":"https://api.github.com/repos/vycius/NMAkademija/issues/events{/number}","events_url":"https://api.github.com/repos/vycius/NMAkademija/events","assignees_url":"https://api.github.com/repos/vycius/NMAkademija/assignees{/user}","branches_url":"https://api.github.com/repos/vycius/NMAkademija/branches{/branch}","tags_url":"https://api.github.com/repos/vycius/NMAkademija/tags","blobs_url":"https://api.github.com/repos/vycius/NMAkademija/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vycius/NMAkademija/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vycius/NMAkademija/git/refs{/sha}","trees_url":"https://api.github.com/repos/vycius/NMAkademija/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vycius/NMAkademija/statuses/{sha}","languages_url":"https://api.github.com/repos/vycius/NMAkademija/languages","stargazers_url":"https://api.github.com/repos/vycius/NMAkademija/stargazers","contributors_url":"https://api.github.com/repos/vycius/NMAkademija/contributors","subscribers_url":"https://api.github.com/repos/vycius/NMAkademija/subscribers","subscription_url":"https://api.github.com/repos/vycius/NMAkademija/subscription","commits_url":"https://api.github.com/repos/vycius/NMAkademija/commits{/sha}","git_commits_url":"https://api.github.com/repos/vycius/NMAkademija/git/commits{/sha}","comments_url":"https://api.github.com/repos/vycius/NMAkademija/comments{/number}","issue_comment_url":"https://api.github.com/repos/vycius/NMAkademija/issues/comments{/number}","contents_url":"https://api.github.com/repos/vycius/NMAkademija/contents/{+path}","compare_url":"https://api.github.com/repos/vycius/NMAkademija/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vycius/NMAkademija/merges","archive_url":"https://api.github.com/repos/vycius/NMAkademija/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vycius/NMAkademija/downloads","issues_url":"https://api.github.com/repos/vycius/NMAkademija/issues{/number}","pulls_url":"https://api.github.com/repos/vycius/NMAkademija/pulls{/number}","milestones_url":"https://api.github.com/repos/vycius/NMAkademija/milestones{/number}","notifications_url":"https://api.github.com/repos/vycius/NMAkademija/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vycius/NMAkademija/labels{/name}","releases_url":"https://api.github.com/repos/vycius/NMAkademija/releases{/id}","deployments_url":"https://api.github.com/repos/vycius/NMAkademija/deployments","created_at":"2016-08-23T15:12:37Z","updated_at":"2016-08-23T15:16:08Z","pushed_at":"2016-08-26T06:07:02Z","git_url":"git://github.com/vycius/NMAkademija.git","ssh_url":"git@github.com:vycius/NMAkademija.git","clone_url":"https://github.com/vycius/NMAkademija.git","svn_url":"https://github.com/vycius/NMAkademija","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"vycius:master","ref":"master","sha":"c9cd1605e6359879d36e4d3bd7aa7f3ce7faf189","user":{"login":"vycius","id":3719141,"avatar_url":"https://avatars.githubusercontent.com/u/3719141?v=3","gravatar_id":"","url":"https://api.github.com/users/vycius","html_url":"https://github.com/vycius","followers_url":"https://api.github.com/users/vycius/followers","following_url":"https://api.github.com/users/vycius/following{/other_user}","gists_url":"https://api.github.com/users/vycius/gists{/gist_id}","starred_url":"https://api.github.com/users/vycius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vycius/subscriptions","organizations_url":"https://api.github.com/users/vycius/orgs","repos_url":"https://api.github.com/users/vycius/repos","events_url":"https://api.github.com/users/vycius/events{/privacy}","received_events_url":"https://api.github.com/users/vycius/received_events","type":"User","site_admin":false},"repo":{"id":66378139,"name":"NMAkademija","full_name":"vycius/NMAkademija","owner":{"login":"vycius","id":3719141,"avatar_url":"https://avatars.githubusercontent.com/u/3719141?v=3","gravatar_id":"","url":"https://api.github.com/users/vycius","html_url":"https://github.com/vycius","followers_url":"https://api.github.com/users/vycius/followers","following_url":"https://api.github.com/users/vycius/following{/other_user}","gists_url":"https://api.github.com/users/vycius/gists{/gist_id}","starred_url":"https://api.github.com/users/vycius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vycius/subscriptions","organizations_url":"https://api.github.com/users/vycius/orgs","repos_url":"https://api.github.com/users/vycius/repos","events_url":"https://api.github.com/users/vycius/events{/privacy}","received_events_url":"https://api.github.com/users/vycius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vycius/NMAkademija","description":null,"fork":false,"url":"https://api.github.com/repos/vycius/NMAkademija","forks_url":"https://api.github.com/repos/vycius/NMAkademija/forks","keys_url":"https://api.github.com/repos/vycius/NMAkademija/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vycius/NMAkademija/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vycius/NMAkademija/teams","hooks_url":"https://api.github.com/repos/vycius/NMAkademija/hooks","issue_events_url":"https://api.github.com/repos/vycius/NMAkademija/issues/events{/number}","events_url":"https://api.github.com/repos/vycius/NMAkademija/events","assignees_url":"https://api.github.com/repos/vycius/NMAkademija/assignees{/user}","branches_url":"https://api.github.com/repos/vycius/NMAkademija/branches{/branch}","tags_url":"https://api.github.com/repos/vycius/NMAkademija/tags","blobs_url":"https://api.github.com/repos/vycius/NMAkademija/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vycius/NMAkademija/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vycius/NMAkademija/git/refs{/sha}","trees_url":"https://api.github.com/repos/vycius/NMAkademija/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vycius/NMAkademija/statuses/{sha}","languages_url":"https://api.github.com/repos/vycius/NMAkademija/languages","stargazers_url":"https://api.github.com/repos/vycius/NMAkademija/stargazers","contributors_url":"https://api.github.com/repos/vycius/NMAkademija/contributors","subscribers_url":"https://api.github.com/repos/vycius/NMAkademija/subscribers","subscription_url":"https://api.github.com/repos/vycius/NMAkademija/subscription","commits_url":"https://api.github.com/repos/vycius/NMAkademija/commits{/sha}","git_commits_url":"https://api.github.com/repos/vycius/NMAkademija/git/commits{/sha}","comments_url":"https://api.github.com/repos/vycius/NMAkademija/comments{/number}","issue_comment_url":"https://api.github.com/repos/vycius/NMAkademija/issues/comments{/number}","contents_url":"https://api.github.com/repos/vycius/NMAkademija/contents/{+path}","compare_url":"https://api.github.com/repos/vycius/NMAkademija/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vycius/NMAkademija/merges","archive_url":"https://api.github.com/repos/vycius/NMAkademija/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vycius/NMAkademija/downloads","issues_url":"https://api.github.com/repos/vycius/NMAkademija/issues{/number}","pulls_url":"https://api.github.com/repos/vycius/NMAkademija/pulls{/number}","milestones_url":"https://api.github.com/repos/vycius/NMAkademija/milestones{/number}","notifications_url":"https://api.github.com/repos/vycius/NMAkademija/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vycius/NMAkademija/labels{/name}","releases_url":"https://api.github.com/repos/vycius/NMAkademija/releases{/id}","deployments_url":"https://api.github.com/repos/vycius/NMAkademija/deployments","created_at":"2016-08-23T15:12:37Z","updated_at":"2016-08-23T15:16:08Z","pushed_at":"2016-08-26T06:07:02Z","git_url":"git://github.com/vycius/NMAkademija.git","ssh_url":"git@github.com:vycius/NMAkademija.git","clone_url":"https://github.com/vycius/NMAkademija.git","svn_url":"https://github.com/vycius/NMAkademija","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/23"},"html":{"href":"https://github.com/vycius/NMAkademija/pull/23"},"issue":{"href":"https://api.github.com/repos/vycius/NMAkademija/issues/23"},"comments":{"href":"https://api.github.com/repos/vycius/NMAkademija/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vycius/NMAkademija/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/vycius/NMAkademija/statuses/59fb7a47917256afe4df6f47f4dfdbfc2eef901e"}}}}
{"actor":{"display_login":"Dekedro"}}