{"action":"created","comment":{"url":"https://api.github.com/repos/toggl/mobileapp/pulls/comments/186343793","pull_request_review_id":117901968,"id":186343793,"diff_hunk":"@@ -0,0 +1,64 @@\n+﻿using System;\n+using Android.Content;\n+using Android.Content.Res;\n+using Android.Runtime;\n+using Android.Support.V4.View;\n+using Android.Views;\n+using Android.Widget;\n+using Java.Lang;\n+using MvvmCross.Binding.BindingContext;\n+using MvvmCross.Binding.Droid.BindingContext;\n+using MvvmCross.Droid.Support.V4;\n+using Toggl.Foundation.MvvmCross.ViewModels;\n+using Toggl.Giskard.Extensions;\n+using Toggl.Giskard.Views;\n+using Object = Java.Lang.Object;\n+\n+namespace Toggl.Giskard.Adapters\n+{\n+    public sealed class SelectTimePagerAdapter : PagerAdapter\n+    {\n+        private int[] resources =\n+        {\n+            Resource.Layout.SelectStartDateTimeEditorPage,\n+            Resource.Layout.SelectStopDateTimeEditorPage,\n+            Resource.Layout.SelectTimeDurationPage\n+        };\n+\n+        private readonly Context context;","path":"Toggl.Giskard/Adapters/SelectTimePagerAdapter.cs","position":null,"original_position":28,"commit_id":"845df785086369abac6a949cfadcd340e4781072","original_commit_id":"984711fbbb32d2b6a0b46a8b446f8d681abfe5a9","user":{"login":"kornelijepetak","id":7033216,"avatar_url":"https://avatars2.githubusercontent.com/u/7033216?v=4","gravatar_id":"","url":"https://api.github.com/users/kornelijepetak","html_url":"https://github.com/kornelijepetak","followers_url":"https://api.github.com/users/kornelijepetak/followers","following_url":"https://api.github.com/users/kornelijepetak/following{/other_user}","gists_url":"https://api.github.com/users/kornelijepetak/gists{/gist_id}","starred_url":"https://api.github.com/users/kornelijepetak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kornelijepetak/subscriptions","organizations_url":"https://api.github.com/users/kornelijepetak/orgs","repos_url":"https://api.github.com/users/kornelijepetak/repos","events_url":"https://api.github.com/users/kornelijepetak/events{/privacy}","received_events_url":"https://api.github.com/users/kornelijepetak/received_events","type":"User","site_admin":false},"body":"Deleted.","created_at":"2018-05-07T07:15:46Z","updated_at":"2018-05-07T07:15:47Z","html_url":"https://github.com/toggl/mobileapp/pull/2010#discussion_r186343793","pull_request_url":"https://api.github.com/repos/toggl/mobileapp/pulls/2010","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/comments/186343793"},"html":{"href":"https://github.com/toggl/mobileapp/pull/2010#discussion_r186343793"},"pull_request":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/2010"}},"in_reply_to_id":186222217},"pull_request":{"url":"https://api.github.com/repos/toggl/mobileapp/pulls/2010","id":185519867,"html_url":"https://github.com/toggl/mobileapp/pull/2010","diff_url":"https://github.com/toggl/mobileapp/pull/2010.diff","patch_url":"https://github.com/toggl/mobileapp/pull/2010.patch","issue_url":"https://api.github.com/repos/toggl/mobileapp/issues/2010","number":2010,"state":"open","locked":false,"title":"DateTime popup - UI Interaction","user":{"login":"kornelijepetak","id":7033216,"avatar_url":"https://avatars2.githubusercontent.com/u/7033216?v=4","gravatar_id":"","url":"https://api.github.com/users/kornelijepetak","html_url":"https://github.com/kornelijepetak","followers_url":"https://api.github.com/users/kornelijepetak/followers","following_url":"https://api.github.com/users/kornelijepetak/following{/other_user}","gists_url":"https://api.github.com/users/kornelijepetak/gists{/gist_id}","starred_url":"https://api.github.com/users/kornelijepetak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kornelijepetak/subscriptions","organizations_url":"https://api.github.com/users/kornelijepetak/orgs","repos_url":"https://api.github.com/users/kornelijepetak/repos","events_url":"https://api.github.com/users/kornelijepetak/events{/privacy}","received_events_url":"https://api.github.com/users/kornelijepetak/received_events","type":"User","site_admin":false},"body":"Refs #1764 \r\n\r\n⚠️ This should be reviewed commit by commit.\r\n\r\nThis PR deals only with the UI interactions (you will see some ignorable stuff in comments). Those are there only to provide functionality until full behaviour is implemented.\r\n\r\nFor review simplicity, I will keep adding commits to this branch until the behavior is done.\r\n\r\nTODO: \r\n\r\n* [x] Duration shortcuts\r\n* [x] Selecting tabs should reset each tab to starting position (i.e. hour selection)\r\n* [x] Sometimes unknown behaviour crashes the app (need to check this) \r\n* [x] Tab's headers should update with changes/time\r\n* [x] Height is not calculated correctly from the content so OK/Cancel buttons are not visible :/\r\n* [x] Split start/stop when editing\r\n* [x] Finish editing dates\r\n* [x] Running entry's stop button\r\n* [x] Open appropriate tab depending on where it's clicked\r\n* [x] Hook commands and events\r\n* [x] Duration editing\r\n* [ ] Preventing selection in controls (min max dates etc)\r\n* [ ] Apply user's settings for formatting dates and time\r\n* [ ] General cleanup of unused code\r\n* [ ] Write tests","created_at":"2018-05-02T18:15:50Z","updated_at":"2018-05-07T07:15:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd2af5d9b6703e89a97de15949d017bb1d463b77","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":772341325,"url":"https://api.github.com/repos/toggl/mobileapp/labels/android","name":"android","color":"A4C639","default":false},{"id":646961568,"url":"https://api.github.com/repos/toggl/mobileapp/labels/blocking","name":"blocking","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/toggl/mobileapp/pulls/2010/commits","review_comments_url":"https://api.github.com/repos/toggl/mobileapp/pulls/2010/comments","review_comment_url":"https://api.github.com/repos/toggl/mobileapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toggl/mobileapp/issues/2010/comments","statuses_url":"https://api.github.com/repos/toggl/mobileapp/statuses/845df785086369abac6a949cfadcd340e4781072","head":{"label":"toggl:datetime-popup","ref":"datetime-popup","sha":"845df785086369abac6a949cfadcd340e4781072","user":{"login":"toggl","id":316475,"avatar_url":"https://avatars3.githubusercontent.com/u/316475?v=4","gravatar_id":"","url":"https://api.github.com/users/toggl","html_url":"https://github.com/toggl","followers_url":"https://api.github.com/users/toggl/followers","following_url":"https://api.github.com/users/toggl/following{/other_user}","gists_url":"https://api.github.com/users/toggl/gists{/gist_id}","starred_url":"https://api.github.com/users/toggl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toggl/subscriptions","organizations_url":"https://api.github.com/users/toggl/orgs","repos_url":"https://api.github.com/users/toggl/repos","events_url":"https://api.github.com/users/toggl/events{/privacy}","received_events_url":"https://api.github.com/users/toggl/received_events","type":"Organization","site_admin":false},"repo":{"id":87079363,"name":"mobileapp","full_name":"toggl/mobileapp","owner":{"login":"toggl","id":316475,"avatar_url":"https://avatars3.githubusercontent.com/u/316475?v=4","gravatar_id":"","url":"https://api.github.com/users/toggl","html_url":"https://github.com/toggl","followers_url":"https://api.github.com/users/toggl/followers","following_url":"https://api.github.com/users/toggl/following{/other_user}","gists_url":"https://api.github.com/users/toggl/gists{/gist_id}","starred_url":"https://api.github.com/users/toggl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toggl/subscriptions","organizations_url":"https://api.github.com/users/toggl/orgs","repos_url":"https://api.github.com/users/toggl/repos","events_url":"https://api.github.com/users/toggl/events{/privacy}","received_events_url":"https://api.github.com/users/toggl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/toggl/mobileapp","description":"Toggl's mobile apps","fork":false,"url":"https://api.github.com/repos/toggl/mobileapp","forks_url":"https://api.github.com/repos/toggl/mobileapp/forks","keys_url":"https://api.github.com/repos/toggl/mobileapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toggl/mobileapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toggl/mobileapp/teams","hooks_url":"https://api.github.com/repos/toggl/mobileapp/hooks","issue_events_url":"https://api.github.com/repos/toggl/mobileapp/issues/events{/number}","events_url":"https://api.github.com/repos/toggl/mobileapp/events","assignees_url":"https://api.github.com/repos/toggl/mobileapp/assignees{/user}","branches_url":"https://api.github.com/repos/toggl/mobileapp/branches{/branch}","tags_url":"https://api.github.com/repos/toggl/mobileapp/tags","blobs_url":"https://api.github.com/repos/toggl/mobileapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toggl/mobileapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toggl/mobileapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/toggl/mobileapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toggl/mobileapp/statuses/{sha}","languages_url":"https://api.github.com/repos/toggl/mobileapp/languages","stargazers_url":"https://api.github.com/repos/toggl/mobileapp/stargazers","contributors_url":"https://api.github.com/repos/toggl/mobileapp/contributors","subscribers_url":"https://api.github.com/repos/toggl/mobileapp/subscribers","subscription_url":"https://api.github.com/repos/toggl/mobileapp/subscription","commits_url":"https://api.github.com/repos/toggl/mobileapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/toggl/mobileapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/toggl/mobileapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/toggl/mobileapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/toggl/mobileapp/contents/{+path}","compare_url":"https://api.github.com/repos/toggl/mobileapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toggl/mobileapp/merges","archive_url":"https://api.github.com/repos/toggl/mobileapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toggl/mobileapp/downloads","issues_url":"https://api.github.com/repos/toggl/mobileapp/issues{/number}","pulls_url":"https://api.github.com/repos/toggl/mobileapp/pulls{/number}","milestones_url":"https://api.github.com/repos/toggl/mobileapp/milestones{/number}","notifications_url":"https://api.github.com/repos/toggl/mobileapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toggl/mobileapp/labels{/name}","releases_url":"https://api.github.com/repos/toggl/mobileapp/releases{/id}","deployments_url":"https://api.github.com/repos/toggl/mobileapp/deployments","created_at":"2017-04-03T13:48:06Z","updated_at":"2018-05-05T17:20:48Z","pushed_at":"2018-05-07T07:11:44Z","git_url":"git://github.com/toggl/mobileapp.git","ssh_url":"git@github.com:toggl/mobileapp.git","clone_url":"https://github.com/toggl/mobileapp.git","svn_url":"https://github.com/toggl/mobileapp","homepage":"","size":15526,"stargazers_count":62,"watchers_count":62,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":179,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":22,"open_issues":179,"watchers":62,"default_branch":"develop"}},"base":{"label":"toggl:develop","ref":"develop","sha":"73c160abb5d27b4d46e4fcd344f4e0a9de573f86","user":{"login":"toggl","id":316475,"avatar_url":"https://avatars3.githubusercontent.com/u/316475?v=4","gravatar_id":"","url":"https://api.github.com/users/toggl","html_url":"https://github.com/toggl","followers_url":"https://api.github.com/users/toggl/followers","following_url":"https://api.github.com/users/toggl/following{/other_user}","gists_url":"https://api.github.com/users/toggl/gists{/gist_id}","starred_url":"https://api.github.com/users/toggl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toggl/subscriptions","organizations_url":"https://api.github.com/users/toggl/orgs","repos_url":"https://api.github.com/users/toggl/repos","events_url":"https://api.github.com/users/toggl/events{/privacy}","received_events_url":"https://api.github.com/users/toggl/received_events","type":"Organization","site_admin":false},"repo":{"id":87079363,"name":"mobileapp","full_name":"toggl/mobileapp","owner":{"login":"toggl","id":316475,"avatar_url":"https://avatars3.githubusercontent.com/u/316475?v=4","gravatar_id":"","url":"https://api.github.com/users/toggl","html_url":"https://github.com/toggl","followers_url":"https://api.github.com/users/toggl/followers","following_url":"https://api.github.com/users/toggl/following{/other_user}","gists_url":"https://api.github.com/users/toggl/gists{/gist_id}","starred_url":"https://api.github.com/users/toggl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toggl/subscriptions","organizations_url":"https://api.github.com/users/toggl/orgs","repos_url":"https://api.github.com/users/toggl/repos","events_url":"https://api.github.com/users/toggl/events{/privacy}","received_events_url":"https://api.github.com/users/toggl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/toggl/mobileapp","description":"Toggl's mobile apps","fork":false,"url":"https://api.github.com/repos/toggl/mobileapp","forks_url":"https://api.github.com/repos/toggl/mobileapp/forks","keys_url":"https://api.github.com/repos/toggl/mobileapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toggl/mobileapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toggl/mobileapp/teams","hooks_url":"https://api.github.com/repos/toggl/mobileapp/hooks","issue_events_url":"https://api.github.com/repos/toggl/mobileapp/issues/events{/number}","events_url":"https://api.github.com/repos/toggl/mobileapp/events","assignees_url":"https://api.github.com/repos/toggl/mobileapp/assignees{/user}","branches_url":"https://api.github.com/repos/toggl/mobileapp/branches{/branch}","tags_url":"https://api.github.com/repos/toggl/mobileapp/tags","blobs_url":"https://api.github.com/repos/toggl/mobileapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toggl/mobileapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toggl/mobileapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/toggl/mobileapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toggl/mobileapp/statuses/{sha}","languages_url":"https://api.github.com/repos/toggl/mobileapp/languages","stargazers_url":"https://api.github.com/repos/toggl/mobileapp/stargazers","contributors_url":"https://api.github.com/repos/toggl/mobileapp/contributors","subscribers_url":"https://api.github.com/repos/toggl/mobileapp/subscribers","subscription_url":"https://api.github.com/repos/toggl/mobileapp/subscription","commits_url":"https://api.github.com/repos/toggl/mobileapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/toggl/mobileapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/toggl/mobileapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/toggl/mobileapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/toggl/mobileapp/contents/{+path}","compare_url":"https://api.github.com/repos/toggl/mobileapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toggl/mobileapp/merges","archive_url":"https://api.github.com/repos/toggl/mobileapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toggl/mobileapp/downloads","issues_url":"https://api.github.com/repos/toggl/mobileapp/issues{/number}","pulls_url":"https://api.github.com/repos/toggl/mobileapp/pulls{/number}","milestones_url":"https://api.github.com/repos/toggl/mobileapp/milestones{/number}","notifications_url":"https://api.github.com/repos/toggl/mobileapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toggl/mobileapp/labels{/name}","releases_url":"https://api.github.com/repos/toggl/mobileapp/releases{/id}","deployments_url":"https://api.github.com/repos/toggl/mobileapp/deployments","created_at":"2017-04-03T13:48:06Z","updated_at":"2018-05-05T17:20:48Z","pushed_at":"2018-05-07T07:11:44Z","git_url":"git://github.com/toggl/mobileapp.git","ssh_url":"git@github.com:toggl/mobileapp.git","clone_url":"https://github.com/toggl/mobileapp.git","svn_url":"https://github.com/toggl/mobileapp","homepage":"","size":15526,"stargazers_count":62,"watchers_count":62,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":179,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":22,"open_issues":179,"watchers":62,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/2010"},"html":{"href":"https://github.com/toggl/mobileapp/pull/2010"},"issue":{"href":"https://api.github.com/repos/toggl/mobileapp/issues/2010"},"comments":{"href":"https://api.github.com/repos/toggl/mobileapp/issues/2010/comments"},"review_comments":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/2010/comments"},"review_comment":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toggl/mobileapp/pulls/2010/commits"},"statuses":{"href":"https://api.github.com/repos/toggl/mobileapp/statuses/845df785086369abac6a949cfadcd340e4781072"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kornelijepetak"}}