{"action":"created","comment":{"url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/comments/55133548","id":55133548,"diff_hunk":"@@ -269,6 +306,30 @@ public void onClick(MaterialDialog dialog, DialogAction which) {\n                 show();\n     }\n \n+    private void changeBreed(final SearchCriteria searchCriteria, final int position) {\n+        new MaterialDialog.Builder(this)\n+                .title(searchCriteria.title)\n+                .items(mBreeds.get(mSearchFilter.getSpecies()))\n+                .itemsCallbackMultiChoice(null, new MaterialDialog.ListCallbackMultiChoice() {\n+                    @Override\n+                    public boolean onSelection(MaterialDialog dialog, Integer[] which, CharSequence[] text) {\n+                        if (which == null || which.length == 0) {\n+                            mSearchFilter.setBreed(null);\n+                            searchCriteria.value = \"\";\n+                        } else {\n+                            Breed newBreed = mBreeds.get(mSearchFilter.getSpecies()).get(which[0]);\n+                            searchCriteria.value = newBreed.getName();\n+                            mSearchFilter.setBreed(newBreed);\n+                            mSearchCriteriaAdapter.notifyItemChanged(position);\n+                        }\n+                        mSearchCriteriaAdapter.notifyItemChanged(position);\n+                        return false;\n+                    }\n+                }).\n+                positiveText(getString(R.string.filter_choose)).\n+                show();","path":"app/src/main/java/com/codepath/apps/critterfinder/activities/PetSearchFilterActivity.java","position":145,"original_position":145,"commit_id":"dfb11645a97b1b34a28ae4ab52576f2ab5671c1f","original_commit_id":"dfb11645a97b1b34a28ae4ab52576f2ab5671c1f","user":{"login":"smacgregor","id":1521460,"avatar_url":"https://avatars.githubusercontent.com/u/1521460?v=3","gravatar_id":"","url":"https://api.github.com/users/smacgregor","html_url":"https://github.com/smacgregor","followers_url":"https://api.github.com/users/smacgregor/followers","following_url":"https://api.github.com/users/smacgregor/following{/other_user}","gists_url":"https://api.github.com/users/smacgregor/gists{/gist_id}","starred_url":"https://api.github.com/users/smacgregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacgregor/subscriptions","organizations_url":"https://api.github.com/users/smacgregor/orgs","repos_url":"https://api.github.com/users/smacgregor/repos","events_url":"https://api.github.com/users/smacgregor/events{/privacy}","received_events_url":"https://api.github.com/users/smacgregor/received_events","type":"User","site_admin":false},"body":"the material design dialog framework we're using lets us pass in an array of objects that have a toString method on them (which our Breed model does!) and it turns them into a nice list view. ","created_at":"2016-03-06T05:37:57Z","updated_at":"2016-03-06T05:37:57Z","html_url":"https://github.com/TeamCritterFinder/CritterFinder/pull/27#discussion_r55133548","pull_request_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/comments/55133548"},"html":{"href":"https://github.com/TeamCritterFinder/CritterFinder/pull/27#discussion_r55133548"},"pull_request":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27","id":61834520,"html_url":"https://github.com/TeamCritterFinder/CritterFinder/pull/27","diff_url":"https://github.com/TeamCritterFinder/CritterFinder/pull/27.diff","patch_url":"https://github.com/TeamCritterFinder/CritterFinder/pull/27.patch","issue_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/27","number":27,"state":"open","locked":false,"title":"Issue #12 - First cut at supporting animal breeds","user":{"login":"smacgregor","id":1521460,"avatar_url":"https://avatars.githubusercontent.com/u/1521460?v=3","gravatar_id":"","url":"https://api.github.com/users/smacgregor","html_url":"https://github.com/smacgregor","followers_url":"https://api.github.com/users/smacgregor/followers","following_url":"https://api.github.com/users/smacgregor/following{/other_user}","gists_url":"https://api.github.com/users/smacgregor/gists{/gist_id}","starred_url":"https://api.github.com/users/smacgregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacgregor/subscriptions","organizations_url":"https://api.github.com/users/smacgregor/orgs","repos_url":"https://api.github.com/users/smacgregor/repos","events_url":"https://api.github.com/users/smacgregor/events{/privacy}","received_events_url":"https://api.github.com/users/smacgregor/received_events","type":"User","site_admin":false},"body":"@cbaja @scottrichards \r\n\r\nhttps://github.com/TeamCritterFinder/CritterFinder/issues/12 - initial support for choosing a breed in the search filter activity.\r\n\r\nThere are some bugs still to be addressed including:\r\n* SearchFilter should handle an array of breeds - currently the model only stores one breed\r\n* When changing between cats and dogs, the selected breed in the search filter activity should get cleared out.\r\n\r\n![breeds](https://cloud.githubusercontent.com/assets/1521460/13552465/bd531262-e319-11e5-9fa2-3c1f70abb722.gif)\r\n","created_at":"2016-03-06T05:33:54Z","updated_at":"2016-03-06T05:37:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"394540729fb35281dc87fde2edb949c5905e2563","assignee":null,"milestone":{"url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/milestones/1","html_url":"https://github.com/TeamCritterFinder/CritterFinder/milestones/Sprint%201","labels_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/milestones/1/labels","id":1614171,"number":1,"title":"Sprint 1","description":null,"creator":{"login":"smacgregor","id":1521460,"avatar_url":"https://avatars.githubusercontent.com/u/1521460?v=3","gravatar_id":"","url":"https://api.github.com/users/smacgregor","html_url":"https://github.com/smacgregor","followers_url":"https://api.github.com/users/smacgregor/followers","following_url":"https://api.github.com/users/smacgregor/following{/other_user}","gists_url":"https://api.github.com/users/smacgregor/gists{/gist_id}","starred_url":"https://api.github.com/users/smacgregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smacgregor/subscriptions","organizations_url":"https://api.github.com/users/smacgregor/orgs","repos_url":"https://api.github.com/users/smacgregor/repos","events_url":"https://api.github.com/users/smacgregor/events{/privacy}","received_events_url":"https://api.github.com/users/smacgregor/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":8,"state":"open","created_at":"2016-03-01T06:19:07Z","updated_at":"2016-03-06T05:33:54Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27/commits","review_comments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27/comments","review_comment_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/27/comments","statuses_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/statuses/dfb11645a97b1b34a28ae4ab52576f2ab5671c1f","head":{"label":"TeamCritterFinder:fetch_breeds","ref":"fetch_breeds","sha":"dfb11645a97b1b34a28ae4ab52576f2ab5671c1f","user":{"login":"TeamCritterFinder","id":17421750,"avatar_url":"https://avatars.githubusercontent.com/u/17421750?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamCritterFinder","html_url":"https://github.com/TeamCritterFinder","followers_url":"https://api.github.com/users/TeamCritterFinder/followers","following_url":"https://api.github.com/users/TeamCritterFinder/following{/other_user}","gists_url":"https://api.github.com/users/TeamCritterFinder/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamCritterFinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamCritterFinder/subscriptions","organizations_url":"https://api.github.com/users/TeamCritterFinder/orgs","repos_url":"https://api.github.com/users/TeamCritterFinder/repos","events_url":"https://api.github.com/users/TeamCritterFinder/events{/privacy}","received_events_url":"https://api.github.com/users/TeamCritterFinder/received_events","type":"Organization","site_admin":false},"repo":{"id":52336273,"name":"CritterFinder","full_name":"TeamCritterFinder/CritterFinder","owner":{"login":"TeamCritterFinder","id":17421750,"avatar_url":"https://avatars.githubusercontent.com/u/17421750?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamCritterFinder","html_url":"https://github.com/TeamCritterFinder","followers_url":"https://api.github.com/users/TeamCritterFinder/followers","following_url":"https://api.github.com/users/TeamCritterFinder/following{/other_user}","gists_url":"https://api.github.com/users/TeamCritterFinder/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamCritterFinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamCritterFinder/subscriptions","organizations_url":"https://api.github.com/users/TeamCritterFinder/orgs","repos_url":"https://api.github.com/users/TeamCritterFinder/repos","events_url":"https://api.github.com/users/TeamCritterFinder/events{/privacy}","received_events_url":"https://api.github.com/users/TeamCritterFinder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamCritterFinder/CritterFinder","description":"Critter Finder CodePath Project","fork":false,"url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder","forks_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/forks","keys_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/teams","hooks_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/hooks","issue_events_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/events{/number}","events_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/events","assignees_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/assignees{/user}","branches_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/branches{/branch}","tags_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/tags","blobs_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/languages","stargazers_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/stargazers","contributors_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/contributors","subscribers_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/subscribers","subscription_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/subscription","commits_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/contents/{+path}","compare_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/merges","archive_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/downloads","issues_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues{/number}","pulls_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/labels{/name}","releases_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/releases{/id}","deployments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/deployments","created_at":"2016-02-23T06:28:52Z","updated_at":"2016-02-25T02:20:20Z","pushed_at":"2016-03-06T05:33:54Z","git_url":"git://github.com/TeamCritterFinder/CritterFinder.git","ssh_url":"git@github.com:TeamCritterFinder/CritterFinder.git","clone_url":"https://github.com/TeamCritterFinder/CritterFinder.git","svn_url":"https://github.com/TeamCritterFinder/CritterFinder","homepage":null,"size":1593,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"TeamCritterFinder:master","ref":"master","sha":"215b0faf14a854d02beb8ef22f1282d90ec06610","user":{"login":"TeamCritterFinder","id":17421750,"avatar_url":"https://avatars.githubusercontent.com/u/17421750?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamCritterFinder","html_url":"https://github.com/TeamCritterFinder","followers_url":"https://api.github.com/users/TeamCritterFinder/followers","following_url":"https://api.github.com/users/TeamCritterFinder/following{/other_user}","gists_url":"https://api.github.com/users/TeamCritterFinder/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamCritterFinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamCritterFinder/subscriptions","organizations_url":"https://api.github.com/users/TeamCritterFinder/orgs","repos_url":"https://api.github.com/users/TeamCritterFinder/repos","events_url":"https://api.github.com/users/TeamCritterFinder/events{/privacy}","received_events_url":"https://api.github.com/users/TeamCritterFinder/received_events","type":"Organization","site_admin":false},"repo":{"id":52336273,"name":"CritterFinder","full_name":"TeamCritterFinder/CritterFinder","owner":{"login":"TeamCritterFinder","id":17421750,"avatar_url":"https://avatars.githubusercontent.com/u/17421750?v=3","gravatar_id":"","url":"https://api.github.com/users/TeamCritterFinder","html_url":"https://github.com/TeamCritterFinder","followers_url":"https://api.github.com/users/TeamCritterFinder/followers","following_url":"https://api.github.com/users/TeamCritterFinder/following{/other_user}","gists_url":"https://api.github.com/users/TeamCritterFinder/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamCritterFinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamCritterFinder/subscriptions","organizations_url":"https://api.github.com/users/TeamCritterFinder/orgs","repos_url":"https://api.github.com/users/TeamCritterFinder/repos","events_url":"https://api.github.com/users/TeamCritterFinder/events{/privacy}","received_events_url":"https://api.github.com/users/TeamCritterFinder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamCritterFinder/CritterFinder","description":"Critter Finder CodePath Project","fork":false,"url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder","forks_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/forks","keys_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/teams","hooks_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/hooks","issue_events_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/events{/number}","events_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/events","assignees_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/assignees{/user}","branches_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/branches{/branch}","tags_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/tags","blobs_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/languages","stargazers_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/stargazers","contributors_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/contributors","subscribers_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/subscribers","subscription_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/subscription","commits_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/contents/{+path}","compare_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/merges","archive_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/downloads","issues_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues{/number}","pulls_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/labels{/name}","releases_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/releases{/id}","deployments_url":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/deployments","created_at":"2016-02-23T06:28:52Z","updated_at":"2016-02-25T02:20:20Z","pushed_at":"2016-03-06T05:33:54Z","git_url":"git://github.com/TeamCritterFinder/CritterFinder.git","ssh_url":"git@github.com:TeamCritterFinder/CritterFinder.git","clone_url":"https://github.com/TeamCritterFinder/CritterFinder.git","svn_url":"https://github.com/TeamCritterFinder/CritterFinder","homepage":null,"size":1593,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27"},"html":{"href":"https://github.com/TeamCritterFinder/CritterFinder/pull/27"},"issue":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/27"},"comments":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/TeamCritterFinder/CritterFinder/statuses/dfb11645a97b1b34a28ae4ab52576f2ab5671c1f"}}}}