{"action":"created","comment":{"url":"https://api.github.com/repos/stkent/amplify/pulls/comments/45125119","id":45125119,"diff_hunk":"@@ -40,86 +40,67 @@ private FeedbackUtils() {\n     }\n \n     public static void showFeedbackEmailChooser(final Activity activity) {\n-        activity.startActivity(Intent.createChooser(getFeedbackEmailIntent(), \"Choose an email provider:\"));\n+        activity.startActivity(Intent.createChooser(getFeedbackEmailIntent(activity), \"Choose an email provider:\"));\n         activity.overridePendingTransition(0, 0);\n     }\n \n     public static boolean canHandleFeedbackEmailIntent(final Context context) {\n-        final List<ResolveInfo> resolveInfoList = context.getPackageManager().queryIntentActivities(getFeedbackEmailIntent(),\n+        final List<ResolveInfo> resolveInfoList = context.getPackageManager().queryIntentActivities(getFeedbackEmailIntent(context),\n                 PackageManager.MATCH_DEFAULT_ONLY);\n         return !resolveInfoList.isEmpty();\n     }\n \n-    public static String getAppInfo() {\n-        //noinspection StringBufferReplaceableByString\n-\n-        return new StringBuilder(BASE_MESSAGE_LENGTH)\n-\n-        .append(\"\\n\\n\\n---------------------\\nApp Version: \")\n-\n-        .append(BuildConfig.VERSION_NAME)\n-        .append(\" - \")\n-        .append(BuildConfig.VERSION_CODE)\n-        .append(\"\\n\")\n-\n-        .append(\"Android OS Version: \")\n-        .append(Build.VERSION.RELEASE)\n-        .append(\" - \")\n-        .append(Build.VERSION.SDK_INT)\n+    private static Intent getFeedbackEmailIntent(Context context) {\n \n-        .append(\"\\n\")\n-        .append(\"Date: \")\n-        .append(System.currentTimeMillis())\n-        .toString();\n-    }\n-\n-    /**\n-     * Creates a bitmap from the activity's root view\n-     */\n-    public static void getBitmapFromRootView(Activity activity, final OnBitmapCapturedListener bitmapCapturedListener) {\n-        final View view = activity.getWindow().getDecorView().getRootView();\n-            bitmapCapturedListener.onCapture(getScreenBitmap(view), null);\n-    }\n-\n-    public static List<Uri> getAttachmentList(Uri... uris) {\n-        List<Uri> list = new ArrayList<>(uris.length);\n-        list.addAll(Arrays.asList(uris));\n-        return list;\n-    }\n+        String email;\n \n-    private static Intent getFeedbackEmailIntent() {\n-        final Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n+        try {\n+            email = context.getString(R.string.amp_feedback_email);\n+        } catch (Resources.NotFoundException e) {\n+            throw new IllegalArgumentException(\"R.string.amp_feedback_email resource not found, you must set this in your strings file for the\"","path":"amplify/src/main/java/com/github/stkent/amplify/FeedbackUtils.java","position":84,"original_position":84,"commit_id":"129243e398c010e3ec317bdf6cdbd32a28d8504f","original_commit_id":"129243e398c010e3ec317bdf6cdbd32a28d8504f","user":{"login":"stkent","id":6463980,"avatar_url":"https://avatars.githubusercontent.com/u/6463980?v=3","gravatar_id":"","url":"https://api.github.com/users/stkent","html_url":"https://github.com/stkent","followers_url":"https://api.github.com/users/stkent/followers","following_url":"https://api.github.com/users/stkent/following{/other_user}","gists_url":"https://api.github.com/users/stkent/gists{/gist_id}","starred_url":"https://api.github.com/users/stkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkent/subscriptions","organizations_url":"https://api.github.com/users/stkent/orgs","repos_url":"https://api.github.com/users/stkent/repos","events_url":"https://api.github.com/users/stkent/events{/privacy}","received_events_url":"https://api.github.com/users/stkent/received_events","type":"User","site_admin":false},"body":"Runtime crash, better to log?","created_at":"2015-11-17T21:38:45Z","updated_at":"2015-11-17T21:38:45Z","html_url":"https://github.com/stkent/amplify/pull/31#discussion_r45125119","pull_request_url":"https://api.github.com/repos/stkent/amplify/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/stkent/amplify/pulls/comments/45125119"},"html":{"href":"https://github.com/stkent/amplify/pull/31#discussion_r45125119"},"pull_request":{"href":"https://api.github.com/repos/stkent/amplify/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/stkent/amplify/pulls/31","id":51007574,"html_url":"https://github.com/stkent/amplify/pull/31","diff_url":"https://github.com/stkent/amplify/pull/31.diff","patch_url":"https://github.com/stkent/amplify/pull/31.patch","issue_url":"https://api.github.com/repos/stkent/amplify/issues/31","number":31,"state":"open","locked":false,"title":"Fixed Feedback utils and connected to AmplifyView","user":{"login":"btkelly","id":826036,"avatar_url":"https://avatars.githubusercontent.com/u/826036?v=3","gravatar_id":"","url":"https://api.github.com/users/btkelly","html_url":"https://github.com/btkelly","followers_url":"https://api.github.com/users/btkelly/followers","following_url":"https://api.github.com/users/btkelly/following{/other_user}","gists_url":"https://api.github.com/users/btkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/btkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btkelly/subscriptions","organizations_url":"https://api.github.com/users/btkelly/orgs","repos_url":"https://api.github.com/users/btkelly/repos","events_url":"https://api.github.com/users/btkelly/events{/privacy}","received_events_url":"https://api.github.com/users/btkelly/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-17T21:31:31Z","updated_at":"2015-11-17T21:38:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"320a8b9f8ab254e4c748b0858fd379eee71accc0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stkent/amplify/pulls/31/commits","review_comments_url":"https://api.github.com/repos/stkent/amplify/pulls/31/comments","review_comment_url":"https://api.github.com/repos/stkent/amplify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stkent/amplify/issues/31/comments","statuses_url":"https://api.github.com/repos/stkent/amplify/statuses/129243e398c010e3ec317bdf6cdbd32a28d8504f","head":{"label":"btkelly:feedback-utils","ref":"feedback-utils","sha":"129243e398c010e3ec317bdf6cdbd32a28d8504f","user":{"login":"btkelly","id":826036,"avatar_url":"https://avatars.githubusercontent.com/u/826036?v=3","gravatar_id":"","url":"https://api.github.com/users/btkelly","html_url":"https://github.com/btkelly","followers_url":"https://api.github.com/users/btkelly/followers","following_url":"https://api.github.com/users/btkelly/following{/other_user}","gists_url":"https://api.github.com/users/btkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/btkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btkelly/subscriptions","organizations_url":"https://api.github.com/users/btkelly/orgs","repos_url":"https://api.github.com/users/btkelly/repos","events_url":"https://api.github.com/users/btkelly/events{/privacy}","received_events_url":"https://api.github.com/users/btkelly/received_events","type":"User","site_admin":false},"repo":{"id":43564394,"name":"amplify","full_name":"btkelly/amplify","owner":{"login":"btkelly","id":826036,"avatar_url":"https://avatars.githubusercontent.com/u/826036?v=3","gravatar_id":"","url":"https://api.github.com/users/btkelly","html_url":"https://github.com/btkelly","followers_url":"https://api.github.com/users/btkelly/followers","following_url":"https://api.github.com/users/btkelly/following{/other_user}","gists_url":"https://api.github.com/users/btkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/btkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btkelly/subscriptions","organizations_url":"https://api.github.com/users/btkelly/orgs","repos_url":"https://api.github.com/users/btkelly/repos","events_url":"https://api.github.com/users/btkelly/events{/privacy}","received_events_url":"https://api.github.com/users/btkelly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/btkelly/amplify","description":"","fork":true,"url":"https://api.github.com/repos/btkelly/amplify","forks_url":"https://api.github.com/repos/btkelly/amplify/forks","keys_url":"https://api.github.com/repos/btkelly/amplify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/btkelly/amplify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/btkelly/amplify/teams","hooks_url":"https://api.github.com/repos/btkelly/amplify/hooks","issue_events_url":"https://api.github.com/repos/btkelly/amplify/issues/events{/number}","events_url":"https://api.github.com/repos/btkelly/amplify/events","assignees_url":"https://api.github.com/repos/btkelly/amplify/assignees{/user}","branches_url":"https://api.github.com/repos/btkelly/amplify/branches{/branch}","tags_url":"https://api.github.com/repos/btkelly/amplify/tags","blobs_url":"https://api.github.com/repos/btkelly/amplify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/btkelly/amplify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/btkelly/amplify/git/refs{/sha}","trees_url":"https://api.github.com/repos/btkelly/amplify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/btkelly/amplify/statuses/{sha}","languages_url":"https://api.github.com/repos/btkelly/amplify/languages","stargazers_url":"https://api.github.com/repos/btkelly/amplify/stargazers","contributors_url":"https://api.github.com/repos/btkelly/amplify/contributors","subscribers_url":"https://api.github.com/repos/btkelly/amplify/subscribers","subscription_url":"https://api.github.com/repos/btkelly/amplify/subscription","commits_url":"https://api.github.com/repos/btkelly/amplify/commits{/sha}","git_commits_url":"https://api.github.com/repos/btkelly/amplify/git/commits{/sha}","comments_url":"https://api.github.com/repos/btkelly/amplify/comments{/number}","issue_comment_url":"https://api.github.com/repos/btkelly/amplify/issues/comments{/number}","contents_url":"https://api.github.com/repos/btkelly/amplify/contents/{+path}","compare_url":"https://api.github.com/repos/btkelly/amplify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/btkelly/amplify/merges","archive_url":"https://api.github.com/repos/btkelly/amplify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/btkelly/amplify/downloads","issues_url":"https://api.github.com/repos/btkelly/amplify/issues{/number}","pulls_url":"https://api.github.com/repos/btkelly/amplify/pulls{/number}","milestones_url":"https://api.github.com/repos/btkelly/amplify/milestones{/number}","notifications_url":"https://api.github.com/repos/btkelly/amplify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/btkelly/amplify/labels{/name}","releases_url":"https://api.github.com/repos/btkelly/amplify/releases{/id}","created_at":"2015-10-02T16:41:25Z","updated_at":"2015-10-02T16:41:25Z","pushed_at":"2015-11-17T21:30:47Z","git_url":"git://github.com/btkelly/amplify.git","ssh_url":"git@github.com:btkelly/amplify.git","clone_url":"https://github.com/btkelly/amplify.git","svn_url":"https://github.com/btkelly/amplify","homepage":null,"size":276,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"stkent:master","ref":"master","sha":"7dad1b3aff89adbbf7323740557bb74b553cd1b8","user":{"login":"stkent","id":6463980,"avatar_url":"https://avatars.githubusercontent.com/u/6463980?v=3","gravatar_id":"","url":"https://api.github.com/users/stkent","html_url":"https://github.com/stkent","followers_url":"https://api.github.com/users/stkent/followers","following_url":"https://api.github.com/users/stkent/following{/other_user}","gists_url":"https://api.github.com/users/stkent/gists{/gist_id}","starred_url":"https://api.github.com/users/stkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkent/subscriptions","organizations_url":"https://api.github.com/users/stkent/orgs","repos_url":"https://api.github.com/users/stkent/repos","events_url":"https://api.github.com/users/stkent/events{/privacy}","received_events_url":"https://api.github.com/users/stkent/received_events","type":"User","site_admin":false},"repo":{"id":43563629,"name":"amplify","full_name":"stkent/amplify","owner":{"login":"stkent","id":6463980,"avatar_url":"https://avatars.githubusercontent.com/u/6463980?v=3","gravatar_id":"","url":"https://api.github.com/users/stkent","html_url":"https://github.com/stkent","followers_url":"https://api.github.com/users/stkent/followers","following_url":"https://api.github.com/users/stkent/following{/other_user}","gists_url":"https://api.github.com/users/stkent/gists{/gist_id}","starred_url":"https://api.github.com/users/stkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkent/subscriptions","organizations_url":"https://api.github.com/users/stkent/orgs","repos_url":"https://api.github.com/users/stkent/repos","events_url":"https://api.github.com/users/stkent/events{/privacy}","received_events_url":"https://api.github.com/users/stkent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stkent/amplify","description":"","fork":false,"url":"https://api.github.com/repos/stkent/amplify","forks_url":"https://api.github.com/repos/stkent/amplify/forks","keys_url":"https://api.github.com/repos/stkent/amplify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stkent/amplify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stkent/amplify/teams","hooks_url":"https://api.github.com/repos/stkent/amplify/hooks","issue_events_url":"https://api.github.com/repos/stkent/amplify/issues/events{/number}","events_url":"https://api.github.com/repos/stkent/amplify/events","assignees_url":"https://api.github.com/repos/stkent/amplify/assignees{/user}","branches_url":"https://api.github.com/repos/stkent/amplify/branches{/branch}","tags_url":"https://api.github.com/repos/stkent/amplify/tags","blobs_url":"https://api.github.com/repos/stkent/amplify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stkent/amplify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stkent/amplify/git/refs{/sha}","trees_url":"https://api.github.com/repos/stkent/amplify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stkent/amplify/statuses/{sha}","languages_url":"https://api.github.com/repos/stkent/amplify/languages","stargazers_url":"https://api.github.com/repos/stkent/amplify/stargazers","contributors_url":"https://api.github.com/repos/stkent/amplify/contributors","subscribers_url":"https://api.github.com/repos/stkent/amplify/subscribers","subscription_url":"https://api.github.com/repos/stkent/amplify/subscription","commits_url":"https://api.github.com/repos/stkent/amplify/commits{/sha}","git_commits_url":"https://api.github.com/repos/stkent/amplify/git/commits{/sha}","comments_url":"https://api.github.com/repos/stkent/amplify/comments{/number}","issue_comment_url":"https://api.github.com/repos/stkent/amplify/issues/comments{/number}","contents_url":"https://api.github.com/repos/stkent/amplify/contents/{+path}","compare_url":"https://api.github.com/repos/stkent/amplify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stkent/amplify/merges","archive_url":"https://api.github.com/repos/stkent/amplify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stkent/amplify/downloads","issues_url":"https://api.github.com/repos/stkent/amplify/issues{/number}","pulls_url":"https://api.github.com/repos/stkent/amplify/pulls{/number}","milestones_url":"https://api.github.com/repos/stkent/amplify/milestones{/number}","notifications_url":"https://api.github.com/repos/stkent/amplify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stkent/amplify/labels{/name}","releases_url":"https://api.github.com/repos/stkent/amplify/releases{/id}","created_at":"2015-10-02T16:25:28Z","updated_at":"2015-11-03T21:40:03Z","pushed_at":"2015-11-17T21:31:31Z","git_url":"git://github.com/stkent/amplify.git","ssh_url":"git@github.com:stkent/amplify.git","clone_url":"https://github.com/stkent/amplify.git","svn_url":"https://github.com/stkent/amplify","homepage":null,"size":279,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stkent/amplify/pulls/31"},"html":{"href":"https://github.com/stkent/amplify/pull/31"},"issue":{"href":"https://api.github.com/repos/stkent/amplify/issues/31"},"comments":{"href":"https://api.github.com/repos/stkent/amplify/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/stkent/amplify/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/stkent/amplify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stkent/amplify/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/stkent/amplify/statuses/129243e398c010e3ec317bdf6cdbd32a28d8504f"}}}}