{"action":"created","comment":{"url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/comments/74167622","id":74167622,"diff_hunk":"@@ -8,19 +8,24 @@\n import android.widget.TextView;\n \n import java.util.ArrayList;\n+import java.util.Collections;\n import java.util.List;\n import java.util.Random;\n \n import ru.yandex.yamblz.R;\n+import ru.yandex.yamblz.ui.other.ItemTouchHelperAdapter;\n \n-class ContentAdapter extends RecyclerView.Adapter<ContentAdapter.ContentHolder> {\n+public class ContentAdapter extends RecyclerView.Adapter<ContentAdapter.ContentHolder> implements ItemTouchHelperAdapter {\n \n     private final Random rnd = new Random();\n     private final List<Integer> colors = new ArrayList<>();\n \n     @Override\n     public ContentHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n-        return new ContentHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.content_item, parent, false));\n+        View container = LayoutInflater.from(parent.getContext()).inflate(R.layout.content_item, parent, false);\n+        ContentHolder contentHolder = new ContentHolder(container);\n+        container.setOnClickListener(v -> onItemChange(contentHolder.getAdapterPosition()));","path":"app/src/main/java/ru/yandex/yamblz/ui/fragments/ContentAdapter.java","position":null,"original_position":22,"commit_id":"360f70c3256ea13735386a631c8011c109d5ea2e","original_commit_id":"457a5760f6eabee7e4baa11113cf68235dfd02f7","user":{"login":"shmakova","id":4811448,"avatar_url":"https://avatars.githubusercontent.com/u/4811448?v=3","gravatar_id":"","url":"https://api.github.com/users/shmakova","html_url":"https://github.com/shmakova","followers_url":"https://api.github.com/users/shmakova/followers","following_url":"https://api.github.com/users/shmakova/following{/other_user}","gists_url":"https://api.github.com/users/shmakova/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakova/subscriptions","organizations_url":"https://api.github.com/users/shmakova/orgs","repos_url":"https://api.github.com/users/shmakova/repos","events_url":"https://api.github.com/users/shmakova/events{/privacy}","received_events_url":"https://api.github.com/users/shmakova/received_events","type":"User","site_admin":false},"body":"Перенесла в конструктор","created_at":"2016-08-10T00:16:11Z","updated_at":"2016-08-10T00:16:11Z","html_url":"https://github.com/yamblz-native/recycler-view/pull/3#discussion_r74167622","pull_request_url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/comments/74167622"},"html":{"href":"https://github.com/yamblz-native/recycler-view/pull/3#discussion_r74167622"},"pull_request":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3","id":79191281,"html_url":"https://github.com/yamblz-native/recycler-view/pull/3","diff_url":"https://github.com/yamblz-native/recycler-view/pull/3.diff","patch_url":"https://github.com/yamblz-native/recycler-view/pull/3.patch","issue_url":"https://api.github.com/repos/yamblz-native/recycler-view/issues/3","number":3,"state":"open","locked":false,"title":"Shmakova Anastasia - @shmakova","user":{"login":"shmakova","id":4811448,"avatar_url":"https://avatars.githubusercontent.com/u/4811448?v=3","gravatar_id":"","url":"https://api.github.com/users/shmakova","html_url":"https://github.com/shmakova","followers_url":"https://api.github.com/users/shmakova/followers","following_url":"https://api.github.com/users/shmakova/following{/other_user}","gists_url":"https://api.github.com/users/shmakova/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakova/subscriptions","organizations_url":"https://api.github.com/users/shmakova/orgs","repos_url":"https://api.github.com/users/shmakova/repos","events_url":"https://api.github.com/users/shmakova/events{/privacy}","received_events_url":"https://api.github.com/users/shmakova/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-28T13:01:15Z","updated_at":"2016-08-10T00:16:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8f65385ab7134ca67496206b12b88e4848014fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3/commits","review_comments_url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3/comments","review_comment_url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yamblz-native/recycler-view/issues/3/comments","statuses_url":"https://api.github.com/repos/yamblz-native/recycler-view/statuses/360f70c3256ea13735386a631c8011c109d5ea2e","head":{"label":"shmakova:master","ref":"master","sha":"360f70c3256ea13735386a631c8011c109d5ea2e","user":{"login":"shmakova","id":4811448,"avatar_url":"https://avatars.githubusercontent.com/u/4811448?v=3","gravatar_id":"","url":"https://api.github.com/users/shmakova","html_url":"https://github.com/shmakova","followers_url":"https://api.github.com/users/shmakova/followers","following_url":"https://api.github.com/users/shmakova/following{/other_user}","gists_url":"https://api.github.com/users/shmakova/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakova/subscriptions","organizations_url":"https://api.github.com/users/shmakova/orgs","repos_url":"https://api.github.com/users/shmakova/repos","events_url":"https://api.github.com/users/shmakova/events{/privacy}","received_events_url":"https://api.github.com/users/shmakova/received_events","type":"User","site_admin":false},"repo":{"id":63625711,"name":"recycler-view","full_name":"shmakova/recycler-view","owner":{"login":"shmakova","id":4811448,"avatar_url":"https://avatars.githubusercontent.com/u/4811448?v=3","gravatar_id":"","url":"https://api.github.com/users/shmakova","html_url":"https://github.com/shmakova","followers_url":"https://api.github.com/users/shmakova/followers","following_url":"https://api.github.com/users/shmakova/following{/other_user}","gists_url":"https://api.github.com/users/shmakova/gists{/gist_id}","starred_url":"https://api.github.com/users/shmakova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmakova/subscriptions","organizations_url":"https://api.github.com/users/shmakova/orgs","repos_url":"https://api.github.com/users/shmakova/repos","events_url":"https://api.github.com/users/shmakova/events{/privacy}","received_events_url":"https://api.github.com/users/shmakova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shmakova/recycler-view","description":"Recycler view home and classwork","fork":true,"url":"https://api.github.com/repos/shmakova/recycler-view","forks_url":"https://api.github.com/repos/shmakova/recycler-view/forks","keys_url":"https://api.github.com/repos/shmakova/recycler-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shmakova/recycler-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shmakova/recycler-view/teams","hooks_url":"https://api.github.com/repos/shmakova/recycler-view/hooks","issue_events_url":"https://api.github.com/repos/shmakova/recycler-view/issues/events{/number}","events_url":"https://api.github.com/repos/shmakova/recycler-view/events","assignees_url":"https://api.github.com/repos/shmakova/recycler-view/assignees{/user}","branches_url":"https://api.github.com/repos/shmakova/recycler-view/branches{/branch}","tags_url":"https://api.github.com/repos/shmakova/recycler-view/tags","blobs_url":"https://api.github.com/repos/shmakova/recycler-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shmakova/recycler-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shmakova/recycler-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/shmakova/recycler-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shmakova/recycler-view/statuses/{sha}","languages_url":"https://api.github.com/repos/shmakova/recycler-view/languages","stargazers_url":"https://api.github.com/repos/shmakova/recycler-view/stargazers","contributors_url":"https://api.github.com/repos/shmakova/recycler-view/contributors","subscribers_url":"https://api.github.com/repos/shmakova/recycler-view/subscribers","subscription_url":"https://api.github.com/repos/shmakova/recycler-view/subscription","commits_url":"https://api.github.com/repos/shmakova/recycler-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/shmakova/recycler-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/shmakova/recycler-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/shmakova/recycler-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/shmakova/recycler-view/contents/{+path}","compare_url":"https://api.github.com/repos/shmakova/recycler-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shmakova/recycler-view/merges","archive_url":"https://api.github.com/repos/shmakova/recycler-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shmakova/recycler-view/downloads","issues_url":"https://api.github.com/repos/shmakova/recycler-view/issues{/number}","pulls_url":"https://api.github.com/repos/shmakova/recycler-view/pulls{/number}","milestones_url":"https://api.github.com/repos/shmakova/recycler-view/milestones{/number}","notifications_url":"https://api.github.com/repos/shmakova/recycler-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shmakova/recycler-view/labels{/name}","releases_url":"https://api.github.com/repos/shmakova/recycler-view/releases{/id}","deployments_url":"https://api.github.com/repos/shmakova/recycler-view/deployments","created_at":"2016-07-18T18:05:36Z","updated_at":"2016-07-18T18:05:37Z","pushed_at":"2016-08-10T00:14:59Z","git_url":"git://github.com/shmakova/recycler-view.git","ssh_url":"git@github.com:shmakova/recycler-view.git","clone_url":"https://github.com/shmakova/recycler-view.git","svn_url":"https://github.com/shmakova/recycler-view","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yamblz-native:master","ref":"master","sha":"2ddadb0e4f82d2da47e48ca4f7961d21a145b418","user":{"login":"yamblz-native","id":20421172,"avatar_url":"https://avatars.githubusercontent.com/u/20421172?v=3","gravatar_id":"","url":"https://api.github.com/users/yamblz-native","html_url":"https://github.com/yamblz-native","followers_url":"https://api.github.com/users/yamblz-native/followers","following_url":"https://api.github.com/users/yamblz-native/following{/other_user}","gists_url":"https://api.github.com/users/yamblz-native/gists{/gist_id}","starred_url":"https://api.github.com/users/yamblz-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamblz-native/subscriptions","organizations_url":"https://api.github.com/users/yamblz-native/orgs","repos_url":"https://api.github.com/users/yamblz-native/repos","events_url":"https://api.github.com/users/yamblz-native/events{/privacy}","received_events_url":"https://api.github.com/users/yamblz-native/received_events","type":"Organization","site_admin":false},"repo":{"id":63621292,"name":"recycler-view","full_name":"yamblz-native/recycler-view","owner":{"login":"yamblz-native","id":20421172,"avatar_url":"https://avatars.githubusercontent.com/u/20421172?v=3","gravatar_id":"","url":"https://api.github.com/users/yamblz-native","html_url":"https://github.com/yamblz-native","followers_url":"https://api.github.com/users/yamblz-native/followers","following_url":"https://api.github.com/users/yamblz-native/following{/other_user}","gists_url":"https://api.github.com/users/yamblz-native/gists{/gist_id}","starred_url":"https://api.github.com/users/yamblz-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamblz-native/subscriptions","organizations_url":"https://api.github.com/users/yamblz-native/orgs","repos_url":"https://api.github.com/users/yamblz-native/repos","events_url":"https://api.github.com/users/yamblz-native/events{/privacy}","received_events_url":"https://api.github.com/users/yamblz-native/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yamblz-native/recycler-view","description":"Recycler view home and classwork","fork":false,"url":"https://api.github.com/repos/yamblz-native/recycler-view","forks_url":"https://api.github.com/repos/yamblz-native/recycler-view/forks","keys_url":"https://api.github.com/repos/yamblz-native/recycler-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yamblz-native/recycler-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yamblz-native/recycler-view/teams","hooks_url":"https://api.github.com/repos/yamblz-native/recycler-view/hooks","issue_events_url":"https://api.github.com/repos/yamblz-native/recycler-view/issues/events{/number}","events_url":"https://api.github.com/repos/yamblz-native/recycler-view/events","assignees_url":"https://api.github.com/repos/yamblz-native/recycler-view/assignees{/user}","branches_url":"https://api.github.com/repos/yamblz-native/recycler-view/branches{/branch}","tags_url":"https://api.github.com/repos/yamblz-native/recycler-view/tags","blobs_url":"https://api.github.com/repos/yamblz-native/recycler-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yamblz-native/recycler-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yamblz-native/recycler-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/yamblz-native/recycler-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yamblz-native/recycler-view/statuses/{sha}","languages_url":"https://api.github.com/repos/yamblz-native/recycler-view/languages","stargazers_url":"https://api.github.com/repos/yamblz-native/recycler-view/stargazers","contributors_url":"https://api.github.com/repos/yamblz-native/recycler-view/contributors","subscribers_url":"https://api.github.com/repos/yamblz-native/recycler-view/subscribers","subscription_url":"https://api.github.com/repos/yamblz-native/recycler-view/subscription","commits_url":"https://api.github.com/repos/yamblz-native/recycler-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/yamblz-native/recycler-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/yamblz-native/recycler-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/yamblz-native/recycler-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/yamblz-native/recycler-view/contents/{+path}","compare_url":"https://api.github.com/repos/yamblz-native/recycler-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yamblz-native/recycler-view/merges","archive_url":"https://api.github.com/repos/yamblz-native/recycler-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yamblz-native/recycler-view/downloads","issues_url":"https://api.github.com/repos/yamblz-native/recycler-view/issues{/number}","pulls_url":"https://api.github.com/repos/yamblz-native/recycler-view/pulls{/number}","milestones_url":"https://api.github.com/repos/yamblz-native/recycler-view/milestones{/number}","notifications_url":"https://api.github.com/repos/yamblz-native/recycler-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yamblz-native/recycler-view/labels{/name}","releases_url":"https://api.github.com/repos/yamblz-native/recycler-view/releases{/id}","deployments_url":"https://api.github.com/repos/yamblz-native/recycler-view/deployments","created_at":"2016-07-18T16:59:14Z","updated_at":"2016-07-18T16:59:32Z","pushed_at":"2016-08-10T00:14:59Z","git_url":"git://github.com/yamblz-native/recycler-view.git","ssh_url":"git@github.com:yamblz-native/recycler-view.git","clone_url":"https://github.com/yamblz-native/recycler-view.git","svn_url":"https://github.com/yamblz-native/recycler-view","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":23,"forks":26,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3"},"html":{"href":"https://github.com/yamblz-native/recycler-view/pull/3"},"issue":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/issues/3"},"comments":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/yamblz-native/recycler-view/statuses/360f70c3256ea13735386a631c8011c109d5ea2e"}}}}
{"actor":{"display_login":"shmakova"}}