{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/susi_android/pulls/comments/296442965","pull_request_review_id":253092217,"id":296442965,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NjQ0Mjk2NQ==","diff_hunk":"@@ -86,6 +114,68 @@ class DeviceConnectFragment : Fragment(), IDeviceConnectView {\n         context?.registerReceiver(receiverWifi, filter)\n     }\n \n+    override fun addDeviceProcess() {\n+        room.visibility = View.GONE\n+        addDeviceButton.visibility = View.VISIBLE\n+        deviceList.visibility = View.VISIBLE\n+        wifiList.visibility = View.VISIBLE\n+\n+        receiverWifi = WifiReceiver()\n+        deviceConnectPresenter.searchDevices()\n+\n+        addDeviceButton.setOnClickListener {\n+            deviceConnectPresenter.searchDevices()\n+        }\n+    }\n+\n+    // Function to show available rooms\n+    override fun rooms() {\n+        room.visibility = View.VISIBLE\n+        addDeviceButton.visibility = View.GONE\n+        deviceList.visibility = View.GONE\n+        wifiList.visibility = View.GONE\n+        showRooms()\n+\n+        add_room.setOnClickListener {\n+            val roomName = edt_room.text.toString()\n+            if (roomName != null) {\n+                deviceConnectPresenter.addRoom(roomName)\n+                Toast.makeText(context, \"Added \" + roomName + \" as a room\", Toast.LENGTH_SHORT).show()\n+                edt_room.text.clear()\n+                view?.let { it1 -> Utils.hideSoftKeyboard(context, it1) }","path":"app/src/main/java/org/fossasia/susi/ai/device/deviceconnect/DeviceConnectFragment.kt","position":116,"original_position":116,"commit_id":"d9563f7cbadf3b94ec0a9e7c993e68b9ff7468f8","original_commit_id":"d9563f7cbadf3b94ec0a9e7c993e68b9ff7468f8","user":{"login":"atm1504","id":43731599,"node_id":"MDQ6VXNlcjQzNzMxNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/43731599?v=4","gravatar_id":"","url":"https://api.github.com/users/atm1504","html_url":"https://github.com/atm1504","followers_url":"https://api.github.com/users/atm1504/followers","following_url":"https://api.github.com/users/atm1504/following{/other_user}","gists_url":"https://api.github.com/users/atm1504/gists{/gist_id}","starred_url":"https://api.github.com/users/atm1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm1504/subscriptions","organizations_url":"https://api.github.com/users/atm1504/orgs","repos_url":"https://api.github.com/users/atm1504/repos","events_url":"https://api.github.com/users/atm1504/events{/privacy}","received_events_url":"https://api.github.com/users/atm1504/received_events","type":"User","site_admin":false},"body":"To call the hideSoftKeyboard function we need to pass the view, so simply passing view from getview won't work because of the non-null assertion. So to avoid it, it's better to wrap with let.","created_at":"2019-06-22T11:23:39Z","updated_at":"2019-06-22T11:23:40Z","html_url":"https://github.com/fossasia/susi_android/pull/2267#discussion_r296442965","pull_request_url":"https://api.github.com/repos/fossasia/susi_android/pulls/2267","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/comments/296442965"},"html":{"href":"https://github.com/fossasia/susi_android/pull/2267#discussion_r296442965"},"pull_request":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/2267"}},"in_reply_to_id":296442274},"pull_request":{"url":"https://api.github.com/repos/fossasia/susi_android/pulls/2267","id":288598544,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg4NTk4NTQ0","html_url":"https://github.com/fossasia/susi_android/pull/2267","diff_url":"https://github.com/fossasia/susi_android/pull/2267.diff","patch_url":"https://github.com/fossasia/susi_android/pull/2267.patch","issue_url":"https://api.github.com/repos/fossasia/susi_android/issues/2267","number":2267,"state":"open","locked":false,"title":"feat: Add room feature","user":{"login":"atm1504","id":43731599,"node_id":"MDQ6VXNlcjQzNzMxNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/43731599?v=4","gravatar_id":"","url":"https://api.github.com/users/atm1504","html_url":"https://github.com/atm1504","followers_url":"https://api.github.com/users/atm1504/followers","following_url":"https://api.github.com/users/atm1504/following{/other_user}","gists_url":"https://api.github.com/users/atm1504/gists{/gist_id}","starred_url":"https://api.github.com/users/atm1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm1504/subscriptions","organizations_url":"https://api.github.com/users/atm1504/orgs","repos_url":"https://api.github.com/users/atm1504/repos","events_url":"https://api.github.com/users/atm1504/events{/privacy}","received_events_url":"https://api.github.com/users/atm1504/received_events","type":"User","site_admin":false},"body":"Fixes #2266 \r\n\r\nChanges: \r\nImplemented the UI that would handle the addition of rooms\r\n\r\nScreenshots for the change: WIll add it soon\r\n","created_at":"2019-06-16T04:52:59Z","updated_at":"2019-06-22T11:23:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e857d9fa19b34e7ae51092c484ed673a555d267","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":458824257,"node_id":"MDU6TGFiZWw0NTg4MjQyNTc=","url":"https://api.github.com/repos/fossasia/susi_android/labels/feature","name":"feature","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/susi_android/pulls/2267/commits","review_comments_url":"https://api.github.com/repos/fossasia/susi_android/pulls/2267/comments","review_comment_url":"https://api.github.com/repos/fossasia/susi_android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/susi_android/issues/2267/comments","statuses_url":"https://api.github.com/repos/fossasia/susi_android/statuses/d9563f7cbadf3b94ec0a9e7c993e68b9ff7468f8","head":{"label":"atm1504:atm_add_room","ref":"atm_add_room","sha":"d9563f7cbadf3b94ec0a9e7c993e68b9ff7468f8","user":{"login":"atm1504","id":43731599,"node_id":"MDQ6VXNlcjQzNzMxNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/43731599?v=4","gravatar_id":"","url":"https://api.github.com/users/atm1504","html_url":"https://github.com/atm1504","followers_url":"https://api.github.com/users/atm1504/followers","following_url":"https://api.github.com/users/atm1504/following{/other_user}","gists_url":"https://api.github.com/users/atm1504/gists{/gist_id}","starred_url":"https://api.github.com/users/atm1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm1504/subscriptions","organizations_url":"https://api.github.com/users/atm1504/orgs","repos_url":"https://api.github.com/users/atm1504/repos","events_url":"https://api.github.com/users/atm1504/events{/privacy}","received_events_url":"https://api.github.com/users/atm1504/received_events","type":"User","site_admin":false},"repo":{"id":173156638,"node_id":"MDEwOlJlcG9zaXRvcnkxNzMxNTY2Mzg=","name":"susi_android","full_name":"atm1504/susi_android","private":false,"owner":{"login":"atm1504","id":43731599,"node_id":"MDQ6VXNlcjQzNzMxNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/43731599?v=4","gravatar_id":"","url":"https://api.github.com/users/atm1504","html_url":"https://github.com/atm1504","followers_url":"https://api.github.com/users/atm1504/followers","following_url":"https://api.github.com/users/atm1504/following{/other_user}","gists_url":"https://api.github.com/users/atm1504/gists{/gist_id}","starred_url":"https://api.github.com/users/atm1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm1504/subscriptions","organizations_url":"https://api.github.com/users/atm1504/orgs","repos_url":"https://api.github.com/users/atm1504/repos","events_url":"https://api.github.com/users/atm1504/events{/privacy}","received_events_url":"https://api.github.com/users/atm1504/received_events","type":"User","site_admin":false},"html_url":"https://github.com/atm1504/susi_android","description":"SUSI.AI Android App https://play.google.com/apps/testing/ai.susi","fork":true,"url":"https://api.github.com/repos/atm1504/susi_android","forks_url":"https://api.github.com/repos/atm1504/susi_android/forks","keys_url":"https://api.github.com/repos/atm1504/susi_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atm1504/susi_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atm1504/susi_android/teams","hooks_url":"https://api.github.com/repos/atm1504/susi_android/hooks","issue_events_url":"https://api.github.com/repos/atm1504/susi_android/issues/events{/number}","events_url":"https://api.github.com/repos/atm1504/susi_android/events","assignees_url":"https://api.github.com/repos/atm1504/susi_android/assignees{/user}","branches_url":"https://api.github.com/repos/atm1504/susi_android/branches{/branch}","tags_url":"https://api.github.com/repos/atm1504/susi_android/tags","blobs_url":"https://api.github.com/repos/atm1504/susi_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atm1504/susi_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atm1504/susi_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/atm1504/susi_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atm1504/susi_android/statuses/{sha}","languages_url":"https://api.github.com/repos/atm1504/susi_android/languages","stargazers_url":"https://api.github.com/repos/atm1504/susi_android/stargazers","contributors_url":"https://api.github.com/repos/atm1504/susi_android/contributors","subscribers_url":"https://api.github.com/repos/atm1504/susi_android/subscribers","subscription_url":"https://api.github.com/repos/atm1504/susi_android/subscription","commits_url":"https://api.github.com/repos/atm1504/susi_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/atm1504/susi_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/atm1504/susi_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/atm1504/susi_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/atm1504/susi_android/contents/{+path}","compare_url":"https://api.github.com/repos/atm1504/susi_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atm1504/susi_android/merges","archive_url":"https://api.github.com/repos/atm1504/susi_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atm1504/susi_android/downloads","issues_url":"https://api.github.com/repos/atm1504/susi_android/issues{/number}","pulls_url":"https://api.github.com/repos/atm1504/susi_android/pulls{/number}","milestones_url":"https://api.github.com/repos/atm1504/susi_android/milestones{/number}","notifications_url":"https://api.github.com/repos/atm1504/susi_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atm1504/susi_android/labels{/name}","releases_url":"https://api.github.com/repos/atm1504/susi_android/releases{/id}","deployments_url":"https://api.github.com/repos/atm1504/susi_android/deployments","created_at":"2019-02-28T17:29:07Z","updated_at":"2019-06-21T05:02:43Z","pushed_at":"2019-06-21T15:36:47Z","git_url":"git://github.com/atm1504/susi_android.git","ssh_url":"git@github.com:atm1504/susi_android.git","clone_url":"https://github.com/atm1504/susi_android.git","svn_url":"https://github.com/atm1504/susi_android","homepage":"","size":70075,"stargazers_count":1,"watchers_count":1,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"6fe2e147abde351683411c60e38469bf8592d011","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":68798776,"node_id":"MDEwOlJlcG9zaXRvcnk2ODc5ODc3Ng==","name":"susi_android","full_name":"fossasia/susi_android","private":false,"owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fossasia/susi_android","description":"SUSI.AI Android App https://play.google.com/apps/testing/ai.susi","fork":false,"url":"https://api.github.com/repos/fossasia/susi_android","forks_url":"https://api.github.com/repos/fossasia/susi_android/forks","keys_url":"https://api.github.com/repos/fossasia/susi_android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/susi_android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/susi_android/teams","hooks_url":"https://api.github.com/repos/fossasia/susi_android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/susi_android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/susi_android/events","assignees_url":"https://api.github.com/repos/fossasia/susi_android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/susi_android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/susi_android/tags","blobs_url":"https://api.github.com/repos/fossasia/susi_android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/susi_android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/susi_android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/susi_android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/susi_android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/susi_android/languages","stargazers_url":"https://api.github.com/repos/fossasia/susi_android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/susi_android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/susi_android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/susi_android/subscription","commits_url":"https://api.github.com/repos/fossasia/susi_android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/susi_android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/susi_android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/susi_android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/susi_android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/susi_android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/susi_android/merges","archive_url":"https://api.github.com/repos/fossasia/susi_android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/susi_android/downloads","issues_url":"https://api.github.com/repos/fossasia/susi_android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/susi_android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/susi_android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/susi_android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/susi_android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/susi_android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/susi_android/deployments","created_at":"2016-09-21T08:56:16Z","updated_at":"2019-06-22T01:16:53Z","pushed_at":"2019-06-21T15:36:49Z","git_url":"git://github.com/fossasia/susi_android.git","ssh_url":"git@github.com:fossasia/susi_android.git","clone_url":"https://github.com/fossasia/susi_android.git","svn_url":"https://github.com/fossasia/susi_android","homepage":"","size":94104,"stargazers_count":1431,"watchers_count":1431,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":802,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":46,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":802,"open_issues":46,"watchers":1431,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/2267"},"html":{"href":"https://github.com/fossasia/susi_android/pull/2267"},"issue":{"href":"https://api.github.com/repos/fossasia/susi_android/issues/2267"},"comments":{"href":"https://api.github.com/repos/fossasia/susi_android/issues/2267/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/2267/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/susi_android/pulls/2267/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/susi_android/statuses/d9563f7cbadf3b94ec0a9e7c993e68b9ff7468f8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"atm1504"}}