{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-android/pulls/comments/174161798","pull_request_review_id":103466449,"id":174161798,"diff_hunk":"@@ -50,19 +53,20 @@ private static File moveAndScaleImage(File originalImage, boolean shouldScale,\n                 }\n             }\n         }\n-\n         if (!savedScaledImage) {\n             // If we didn't create a scaled image and save it to the final path, then relocate the\n             // original image from the temp filepath to our final path\n             File finalFile = new File(finalFilePath);\n \n-            if (!originalImage.renameTo(finalFile)) {\n+            try {\n+                FileUtil.copyFile(originalImage, finalFile);","path":"app/src/org/commcare/activities/components/ImageCaptureProcessing.java","position":22,"original_position":22,"commit_id":"771be1b92cc5b99db00aa5454132e272145390f0","original_commit_id":"771be1b92cc5b99db00aa5454132e272145390f0","user":{"login":"amstone326","id":3723143,"avatar_url":"https://avatars0.githubusercontent.com/u/3723143?v=4","gravatar_id":"","url":"https://api.github.com/users/amstone326","html_url":"https://github.com/amstone326","followers_url":"https://api.github.com/users/amstone326/followers","following_url":"https://api.github.com/users/amstone326/following{/other_user}","gists_url":"https://api.github.com/users/amstone326/gists{/gist_id}","starred_url":"https://api.github.com/users/amstone326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amstone326/subscriptions","organizations_url":"https://api.github.com/users/amstone326/orgs","repos_url":"https://api.github.com/users/amstone326/repos","events_url":"https://api.github.com/users/amstone326/events{/privacy}","received_events_url":"https://api.github.com/users/amstone326/received_events","type":"User","site_admin":false},"body":"@shubham1g5 was there any specific reason for this change (and the identical one below)?","created_at":"2018-03-13T14:55:32Z","updated_at":"2018-03-13T14:55:32Z","html_url":"https://github.com/dimagi/commcare-android/pull/1957#discussion_r174161798","pull_request_url":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/comments/174161798"},"html":{"href":"https://github.com/dimagi/commcare-android/pull/1957#discussion_r174161798"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957","id":173426460,"html_url":"https://github.com/dimagi/commcare-android/pull/1957","diff_url":"https://github.com/dimagi/commcare-android/pull/1957.diff","patch_url":"https://github.com/dimagi/commcare-android/pull/1957.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-android/issues/1957","number":1957,"state":"open","locked":false,"title":" Adds mechanism to set image path for Image widget through a broadcast","user":{"login":"shubham1g5","id":4679137,"avatar_url":"https://avatars2.githubusercontent.com/u/4679137?v=4","gravatar_id":"","url":"https://api.github.com/users/shubham1g5","html_url":"https://github.com/shubham1g5","followers_url":"https://api.github.com/users/shubham1g5/followers","following_url":"https://api.github.com/users/shubham1g5/following{/other_user}","gists_url":"https://api.github.com/users/shubham1g5/gists{/gist_id}","starred_url":"https://api.github.com/users/shubham1g5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubham1g5/subscriptions","organizations_url":"https://api.github.com/users/shubham1g5/orgs","repos_url":"https://api.github.com/users/shubham1g5/repos","events_url":"https://api.github.com/users/shubham1g5/events{/privacy}","received_events_url":"https://api.github.com/users/shubham1g5/received_events","type":"User","site_admin":false},"body":"Adds ability to upload an image in ImageWidget using a broadcast with 'file_path' as an extra with it. \r\n\r\nFor: https://github.com/dimagi/commcare-ui-tests/pull/130","created_at":"2018-03-07T11:37:59Z","updated_at":"2018-03-13T14:55:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea5147fa7820fd9c38557022cfb8f0ffe9faeb4e","assignee":{"login":"shubham1g5","id":4679137,"avatar_url":"https://avatars2.githubusercontent.com/u/4679137?v=4","gravatar_id":"","url":"https://api.github.com/users/shubham1g5","html_url":"https://github.com/shubham1g5","followers_url":"https://api.github.com/users/shubham1g5/followers","following_url":"https://api.github.com/users/shubham1g5/following{/other_user}","gists_url":"https://api.github.com/users/shubham1g5/gists{/gist_id}","starred_url":"https://api.github.com/users/shubham1g5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubham1g5/subscriptions","organizations_url":"https://api.github.com/users/shubham1g5/orgs","repos_url":"https://api.github.com/users/shubham1g5/repos","events_url":"https://api.github.com/users/shubham1g5/events{/privacy}","received_events_url":"https://api.github.com/users/shubham1g5/received_events","type":"User","site_admin":false},"assignees":[{"login":"shubham1g5","id":4679137,"avatar_url":"https://avatars2.githubusercontent.com/u/4679137?v=4","gravatar_id":"","url":"https://api.github.com/users/shubham1g5","html_url":"https://github.com/shubham1g5","followers_url":"https://api.github.com/users/shubham1g5/followers","following_url":"https://api.github.com/users/shubham1g5/following{/other_user}","gists_url":"https://api.github.com/users/shubham1g5/gists{/gist_id}","starred_url":"https://api.github.com/users/shubham1g5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubham1g5/subscriptions","organizations_url":"https://api.github.com/users/shubham1g5/orgs","repos_url":"https://api.github.com/users/shubham1g5/repos","events_url":"https://api.github.com/users/shubham1g5/events{/privacy}","received_events_url":"https://api.github.com/users/shubham1g5/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"wpride","id":2293064,"avatar_url":"https://avatars2.githubusercontent.com/u/2293064?v=4","gravatar_id":"","url":"https://api.github.com/users/wpride","html_url":"https://github.com/wpride","followers_url":"https://api.github.com/users/wpride/followers","following_url":"https://api.github.com/users/wpride/following{/other_user}","gists_url":"https://api.github.com/users/wpride/gists{/gist_id}","starred_url":"https://api.github.com/users/wpride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpride/subscriptions","organizations_url":"https://api.github.com/users/wpride/orgs","repos_url":"https://api.github.com/users/wpride/repos","events_url":"https://api.github.com/users/wpride/events{/privacy}","received_events_url":"https://api.github.com/users/wpride/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":724786974,"url":"https://api.github.com/repos/dimagi/commcare-android/labels/product/invisible","name":"product/invisible","color":"cfd2d6","default":false},{"id":116252758,"url":"https://api.github.com/repos/dimagi/commcare-android/labels/ready%20for%20review","name":"ready for review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/commcare-android/issues/1957/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-android/statuses/771be1b92cc5b99db00aa5454132e272145390f0","head":{"label":"dimagi:calabashImageUpload","ref":"calabashImageUpload","sha":"771be1b92cc5b99db00aa5454132e272145390f0","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":20939877,"name":"commcare-android","full_name":"dimagi/commcare-android","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-android","description":"The best open source form management tool in town","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-android","forks_url":"https://api.github.com/repos/dimagi/commcare-android/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-android/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-android/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-android/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-android/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-android/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-android/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-android/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-android/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-android/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-android/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-android/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-android/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-android/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-android/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-android/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-android/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-android/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-android/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-android/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-android/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-android/releases{/id}","deployments_url":"https://api.github.com/repos/dimagi/commcare-android/deployments","created_at":"2014-06-17T21:17:26Z","updated_at":"2018-03-13T14:55:32Z","pushed_at":"2018-03-13T09:46:36Z","git_url":"git://github.com/dimagi/commcare-android.git","ssh_url":"git@github.com:dimagi/commcare-android.git","clone_url":"https://github.com/dimagi/commcare-android.git","svn_url":"https://github.com/dimagi/commcare-android","homepage":"https://play.google.com/store/apps/details?id=org.commcare.dalvik&hl=en","size":157256,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":14,"open_issues":7,"watchers":10,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"50f7aeb186502d949e3dceb7a4511ed19a05a737","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":20939877,"name":"commcare-android","full_name":"dimagi/commcare-android","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars1.githubusercontent.com/u/94514?v=4","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-android","description":"The best open source form management tool in town","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-android","forks_url":"https://api.github.com/repos/dimagi/commcare-android/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-android/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-android/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-android/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-android/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-android/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-android/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-android/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-android/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-android/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-android/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-android/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-android/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-android/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-android/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-android/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-android/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-android/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-android/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-android/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-android/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-android/releases{/id}","deployments_url":"https://api.github.com/repos/dimagi/commcare-android/deployments","created_at":"2014-06-17T21:17:26Z","updated_at":"2018-03-13T14:55:32Z","pushed_at":"2018-03-13T09:46:36Z","git_url":"git://github.com/dimagi/commcare-android.git","ssh_url":"git@github.com:dimagi/commcare-android.git","clone_url":"https://github.com/dimagi/commcare-android.git","svn_url":"https://github.com/dimagi/commcare-android","homepage":"https://play.google.com/store/apps/details?id=org.commcare.dalvik&hl=en","size":157256,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":14,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957"},"html":{"href":"https://github.com/dimagi/commcare-android/pull/1957"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-android/issues/1957"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-android/issues/1957/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-android/pulls/1957/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-android/statuses/771be1b92cc5b99db00aa5454132e272145390f0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"amstone326"}}