{"action":"created","comment":{"url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/comments/180086135","pull_request_review_id":110444058,"id":180086135,"diff_hunk":"@@ -35,9 +40,47 @@ class TopActivity : BaseActivity() {\n         binding = DataBindingUtil.setContentView(this, R.layout.activity_top)\n         binding.viewModel = viewModel\n \n+        setUpDialog(viewModel)\n         initRecyclerView()\n     }\n \n+    private fun setUpDialog(viewModel: TopActivityViewModel) {\n+        val callback = object : DialogCallback {\n+            override fun onAction() {\n+                val dialog = AlertDialog.Builder(this@TopActivity)\n+                val dialogBinding = DataBindingUtil.inflate<JoinRoomDialogBinding>(LayoutInflater.from(dialog.context), R.layout.join_room_dialog, null, false)\n+                dialogBinding.viewModel = dialogViewModel\n+                dialog.setTitle(R.string.join_room)\n+                        .setView(dialogBinding.root)\n+                        .setPositiveButton(R.string.send_button) { _, _ ->\n+                            dialogViewModel.onClickJoinRoomAlertButton()","path":"app/src/main/kotlin/com/cyder/atsushi/youtubesync/view/activity/TopActivity.kt","position":58,"original_position":58,"commit_id":"ec5b9fb2510672d17f3ef36ca83dcb6ae78565c0","original_commit_id":"ec5b9fb2510672d17f3ef36ca83dcb6ae78565c0","user":{"login":"Mori-Atsushi","id":13435109,"avatar_url":"https://avatars0.githubusercontent.com/u/13435109?v=4","gravatar_id":"","url":"https://api.github.com/users/Mori-Atsushi","html_url":"https://github.com/Mori-Atsushi","followers_url":"https://api.github.com/users/Mori-Atsushi/followers","following_url":"https://api.github.com/users/Mori-Atsushi/following{/other_user}","gists_url":"https://api.github.com/users/Mori-Atsushi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mori-Atsushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mori-Atsushi/subscriptions","organizations_url":"https://api.github.com/users/Mori-Atsushi/orgs","repos_url":"https://api.github.com/users/Mori-Atsushi/repos","events_url":"https://api.github.com/users/Mori-Atsushi/events{/privacy}","received_events_url":"https://api.github.com/users/Mori-Atsushi/received_events","type":"User","site_admin":false},"body":"やっぱりnavigator経由で新規viewを作るのが正しそう？","created_at":"2018-04-09T13:02:13Z","updated_at":"2018-04-09T13:02:13Z","html_url":"https://github.com/cyder/SyncPod-Android/pull/193#discussion_r180086135","pull_request_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/comments/180086135"},"html":{"href":"https://github.com/cyder/SyncPod-Android/pull/193#discussion_r180086135"},"pull_request":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193"}},"in_reply_to_id":180085591},"pull_request":{"url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193","id":180151052,"html_url":"https://github.com/cyder/SyncPod-Android/pull/193","diff_url":"https://github.com/cyder/SyncPod-Android/pull/193.diff","patch_url":"https://github.com/cyder/SyncPod-Android/pull/193.patch","issue_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/193","number":193,"state":"open","locked":false,"title":"roomの入室","user":{"login":"Mori-Atsushi","id":13435109,"avatar_url":"https://avatars0.githubusercontent.com/u/13435109?v=4","gravatar_id":"","url":"https://api.github.com/users/Mori-Atsushi","html_url":"https://github.com/Mori-Atsushi","followers_url":"https://api.github.com/users/Mori-Atsushi/followers","following_url":"https://api.github.com/users/Mori-Atsushi/following{/other_user}","gists_url":"https://api.github.com/users/Mori-Atsushi/gists{/gist_id}","starred_url":"https://api.github.com/users/Mori-Atsushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mori-Atsushi/subscriptions","organizations_url":"https://api.github.com/users/Mori-Atsushi/orgs","repos_url":"https://api.github.com/users/Mori-Atsushi/repos","events_url":"https://api.github.com/users/Mori-Atsushi/events{/privacy}","received_events_url":"https://api.github.com/users/Mori-Atsushi/received_events","type":"User","site_admin":false},"body":"close #172 \r\n\r\nこれでいいのかわからん。\r\n早くsnackbar関係のコードをまとめるべきだと思いました。（でもやり方わからんかった。","created_at":"2018-04-08T09:51:02Z","updated_at":"2018-04-09T13:02:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05d34f4958d02f5861c8e9936a64f58d70503ebc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":799075486,"url":"https://api.github.com/repos/cyder/SyncPod-Android/labels/new-architecture","name":"new-architecture","color":"98ea6b","default":false},{"id":739111516,"url":"https://api.github.com/repos/cyder/SyncPod-Android/labels/review%20complete","name":"review complete","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193/commits","review_comments_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193/comments","review_comment_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/193/comments","statuses_url":"https://api.github.com/repos/cyder/SyncPod-Android/statuses/ec5b9fb2510672d17f3ef36ca83dcb6ae78565c0","head":{"label":"cyder:172-enter-room","ref":"172-enter-room","sha":"ec5b9fb2510672d17f3ef36ca83dcb6ae78565c0","user":{"login":"cyder","id":25344502,"avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"repo":{"id":105630028,"name":"SyncPod-Android","full_name":"cyder/SyncPod-Android","owner":{"login":"cyder","id":25344502,"avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyder/SyncPod-Android","description":null,"fork":false,"url":"https://api.github.com/repos/cyder/SyncPod-Android","forks_url":"https://api.github.com/repos/cyder/SyncPod-Android/forks","keys_url":"https://api.github.com/repos/cyder/SyncPod-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyder/SyncPod-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyder/SyncPod-Android/teams","hooks_url":"https://api.github.com/repos/cyder/SyncPod-Android/hooks","issue_events_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/events{/number}","events_url":"https://api.github.com/repos/cyder/SyncPod-Android/events","assignees_url":"https://api.github.com/repos/cyder/SyncPod-Android/assignees{/user}","branches_url":"https://api.github.com/repos/cyder/SyncPod-Android/branches{/branch}","tags_url":"https://api.github.com/repos/cyder/SyncPod-Android/tags","blobs_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyder/SyncPod-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/cyder/SyncPod-Android/languages","stargazers_url":"https://api.github.com/repos/cyder/SyncPod-Android/stargazers","contributors_url":"https://api.github.com/repos/cyder/SyncPod-Android/contributors","subscribers_url":"https://api.github.com/repos/cyder/SyncPod-Android/subscribers","subscription_url":"https://api.github.com/repos/cyder/SyncPod-Android/subscription","commits_url":"https://api.github.com/repos/cyder/SyncPod-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyder/SyncPod-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyder/SyncPod-Android/contents/{+path}","compare_url":"https://api.github.com/repos/cyder/SyncPod-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyder/SyncPod-Android/merges","archive_url":"https://api.github.com/repos/cyder/SyncPod-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyder/SyncPod-Android/downloads","issues_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues{/number}","pulls_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/cyder/SyncPod-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/cyder/SyncPod-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyder/SyncPod-Android/labels{/name}","releases_url":"https://api.github.com/repos/cyder/SyncPod-Android/releases{/id}","deployments_url":"https://api.github.com/repos/cyder/SyncPod-Android/deployments","created_at":"2017-10-03T08:34:09Z","updated_at":"2018-04-07T00:23:44Z","pushed_at":"2018-04-09T11:55:47Z","git_url":"git://github.com/cyder/SyncPod-Android.git","ssh_url":"git@github.com:cyder/SyncPod-Android.git","clone_url":"https://github.com/cyder/SyncPod-Android.git","svn_url":"https://github.com/cyder/SyncPod-Android","homepage":"https://play.google.com/store/apps/details?id=com.cyder.atsushi.youtubesync","size":1293,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":39,"license":null,"forks":2,"open_issues":39,"watchers":0,"default_branch":"development"}},"base":{"label":"cyder:new-architecture","ref":"new-architecture","sha":"c64f3e018caa53dc9296d9726cac34499b57318a","user":{"login":"cyder","id":25344502,"avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"repo":{"id":105630028,"name":"SyncPod-Android","full_name":"cyder/SyncPod-Android","owner":{"login":"cyder","id":25344502,"avatar_url":"https://avatars3.githubusercontent.com/u/25344502?v=4","gravatar_id":"","url":"https://api.github.com/users/cyder","html_url":"https://github.com/cyder","followers_url":"https://api.github.com/users/cyder/followers","following_url":"https://api.github.com/users/cyder/following{/other_user}","gists_url":"https://api.github.com/users/cyder/gists{/gist_id}","starred_url":"https://api.github.com/users/cyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyder/subscriptions","organizations_url":"https://api.github.com/users/cyder/orgs","repos_url":"https://api.github.com/users/cyder/repos","events_url":"https://api.github.com/users/cyder/events{/privacy}","received_events_url":"https://api.github.com/users/cyder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyder/SyncPod-Android","description":null,"fork":false,"url":"https://api.github.com/repos/cyder/SyncPod-Android","forks_url":"https://api.github.com/repos/cyder/SyncPod-Android/forks","keys_url":"https://api.github.com/repos/cyder/SyncPod-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyder/SyncPod-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyder/SyncPod-Android/teams","hooks_url":"https://api.github.com/repos/cyder/SyncPod-Android/hooks","issue_events_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/events{/number}","events_url":"https://api.github.com/repos/cyder/SyncPod-Android/events","assignees_url":"https://api.github.com/repos/cyder/SyncPod-Android/assignees{/user}","branches_url":"https://api.github.com/repos/cyder/SyncPod-Android/branches{/branch}","tags_url":"https://api.github.com/repos/cyder/SyncPod-Android/tags","blobs_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyder/SyncPod-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/cyder/SyncPod-Android/languages","stargazers_url":"https://api.github.com/repos/cyder/SyncPod-Android/stargazers","contributors_url":"https://api.github.com/repos/cyder/SyncPod-Android/contributors","subscribers_url":"https://api.github.com/repos/cyder/SyncPod-Android/subscribers","subscription_url":"https://api.github.com/repos/cyder/SyncPod-Android/subscription","commits_url":"https://api.github.com/repos/cyder/SyncPod-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyder/SyncPod-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyder/SyncPod-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyder/SyncPod-Android/contents/{+path}","compare_url":"https://api.github.com/repos/cyder/SyncPod-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyder/SyncPod-Android/merges","archive_url":"https://api.github.com/repos/cyder/SyncPod-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyder/SyncPod-Android/downloads","issues_url":"https://api.github.com/repos/cyder/SyncPod-Android/issues{/number}","pulls_url":"https://api.github.com/repos/cyder/SyncPod-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/cyder/SyncPod-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/cyder/SyncPod-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyder/SyncPod-Android/labels{/name}","releases_url":"https://api.github.com/repos/cyder/SyncPod-Android/releases{/id}","deployments_url":"https://api.github.com/repos/cyder/SyncPod-Android/deployments","created_at":"2017-10-03T08:34:09Z","updated_at":"2018-04-07T00:23:44Z","pushed_at":"2018-04-09T11:55:47Z","git_url":"git://github.com/cyder/SyncPod-Android.git","ssh_url":"git@github.com:cyder/SyncPod-Android.git","clone_url":"https://github.com/cyder/SyncPod-Android.git","svn_url":"https://github.com/cyder/SyncPod-Android","homepage":"https://play.google.com/store/apps/details?id=com.cyder.atsushi.youtubesync","size":1293,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":39,"license":null,"forks":2,"open_issues":39,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193"},"html":{"href":"https://github.com/cyder/SyncPod-Android/pull/193"},"issue":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/issues/193"},"comments":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/cyder/SyncPod-Android/statuses/ec5b9fb2510672d17f3ef36ca83dcb6ae78565c0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Mori-Atsushi"}}