{"action":"created","comment":{"url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/comments/59096264","id":59096264,"diff_hunk":"@@ -3,29 +3,55 @@\n import android.os.Bundle;\n import android.support.v4.app.FragmentTransaction;\n import android.support.v7.app.AppCompatActivity;\n+import android.view.View;\n+import android.widget.Button;\n \n import com.connorlay.knitgrid.R;\n+import com.connorlay.knitgrid.fragments.PatternGridLegendFragment;\n import com.connorlay.knitgrid.fragments.PatternHighlightFragment;\n import com.connorlay.knitgrid.models.Pattern;\n import com.connorlay.knitgrid.presenters.PatternPresenter;\n \n import butterknife.ButterKnife;\n \n-public class PatternDetailActivity extends AppCompatActivity {\n+public class PatternDetailActivity extends AppCompatActivity implements View.OnClickListener {\n     public static final String STITCH_EXTRA = \"STITCH_EXTRA\";\n     public static final String ARG_PATTERN = \"PatternDetailActivity.ArgPattern\";\n+    private PatternPresenter patternPresenter;\n+    private Pattern pattern;\n \n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_pattern_detail_view);\n         ButterKnife.bind(this);\n \n-        Pattern pattern = getIntent().getParcelableExtra(ARG_PATTERN);\n-        PatternPresenter patternPresenter = new PatternPresenter(pattern);\n-        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n+        pattern = getIntent().getParcelableExtra(ARG_PATTERN);","path":"app/src/main/java/com/connorlay/knitgrid/activities/PatternDetailActivity.java","position":34,"original_position":31,"commit_id":"fba46b372d8e69915549f045e2c27eb7c29e8267","original_commit_id":"927964182ec7f4dd3e6cb9f0c3b62faaffd74603","user":{"login":"connorlay","id":6548350,"avatar_url":"https://avatars.githubusercontent.com/u/6548350?v=3","gravatar_id":"","url":"https://api.github.com/users/connorlay","html_url":"https://github.com/connorlay","followers_url":"https://api.github.com/users/connorlay/followers","following_url":"https://api.github.com/users/connorlay/following{/other_user}","gists_url":"https://api.github.com/users/connorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/connorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorlay/subscriptions","organizations_url":"https://api.github.com/users/connorlay/orgs","repos_url":"https://api.github.com/users/connorlay/repos","events_url":"https://api.github.com/users/connorlay/events{/privacy}","received_events_url":"https://api.github.com/users/connorlay/received_events","type":"User","site_admin":false},"body":"Hmm that is a good point. You can leave it as is if you want.","created_at":"2016-04-08T22:11:48Z","updated_at":"2016-04-08T22:11:48Z","html_url":"https://github.com/connorlay/KnitGrid/pull/10#discussion_r59096264","pull_request_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/comments/59096264"},"html":{"href":"https://github.com/connorlay/KnitGrid/pull/10#discussion_r59096264"},"pull_request":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10","id":61169916,"html_url":"https://github.com/connorlay/KnitGrid/pull/10","diff_url":"https://github.com/connorlay/KnitGrid/pull/10.diff","patch_url":"https://github.com/connorlay/KnitGrid/pull/10.patch","issue_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/10","number":10,"state":"open","locked":false,"title":"Legend","user":{"login":"gdaaronson","id":11381262,"avatar_url":"https://avatars.githubusercontent.com/u/11381262?v=3","gravatar_id":"","url":"https://api.github.com/users/gdaaronson","html_url":"https://github.com/gdaaronson","followers_url":"https://api.github.com/users/gdaaronson/followers","following_url":"https://api.github.com/users/gdaaronson/following{/other_user}","gists_url":"https://api.github.com/users/gdaaronson/gists{/gist_id}","starred_url":"https://api.github.com/users/gdaaronson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdaaronson/subscriptions","organizations_url":"https://api.github.com/users/gdaaronson/orgs","repos_url":"https://api.github.com/users/gdaaronson/repos","events_url":"https://api.github.com/users/gdaaronson/events{/privacy}","received_events_url":"https://api.github.com/users/gdaaronson/received_events","type":"User","site_admin":false},"body":"Is this what you need?","created_at":"2016-03-01T00:11:25Z","updated_at":"2016-04-08T22:11:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0de19d7e9441cfbca89f9a9c4420a25cf6751dee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10/commits","review_comments_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10/comments","review_comment_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/10/comments","statuses_url":"https://api.github.com/repos/connorlay/KnitGrid/statuses/fba46b372d8e69915549f045e2c27eb7c29e8267","head":{"label":"connorlay:legend","ref":"legend","sha":"fba46b372d8e69915549f045e2c27eb7c29e8267","user":{"login":"connorlay","id":6548350,"avatar_url":"https://avatars.githubusercontent.com/u/6548350?v=3","gravatar_id":"","url":"https://api.github.com/users/connorlay","html_url":"https://github.com/connorlay","followers_url":"https://api.github.com/users/connorlay/followers","following_url":"https://api.github.com/users/connorlay/following{/other_user}","gists_url":"https://api.github.com/users/connorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/connorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorlay/subscriptions","organizations_url":"https://api.github.com/users/connorlay/orgs","repos_url":"https://api.github.com/users/connorlay/repos","events_url":"https://api.github.com/users/connorlay/events{/privacy}","received_events_url":"https://api.github.com/users/connorlay/received_events","type":"User","site_admin":false},"repo":{"id":51342888,"name":"KnitGrid","full_name":"connorlay/KnitGrid","owner":{"login":"connorlay","id":6548350,"avatar_url":"https://avatars.githubusercontent.com/u/6548350?v=3","gravatar_id":"","url":"https://api.github.com/users/connorlay","html_url":"https://github.com/connorlay","followers_url":"https://api.github.com/users/connorlay/followers","following_url":"https://api.github.com/users/connorlay/following{/other_user}","gists_url":"https://api.github.com/users/connorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/connorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorlay/subscriptions","organizations_url":"https://api.github.com/users/connorlay/orgs","repos_url":"https://api.github.com/users/connorlay/repos","events_url":"https://api.github.com/users/connorlay/events{/privacy}","received_events_url":"https://api.github.com/users/connorlay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/connorlay/KnitGrid","description":"","fork":false,"url":"https://api.github.com/repos/connorlay/KnitGrid","forks_url":"https://api.github.com/repos/connorlay/KnitGrid/forks","keys_url":"https://api.github.com/repos/connorlay/KnitGrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/connorlay/KnitGrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/connorlay/KnitGrid/teams","hooks_url":"https://api.github.com/repos/connorlay/KnitGrid/hooks","issue_events_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/events{/number}","events_url":"https://api.github.com/repos/connorlay/KnitGrid/events","assignees_url":"https://api.github.com/repos/connorlay/KnitGrid/assignees{/user}","branches_url":"https://api.github.com/repos/connorlay/KnitGrid/branches{/branch}","tags_url":"https://api.github.com/repos/connorlay/KnitGrid/tags","blobs_url":"https://api.github.com/repos/connorlay/KnitGrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/connorlay/KnitGrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/connorlay/KnitGrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/connorlay/KnitGrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/connorlay/KnitGrid/statuses/{sha}","languages_url":"https://api.github.com/repos/connorlay/KnitGrid/languages","stargazers_url":"https://api.github.com/repos/connorlay/KnitGrid/stargazers","contributors_url":"https://api.github.com/repos/connorlay/KnitGrid/contributors","subscribers_url":"https://api.github.com/repos/connorlay/KnitGrid/subscribers","subscription_url":"https://api.github.com/repos/connorlay/KnitGrid/subscription","commits_url":"https://api.github.com/repos/connorlay/KnitGrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/connorlay/KnitGrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/connorlay/KnitGrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/connorlay/KnitGrid/contents/{+path}","compare_url":"https://api.github.com/repos/connorlay/KnitGrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/connorlay/KnitGrid/merges","archive_url":"https://api.github.com/repos/connorlay/KnitGrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/connorlay/KnitGrid/downloads","issues_url":"https://api.github.com/repos/connorlay/KnitGrid/issues{/number}","pulls_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls{/number}","milestones_url":"https://api.github.com/repos/connorlay/KnitGrid/milestones{/number}","notifications_url":"https://api.github.com/repos/connorlay/KnitGrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/connorlay/KnitGrid/labels{/name}","releases_url":"https://api.github.com/repos/connorlay/KnitGrid/releases{/id}","deployments_url":"https://api.github.com/repos/connorlay/KnitGrid/deployments","created_at":"2016-02-09T02:45:43Z","updated_at":"2016-02-09T02:46:06Z","pushed_at":"2016-04-08T21:55:05Z","git_url":"git://github.com/connorlay/KnitGrid.git","ssh_url":"git@github.com:connorlay/KnitGrid.git","clone_url":"https://github.com/connorlay/KnitGrid.git","svn_url":"https://github.com/connorlay/KnitGrid","homepage":null,"size":3931,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"connorlay:master","ref":"master","sha":"fe13ed64f0c7a0db688c6f1a427baa535d083728","user":{"login":"connorlay","id":6548350,"avatar_url":"https://avatars.githubusercontent.com/u/6548350?v=3","gravatar_id":"","url":"https://api.github.com/users/connorlay","html_url":"https://github.com/connorlay","followers_url":"https://api.github.com/users/connorlay/followers","following_url":"https://api.github.com/users/connorlay/following{/other_user}","gists_url":"https://api.github.com/users/connorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/connorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorlay/subscriptions","organizations_url":"https://api.github.com/users/connorlay/orgs","repos_url":"https://api.github.com/users/connorlay/repos","events_url":"https://api.github.com/users/connorlay/events{/privacy}","received_events_url":"https://api.github.com/users/connorlay/received_events","type":"User","site_admin":false},"repo":{"id":51342888,"name":"KnitGrid","full_name":"connorlay/KnitGrid","owner":{"login":"connorlay","id":6548350,"avatar_url":"https://avatars.githubusercontent.com/u/6548350?v=3","gravatar_id":"","url":"https://api.github.com/users/connorlay","html_url":"https://github.com/connorlay","followers_url":"https://api.github.com/users/connorlay/followers","following_url":"https://api.github.com/users/connorlay/following{/other_user}","gists_url":"https://api.github.com/users/connorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/connorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connorlay/subscriptions","organizations_url":"https://api.github.com/users/connorlay/orgs","repos_url":"https://api.github.com/users/connorlay/repos","events_url":"https://api.github.com/users/connorlay/events{/privacy}","received_events_url":"https://api.github.com/users/connorlay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/connorlay/KnitGrid","description":"","fork":false,"url":"https://api.github.com/repos/connorlay/KnitGrid","forks_url":"https://api.github.com/repos/connorlay/KnitGrid/forks","keys_url":"https://api.github.com/repos/connorlay/KnitGrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/connorlay/KnitGrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/connorlay/KnitGrid/teams","hooks_url":"https://api.github.com/repos/connorlay/KnitGrid/hooks","issue_events_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/events{/number}","events_url":"https://api.github.com/repos/connorlay/KnitGrid/events","assignees_url":"https://api.github.com/repos/connorlay/KnitGrid/assignees{/user}","branches_url":"https://api.github.com/repos/connorlay/KnitGrid/branches{/branch}","tags_url":"https://api.github.com/repos/connorlay/KnitGrid/tags","blobs_url":"https://api.github.com/repos/connorlay/KnitGrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/connorlay/KnitGrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/connorlay/KnitGrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/connorlay/KnitGrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/connorlay/KnitGrid/statuses/{sha}","languages_url":"https://api.github.com/repos/connorlay/KnitGrid/languages","stargazers_url":"https://api.github.com/repos/connorlay/KnitGrid/stargazers","contributors_url":"https://api.github.com/repos/connorlay/KnitGrid/contributors","subscribers_url":"https://api.github.com/repos/connorlay/KnitGrid/subscribers","subscription_url":"https://api.github.com/repos/connorlay/KnitGrid/subscription","commits_url":"https://api.github.com/repos/connorlay/KnitGrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/connorlay/KnitGrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/connorlay/KnitGrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/connorlay/KnitGrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/connorlay/KnitGrid/contents/{+path}","compare_url":"https://api.github.com/repos/connorlay/KnitGrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/connorlay/KnitGrid/merges","archive_url":"https://api.github.com/repos/connorlay/KnitGrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/connorlay/KnitGrid/downloads","issues_url":"https://api.github.com/repos/connorlay/KnitGrid/issues{/number}","pulls_url":"https://api.github.com/repos/connorlay/KnitGrid/pulls{/number}","milestones_url":"https://api.github.com/repos/connorlay/KnitGrid/milestones{/number}","notifications_url":"https://api.github.com/repos/connorlay/KnitGrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/connorlay/KnitGrid/labels{/name}","releases_url":"https://api.github.com/repos/connorlay/KnitGrid/releases{/id}","deployments_url":"https://api.github.com/repos/connorlay/KnitGrid/deployments","created_at":"2016-02-09T02:45:43Z","updated_at":"2016-02-09T02:46:06Z","pushed_at":"2016-04-08T21:55:05Z","git_url":"git://github.com/connorlay/KnitGrid.git","ssh_url":"git@github.com:connorlay/KnitGrid.git","clone_url":"https://github.com/connorlay/KnitGrid.git","svn_url":"https://github.com/connorlay/KnitGrid","homepage":null,"size":3931,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10"},"html":{"href":"https://github.com/connorlay/KnitGrid/pull/10"},"issue":{"href":"https://api.github.com/repos/connorlay/KnitGrid/issues/10"},"comments":{"href":"https://api.github.com/repos/connorlay/KnitGrid/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/connorlay/KnitGrid/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/connorlay/KnitGrid/statuses/fba46b372d8e69915549f045e2c27eb7c29e8267"}}}}