{"action":"created","comment":{"url":"https://api.github.com/repos/StoryMaker/storypath/pulls/comments/39232458","id":39232458,"diff_hunk":"@@ -589,14 +602,26 @@ protected void onActivityResult(int requestCode, int resultCode, Intent intent)\n \n                 if (c instanceof ClipCard) {\n                     ClipCard cc = (ClipCard)c;\n-                    MediaFile mf = new MediaFile(path, Constants.PHOTO);\n-                    cc.saveMediaFile(mf);\n \n-                    // SEEMS LIKE A REASONABLE TIME TO SAVE\n-                    mStoryPathLibrary.save(true);\n+                    // confirm mime type\n+                    String mimeType = URLConnection.guessContentTypeFromName(path);\n+\n+                    Log.d(TAG, \"onActivityResult, media type is \" + mimeType);\n+\n+                    if (mimeType.startsWith(Constants.IMAGE)) {\n \n-                    mCardAdapter.changeCard(cc);\n-                    scrollRecyclerViewToCard(cc);\n+                        MediaFile mf = new MediaFile(path, Constants.PHOTO); // TODO: switch over to \"image\" to match mime type?","path":"lib/src/main/java/scal/io/liger/MainActivity.java","position":59,"original_position":59,"commit_id":"86d9706df3cd34fe85f0f86743bc2fc2e1723fc8","original_commit_id":"86d9706df3cd34fe85f0f86743bc2fc2e1723fc8","user":{"login":"vitriolix","id":7844,"avatar_url":"https://avatars.githubusercontent.com/u/7844?v=3","gravatar_id":"","url":"https://api.github.com/users/vitriolix","html_url":"https://github.com/vitriolix","followers_url":"https://api.github.com/users/vitriolix/followers","following_url":"https://api.github.com/users/vitriolix/following{/other_user}","gists_url":"https://api.github.com/users/vitriolix/gists{/gist_id}","starred_url":"https://api.github.com/users/vitriolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitriolix/subscriptions","organizations_url":"https://api.github.com/users/vitriolix/orgs","repos_url":"https://api.github.com/users/vitriolix/repos","events_url":"https://api.github.com/users/vitriolix/events{/privacy}","received_events_url":"https://api.github.com/users/vitriolix/received_events","type":"User","site_admin":false},"body":"I dont think we want to do that, might as well track the user visible name for medium, which is Photo","created_at":"2015-09-11T00:58:38Z","updated_at":"2015-09-11T00:58:38Z","html_url":"https://github.com/StoryMaker/storypath/pull/9#discussion_r39232458","pull_request_url":"https://api.github.com/repos/StoryMaker/storypath/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/comments/39232458"},"html":{"href":"https://github.com/StoryMaker/storypath/pull/9#discussion_r39232458"},"pull_request":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/StoryMaker/storypath/pulls/9","id":44736275,"html_url":"https://github.com/StoryMaker/storypath/pull/9","diff_url":"https://github.com/StoryMaker/storypath/pull/9.diff","patch_url":"https://github.com/StoryMaker/storypath/pull/9.patch","issue_url":"https://api.github.com/repos/StoryMaker/storypath/issues/9","number":9,"state":"open","locked":false,"title":"Media types","user":{"login":"mnbogner","id":6945405,"avatar_url":"https://avatars.githubusercontent.com/u/6945405?v=3","gravatar_id":"","url":"https://api.github.com/users/mnbogner","html_url":"https://github.com/mnbogner","followers_url":"https://api.github.com/users/mnbogner/followers","following_url":"https://api.github.com/users/mnbogner/following{/other_user}","gists_url":"https://api.github.com/users/mnbogner/gists{/gist_id}","starred_url":"https://api.github.com/users/mnbogner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnbogner/subscriptions","organizations_url":"https://api.github.com/users/mnbogner/orgs","repos_url":"https://api.github.com/users/mnbogner/repos","events_url":"https://api.github.com/users/mnbogner/events{/privacy}","received_events_url":"https://api.github.com/users/mnbogner/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T00:49:14Z","updated_at":"2015-09-11T00:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"052d6e71dd5f7f34fe2ae9e11993e2a0786e90b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StoryMaker/storypath/pulls/9/commits","review_comments_url":"https://api.github.com/repos/StoryMaker/storypath/pulls/9/comments","review_comment_url":"https://api.github.com/repos/StoryMaker/storypath/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StoryMaker/storypath/issues/9/comments","statuses_url":"https://api.github.com/repos/StoryMaker/storypath/statuses/86d9706df3cd34fe85f0f86743bc2fc2e1723fc8","head":{"label":"StoryMaker:media_types","ref":"media_types","sha":"86d9706df3cd34fe85f0f86743bc2fc2e1723fc8","user":{"login":"StoryMaker","id":6753224,"avatar_url":"https://avatars.githubusercontent.com/u/6753224?v=3","gravatar_id":"","url":"https://api.github.com/users/StoryMaker","html_url":"https://github.com/StoryMaker","followers_url":"https://api.github.com/users/StoryMaker/followers","following_url":"https://api.github.com/users/StoryMaker/following{/other_user}","gists_url":"https://api.github.com/users/StoryMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/StoryMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StoryMaker/subscriptions","organizations_url":"https://api.github.com/users/StoryMaker/orgs","repos_url":"https://api.github.com/users/StoryMaker/repos","events_url":"https://api.github.com/users/StoryMaker/events{/privacy}","received_events_url":"https://api.github.com/users/StoryMaker/received_events","type":"Organization","site_admin":false},"repo":{"id":21640602,"name":"storypath","full_name":"StoryMaker/storypath","owner":{"login":"StoryMaker","id":6753224,"avatar_url":"https://avatars.githubusercontent.com/u/6753224?v=3","gravatar_id":"","url":"https://api.github.com/users/StoryMaker","html_url":"https://github.com/StoryMaker","followers_url":"https://api.github.com/users/StoryMaker/followers","following_url":"https://api.github.com/users/StoryMaker/following{/other_user}","gists_url":"https://api.github.com/users/StoryMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/StoryMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StoryMaker/subscriptions","organizations_url":"https://api.github.com/users/StoryMaker/orgs","repos_url":"https://api.github.com/users/StoryMaker/repos","events_url":"https://api.github.com/users/StoryMaker/events{/privacy}","received_events_url":"https://api.github.com/users/StoryMaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StoryMaker/storypath","description":"The StoryPath Framework","fork":false,"url":"https://api.github.com/repos/StoryMaker/storypath","forks_url":"https://api.github.com/repos/StoryMaker/storypath/forks","keys_url":"https://api.github.com/repos/StoryMaker/storypath/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StoryMaker/storypath/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StoryMaker/storypath/teams","hooks_url":"https://api.github.com/repos/StoryMaker/storypath/hooks","issue_events_url":"https://api.github.com/repos/StoryMaker/storypath/issues/events{/number}","events_url":"https://api.github.com/repos/StoryMaker/storypath/events","assignees_url":"https://api.github.com/repos/StoryMaker/storypath/assignees{/user}","branches_url":"https://api.github.com/repos/StoryMaker/storypath/branches{/branch}","tags_url":"https://api.github.com/repos/StoryMaker/storypath/tags","blobs_url":"https://api.github.com/repos/StoryMaker/storypath/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StoryMaker/storypath/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StoryMaker/storypath/git/refs{/sha}","trees_url":"https://api.github.com/repos/StoryMaker/storypath/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StoryMaker/storypath/statuses/{sha}","languages_url":"https://api.github.com/repos/StoryMaker/storypath/languages","stargazers_url":"https://api.github.com/repos/StoryMaker/storypath/stargazers","contributors_url":"https://api.github.com/repos/StoryMaker/storypath/contributors","subscribers_url":"https://api.github.com/repos/StoryMaker/storypath/subscribers","subscription_url":"https://api.github.com/repos/StoryMaker/storypath/subscription","commits_url":"https://api.github.com/repos/StoryMaker/storypath/commits{/sha}","git_commits_url":"https://api.github.com/repos/StoryMaker/storypath/git/commits{/sha}","comments_url":"https://api.github.com/repos/StoryMaker/storypath/comments{/number}","issue_comment_url":"https://api.github.com/repos/StoryMaker/storypath/issues/comments{/number}","contents_url":"https://api.github.com/repos/StoryMaker/storypath/contents/{+path}","compare_url":"https://api.github.com/repos/StoryMaker/storypath/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StoryMaker/storypath/merges","archive_url":"https://api.github.com/repos/StoryMaker/storypath/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StoryMaker/storypath/downloads","issues_url":"https://api.github.com/repos/StoryMaker/storypath/issues{/number}","pulls_url":"https://api.github.com/repos/StoryMaker/storypath/pulls{/number}","milestones_url":"https://api.github.com/repos/StoryMaker/storypath/milestones{/number}","notifications_url":"https://api.github.com/repos/StoryMaker/storypath/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StoryMaker/storypath/labels{/name}","releases_url":"https://api.github.com/repos/StoryMaker/storypath/releases{/id}","created_at":"2014-07-09T05:32:26Z","updated_at":"2015-08-25T23:21:55Z","pushed_at":"2015-09-11T00:49:14Z","git_url":"git://github.com/StoryMaker/storypath.git","ssh_url":"git@github.com:StoryMaker/storypath.git","clone_url":"https://github.com/StoryMaker/storypath.git","svn_url":"https://github.com/StoryMaker/storypath","homepage":"http://storymaker.org","size":20728,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"StoryMaker:dev","ref":"dev","sha":"192711fcc3e9b600349e32034c748acc3210d6f4","user":{"login":"StoryMaker","id":6753224,"avatar_url":"https://avatars.githubusercontent.com/u/6753224?v=3","gravatar_id":"","url":"https://api.github.com/users/StoryMaker","html_url":"https://github.com/StoryMaker","followers_url":"https://api.github.com/users/StoryMaker/followers","following_url":"https://api.github.com/users/StoryMaker/following{/other_user}","gists_url":"https://api.github.com/users/StoryMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/StoryMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StoryMaker/subscriptions","organizations_url":"https://api.github.com/users/StoryMaker/orgs","repos_url":"https://api.github.com/users/StoryMaker/repos","events_url":"https://api.github.com/users/StoryMaker/events{/privacy}","received_events_url":"https://api.github.com/users/StoryMaker/received_events","type":"Organization","site_admin":false},"repo":{"id":21640602,"name":"storypath","full_name":"StoryMaker/storypath","owner":{"login":"StoryMaker","id":6753224,"avatar_url":"https://avatars.githubusercontent.com/u/6753224?v=3","gravatar_id":"","url":"https://api.github.com/users/StoryMaker","html_url":"https://github.com/StoryMaker","followers_url":"https://api.github.com/users/StoryMaker/followers","following_url":"https://api.github.com/users/StoryMaker/following{/other_user}","gists_url":"https://api.github.com/users/StoryMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/StoryMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StoryMaker/subscriptions","organizations_url":"https://api.github.com/users/StoryMaker/orgs","repos_url":"https://api.github.com/users/StoryMaker/repos","events_url":"https://api.github.com/users/StoryMaker/events{/privacy}","received_events_url":"https://api.github.com/users/StoryMaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StoryMaker/storypath","description":"The StoryPath Framework","fork":false,"url":"https://api.github.com/repos/StoryMaker/storypath","forks_url":"https://api.github.com/repos/StoryMaker/storypath/forks","keys_url":"https://api.github.com/repos/StoryMaker/storypath/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StoryMaker/storypath/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StoryMaker/storypath/teams","hooks_url":"https://api.github.com/repos/StoryMaker/storypath/hooks","issue_events_url":"https://api.github.com/repos/StoryMaker/storypath/issues/events{/number}","events_url":"https://api.github.com/repos/StoryMaker/storypath/events","assignees_url":"https://api.github.com/repos/StoryMaker/storypath/assignees{/user}","branches_url":"https://api.github.com/repos/StoryMaker/storypath/branches{/branch}","tags_url":"https://api.github.com/repos/StoryMaker/storypath/tags","blobs_url":"https://api.github.com/repos/StoryMaker/storypath/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StoryMaker/storypath/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StoryMaker/storypath/git/refs{/sha}","trees_url":"https://api.github.com/repos/StoryMaker/storypath/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StoryMaker/storypath/statuses/{sha}","languages_url":"https://api.github.com/repos/StoryMaker/storypath/languages","stargazers_url":"https://api.github.com/repos/StoryMaker/storypath/stargazers","contributors_url":"https://api.github.com/repos/StoryMaker/storypath/contributors","subscribers_url":"https://api.github.com/repos/StoryMaker/storypath/subscribers","subscription_url":"https://api.github.com/repos/StoryMaker/storypath/subscription","commits_url":"https://api.github.com/repos/StoryMaker/storypath/commits{/sha}","git_commits_url":"https://api.github.com/repos/StoryMaker/storypath/git/commits{/sha}","comments_url":"https://api.github.com/repos/StoryMaker/storypath/comments{/number}","issue_comment_url":"https://api.github.com/repos/StoryMaker/storypath/issues/comments{/number}","contents_url":"https://api.github.com/repos/StoryMaker/storypath/contents/{+path}","compare_url":"https://api.github.com/repos/StoryMaker/storypath/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StoryMaker/storypath/merges","archive_url":"https://api.github.com/repos/StoryMaker/storypath/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StoryMaker/storypath/downloads","issues_url":"https://api.github.com/repos/StoryMaker/storypath/issues{/number}","pulls_url":"https://api.github.com/repos/StoryMaker/storypath/pulls{/number}","milestones_url":"https://api.github.com/repos/StoryMaker/storypath/milestones{/number}","notifications_url":"https://api.github.com/repos/StoryMaker/storypath/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StoryMaker/storypath/labels{/name}","releases_url":"https://api.github.com/repos/StoryMaker/storypath/releases{/id}","created_at":"2014-07-09T05:32:26Z","updated_at":"2015-08-25T23:21:55Z","pushed_at":"2015-09-11T00:49:14Z","git_url":"git://github.com/StoryMaker/storypath.git","ssh_url":"git@github.com:StoryMaker/storypath.git","clone_url":"https://github.com/StoryMaker/storypath.git","svn_url":"https://github.com/StoryMaker/storypath","homepage":"http://storymaker.org","size":20728,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/9"},"html":{"href":"https://github.com/StoryMaker/storypath/pull/9"},"issue":{"href":"https://api.github.com/repos/StoryMaker/storypath/issues/9"},"comments":{"href":"https://api.github.com/repos/StoryMaker/storypath/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StoryMaker/storypath/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/StoryMaker/storypath/statuses/86d9706df3cd34fe85f0f86743bc2fc2e1723fc8"}}}}