{"action":"created","comment":{"url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/comments/152767809","pull_request_review_id":78677602,"id":152767809,"diff_hunk":"@@ -90,18 +97,35 @@ public void onClick(View view) {\n         });\n \n         final AutoCompleteTextView categoryInput = (AutoCompleteTextView) findViewById(R.id.categoryInput);\n-        categoryInput.setAdapter(suggest(this));\n+        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, new String[]{});\n+        categoryInput.setAdapter(adapter);\n+        categoryInput.setThreshold(1);\n+\n+        categoryRef.addValueEventListener(new ValueEventListener() {\n+            @Override\n+            public void onDataChange(DataSnapshot dataSnapshot) {\n+                HashMap<String, String> categoryHashMap = (HashMap<String, String>) dataSnapshot.getValue();\n+                String[] categoryValues = categoryHashMap.values().toArray(new String[categoryHashMap.size()]);\n+                final ArrayAdapter<String> adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_dropdown_item_1line, categoryValues);\n+                categoryInput.setAdapter(adapter);\n+            }\n+\n+            @Override\n+            public void onCancelled(DatabaseError databaseError) {\n+                System.out.println(\"The read failed: \" + databaseError.getCode());\n+            }\n+        });\n ","path":"app/src/main/java/com/example/sagar/popupshops_buyerside/Shop/add.java","position":53,"original_position":53,"commit_id":"74dbf37ffa6640561508eb8a9da3ef6c7b1d5414","original_commit_id":"74dbf37ffa6640561508eb8a9da3ef6c7b1d5414","user":{"login":"BboyStatix","id":19769879,"avatar_url":"https://avatars0.githubusercontent.com/u/19769879?v=4","gravatar_id":"","url":"https://api.github.com/users/BboyStatix","html_url":"https://github.com/BboyStatix","followers_url":"https://api.github.com/users/BboyStatix/followers","following_url":"https://api.github.com/users/BboyStatix/following{/other_user}","gists_url":"https://api.github.com/users/BboyStatix/gists{/gist_id}","starred_url":"https://api.github.com/users/BboyStatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BboyStatix/subscriptions","organizations_url":"https://api.github.com/users/BboyStatix/orgs","repos_url":"https://api.github.com/users/BboyStatix/repos","events_url":"https://api.github.com/users/BboyStatix/events{/privacy}","received_events_url":"https://api.github.com/users/BboyStatix/received_events","type":"User","site_admin":false},"body":"This part is for the autocompletetextview in the buyer side inputting category. But for some reason its not working.","created_at":"2017-11-23T10:39:56Z","updated_at":"2017-11-23T10:39:56Z","html_url":"https://github.com/sagarg96/PopUpShops/pull/16#discussion_r152767809","pull_request_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/comments/152767809"},"html":{"href":"https://github.com/sagarg96/PopUpShops/pull/16#discussion_r152767809"},"pull_request":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16","id":154342326,"html_url":"https://github.com/sagarg96/PopUpShops/pull/16","diff_url":"https://github.com/sagarg96/PopUpShops/pull/16.diff","patch_url":"https://github.com/sagarg96/PopUpShops/pull/16.patch","issue_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/16","number":16,"state":"open","locked":false,"title":"Table of categories and filter tindercards by category","user":{"login":"BboyStatix","id":19769879,"avatar_url":"https://avatars0.githubusercontent.com/u/19769879?v=4","gravatar_id":"","url":"https://api.github.com/users/BboyStatix","html_url":"https://github.com/BboyStatix","followers_url":"https://api.github.com/users/BboyStatix/followers","following_url":"https://api.github.com/users/BboyStatix/following{/other_user}","gists_url":"https://api.github.com/users/BboyStatix/gists{/gist_id}","starred_url":"https://api.github.com/users/BboyStatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BboyStatix/subscriptions","organizations_url":"https://api.github.com/users/BboyStatix/orgs","repos_url":"https://api.github.com/users/BboyStatix/repos","events_url":"https://api.github.com/users/BboyStatix/events{/privacy}","received_events_url":"https://api.github.com/users/BboyStatix/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-23T10:35:19Z","updated_at":"2017-11-23T10:39:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81fe3ddd569f21a8f4f27d824c34b53133b07b54","assignee":{"login":"BboyStatix","id":19769879,"avatar_url":"https://avatars0.githubusercontent.com/u/19769879?v=4","gravatar_id":"","url":"https://api.github.com/users/BboyStatix","html_url":"https://github.com/BboyStatix","followers_url":"https://api.github.com/users/BboyStatix/followers","following_url":"https://api.github.com/users/BboyStatix/following{/other_user}","gists_url":"https://api.github.com/users/BboyStatix/gists{/gist_id}","starred_url":"https://api.github.com/users/BboyStatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BboyStatix/subscriptions","organizations_url":"https://api.github.com/users/BboyStatix/orgs","repos_url":"https://api.github.com/users/BboyStatix/repos","events_url":"https://api.github.com/users/BboyStatix/events{/privacy}","received_events_url":"https://api.github.com/users/BboyStatix/received_events","type":"User","site_admin":false},"assignees":[{"login":"BboyStatix","id":19769879,"avatar_url":"https://avatars0.githubusercontent.com/u/19769879?v=4","gravatar_id":"","url":"https://api.github.com/users/BboyStatix","html_url":"https://github.com/BboyStatix","followers_url":"https://api.github.com/users/BboyStatix/followers","following_url":"https://api.github.com/users/BboyStatix/following{/other_user}","gists_url":"https://api.github.com/users/BboyStatix/gists{/gist_id}","starred_url":"https://api.github.com/users/BboyStatix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BboyStatix/subscriptions","organizations_url":"https://api.github.com/users/BboyStatix/orgs","repos_url":"https://api.github.com/users/BboyStatix/repos","events_url":"https://api.github.com/users/BboyStatix/events{/privacy}","received_events_url":"https://api.github.com/users/BboyStatix/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"sacrarat","id":26276250,"avatar_url":"https://avatars1.githubusercontent.com/u/26276250?v=4","gravatar_id":"","url":"https://api.github.com/users/sacrarat","html_url":"https://github.com/sacrarat","followers_url":"https://api.github.com/users/sacrarat/followers","following_url":"https://api.github.com/users/sacrarat/following{/other_user}","gists_url":"https://api.github.com/users/sacrarat/gists{/gist_id}","starred_url":"https://api.github.com/users/sacrarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sacrarat/subscriptions","organizations_url":"https://api.github.com/users/sacrarat/orgs","repos_url":"https://api.github.com/users/sacrarat/repos","events_url":"https://api.github.com/users/sacrarat/events{/privacy}","received_events_url":"https://api.github.com/users/sacrarat/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/16/comments","statuses_url":"https://api.github.com/repos/sagarg96/PopUpShops/statuses/74dbf37ffa6640561508eb8a9da3ef6c7b1d5414","head":{"label":"sagarg96:general_category_table","ref":"general_category_table","sha":"74dbf37ffa6640561508eb8a9da3ef6c7b1d5414","user":{"login":"sagarg96","id":27851983,"avatar_url":"https://avatars3.githubusercontent.com/u/27851983?v=4","gravatar_id":"","url":"https://api.github.com/users/sagarg96","html_url":"https://github.com/sagarg96","followers_url":"https://api.github.com/users/sagarg96/followers","following_url":"https://api.github.com/users/sagarg96/following{/other_user}","gists_url":"https://api.github.com/users/sagarg96/gists{/gist_id}","starred_url":"https://api.github.com/users/sagarg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagarg96/subscriptions","organizations_url":"https://api.github.com/users/sagarg96/orgs","repos_url":"https://api.github.com/users/sagarg96/repos","events_url":"https://api.github.com/users/sagarg96/events{/privacy}","received_events_url":"https://api.github.com/users/sagarg96/received_events","type":"User","site_admin":false},"repo":{"id":107127392,"name":"PopUpShops","full_name":"sagarg96/PopUpShops","owner":{"login":"sagarg96","id":27851983,"avatar_url":"https://avatars3.githubusercontent.com/u/27851983?v=4","gravatar_id":"","url":"https://api.github.com/users/sagarg96","html_url":"https://github.com/sagarg96","followers_url":"https://api.github.com/users/sagarg96/followers","following_url":"https://api.github.com/users/sagarg96/following{/other_user}","gists_url":"https://api.github.com/users/sagarg96/gists{/gist_id}","starred_url":"https://api.github.com/users/sagarg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagarg96/subscriptions","organizations_url":"https://api.github.com/users/sagarg96/orgs","repos_url":"https://api.github.com/users/sagarg96/repos","events_url":"https://api.github.com/users/sagarg96/events{/privacy}","received_events_url":"https://api.github.com/users/sagarg96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagarg96/PopUpShops","description":"An app to help find the nearest temporary vendors and flea markets.","fork":false,"url":"https://api.github.com/repos/sagarg96/PopUpShops","forks_url":"https://api.github.com/repos/sagarg96/PopUpShops/forks","keys_url":"https://api.github.com/repos/sagarg96/PopUpShops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagarg96/PopUpShops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagarg96/PopUpShops/teams","hooks_url":"https://api.github.com/repos/sagarg96/PopUpShops/hooks","issue_events_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/events{/number}","events_url":"https://api.github.com/repos/sagarg96/PopUpShops/events","assignees_url":"https://api.github.com/repos/sagarg96/PopUpShops/assignees{/user}","branches_url":"https://api.github.com/repos/sagarg96/PopUpShops/branches{/branch}","tags_url":"https://api.github.com/repos/sagarg96/PopUpShops/tags","blobs_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagarg96/PopUpShops/statuses/{sha}","languages_url":"https://api.github.com/repos/sagarg96/PopUpShops/languages","stargazers_url":"https://api.github.com/repos/sagarg96/PopUpShops/stargazers","contributors_url":"https://api.github.com/repos/sagarg96/PopUpShops/contributors","subscribers_url":"https://api.github.com/repos/sagarg96/PopUpShops/subscribers","subscription_url":"https://api.github.com/repos/sagarg96/PopUpShops/subscription","commits_url":"https://api.github.com/repos/sagarg96/PopUpShops/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagarg96/PopUpShops/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagarg96/PopUpShops/contents/{+path}","compare_url":"https://api.github.com/repos/sagarg96/PopUpShops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagarg96/PopUpShops/merges","archive_url":"https://api.github.com/repos/sagarg96/PopUpShops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagarg96/PopUpShops/downloads","issues_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues{/number}","pulls_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls{/number}","milestones_url":"https://api.github.com/repos/sagarg96/PopUpShops/milestones{/number}","notifications_url":"https://api.github.com/repos/sagarg96/PopUpShops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagarg96/PopUpShops/labels{/name}","releases_url":"https://api.github.com/repos/sagarg96/PopUpShops/releases{/id}","deployments_url":"https://api.github.com/repos/sagarg96/PopUpShops/deployments","created_at":"2017-10-16T12:56:03Z","updated_at":"2017-10-16T12:56:18Z","pushed_at":"2017-11-23T10:35:19Z","git_url":"git://github.com/sagarg96/PopUpShops.git","ssh_url":"git@github.com:sagarg96/PopUpShops.git","clone_url":"https://github.com/sagarg96/PopUpShops.git","svn_url":"https://github.com/sagarg96/PopUpShops","homepage":null,"size":443,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sagarg96:master","ref":"master","sha":"b93f3f338a63e9ea3f4b76657007c61c4c1f1640","user":{"login":"sagarg96","id":27851983,"avatar_url":"https://avatars3.githubusercontent.com/u/27851983?v=4","gravatar_id":"","url":"https://api.github.com/users/sagarg96","html_url":"https://github.com/sagarg96","followers_url":"https://api.github.com/users/sagarg96/followers","following_url":"https://api.github.com/users/sagarg96/following{/other_user}","gists_url":"https://api.github.com/users/sagarg96/gists{/gist_id}","starred_url":"https://api.github.com/users/sagarg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagarg96/subscriptions","organizations_url":"https://api.github.com/users/sagarg96/orgs","repos_url":"https://api.github.com/users/sagarg96/repos","events_url":"https://api.github.com/users/sagarg96/events{/privacy}","received_events_url":"https://api.github.com/users/sagarg96/received_events","type":"User","site_admin":false},"repo":{"id":107127392,"name":"PopUpShops","full_name":"sagarg96/PopUpShops","owner":{"login":"sagarg96","id":27851983,"avatar_url":"https://avatars3.githubusercontent.com/u/27851983?v=4","gravatar_id":"","url":"https://api.github.com/users/sagarg96","html_url":"https://github.com/sagarg96","followers_url":"https://api.github.com/users/sagarg96/followers","following_url":"https://api.github.com/users/sagarg96/following{/other_user}","gists_url":"https://api.github.com/users/sagarg96/gists{/gist_id}","starred_url":"https://api.github.com/users/sagarg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagarg96/subscriptions","organizations_url":"https://api.github.com/users/sagarg96/orgs","repos_url":"https://api.github.com/users/sagarg96/repos","events_url":"https://api.github.com/users/sagarg96/events{/privacy}","received_events_url":"https://api.github.com/users/sagarg96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagarg96/PopUpShops","description":"An app to help find the nearest temporary vendors and flea markets.","fork":false,"url":"https://api.github.com/repos/sagarg96/PopUpShops","forks_url":"https://api.github.com/repos/sagarg96/PopUpShops/forks","keys_url":"https://api.github.com/repos/sagarg96/PopUpShops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagarg96/PopUpShops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagarg96/PopUpShops/teams","hooks_url":"https://api.github.com/repos/sagarg96/PopUpShops/hooks","issue_events_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/events{/number}","events_url":"https://api.github.com/repos/sagarg96/PopUpShops/events","assignees_url":"https://api.github.com/repos/sagarg96/PopUpShops/assignees{/user}","branches_url":"https://api.github.com/repos/sagarg96/PopUpShops/branches{/branch}","tags_url":"https://api.github.com/repos/sagarg96/PopUpShops/tags","blobs_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagarg96/PopUpShops/statuses/{sha}","languages_url":"https://api.github.com/repos/sagarg96/PopUpShops/languages","stargazers_url":"https://api.github.com/repos/sagarg96/PopUpShops/stargazers","contributors_url":"https://api.github.com/repos/sagarg96/PopUpShops/contributors","subscribers_url":"https://api.github.com/repos/sagarg96/PopUpShops/subscribers","subscription_url":"https://api.github.com/repos/sagarg96/PopUpShops/subscription","commits_url":"https://api.github.com/repos/sagarg96/PopUpShops/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagarg96/PopUpShops/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagarg96/PopUpShops/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagarg96/PopUpShops/contents/{+path}","compare_url":"https://api.github.com/repos/sagarg96/PopUpShops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagarg96/PopUpShops/merges","archive_url":"https://api.github.com/repos/sagarg96/PopUpShops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagarg96/PopUpShops/downloads","issues_url":"https://api.github.com/repos/sagarg96/PopUpShops/issues{/number}","pulls_url":"https://api.github.com/repos/sagarg96/PopUpShops/pulls{/number}","milestones_url":"https://api.github.com/repos/sagarg96/PopUpShops/milestones{/number}","notifications_url":"https://api.github.com/repos/sagarg96/PopUpShops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagarg96/PopUpShops/labels{/name}","releases_url":"https://api.github.com/repos/sagarg96/PopUpShops/releases{/id}","deployments_url":"https://api.github.com/repos/sagarg96/PopUpShops/deployments","created_at":"2017-10-16T12:56:03Z","updated_at":"2017-10-16T12:56:18Z","pushed_at":"2017-11-23T10:35:19Z","git_url":"git://github.com/sagarg96/PopUpShops.git","ssh_url":"git@github.com:sagarg96/PopUpShops.git","clone_url":"https://github.com/sagarg96/PopUpShops.git","svn_url":"https://github.com/sagarg96/PopUpShops","homepage":null,"size":443,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16"},"html":{"href":"https://github.com/sagarg96/PopUpShops/pull/16"},"issue":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/issues/16"},"comments":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sagarg96/PopUpShops/statuses/74dbf37ffa6640561508eb8a9da3ef6c7b1d5414"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"BboyStatix"}}