{"action":"created","comment":{"url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/comments/67144257","id":67144257,"diff_hunk":"@@ -0,0 +1,52 @@\n+package com.swrve.sdk.conversations.ui;\n+\n+import android.content.Context;\n+import android.graphics.Canvas;\n+import android.graphics.Path;\n+import android.graphics.RectF;\n+import android.util.AttributeSet;\n+import android.widget.LinearLayout;\n+\n+import com.swrve.sdk.conversations.R;\n+\n+public class ConversationRoundedLinearLayout extends LinearLayout {\n+\n+    private float radius;\n+    private final RectF rect = new RectF();\n+    private Path path = new Path();\n+\n+    public ConversationRoundedLinearLayout(Context context) {\n+        super(context);\n+    }\n+\n+    public ConversationRoundedLinearLayout(Context context, AttributeSet attrs) {\n+        super(context, attrs);\n+    }\n+\n+    @Override\n+    protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n+        super.onSizeChanged(w, h, oldw, oldh);\n+        path.reset();\n+        rect.set(0, 0, w, h);\n+        int maxModalWidthPx = getResources().getDimensionPixelSize(R.dimen.swrve__conversation_max_modal_width);","path":"SwrveConversationSDK/src/main/java/com/swrve/sdk/conversations/ui/ConversationRoundedLinearLayout.java","position":31,"original_position":31,"commit_id":"49c9544504c57e2a44b88f25fe8ace2b75eca391","original_commit_id":"49c9544504c57e2a44b88f25fe8ace2b75eca391","user":{"login":"Sergio-Mira","id":2519238,"avatar_url":"https://avatars.githubusercontent.com/u/2519238?v=3","gravatar_id":"","url":"https://api.github.com/users/Sergio-Mira","html_url":"https://github.com/Sergio-Mira","followers_url":"https://api.github.com/users/Sergio-Mira/followers","following_url":"https://api.github.com/users/Sergio-Mira/following{/other_user}","gists_url":"https://api.github.com/users/Sergio-Mira/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergio-Mira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergio-Mira/subscriptions","organizations_url":"https://api.github.com/users/Sergio-Mira/orgs","repos_url":"https://api.github.com/users/Sergio-Mira/repos","events_url":"https://api.github.com/users/Sergio-Mira/events{/privacy}","received_events_url":"https://api.github.com/users/Sergio-Mira/received_events","type":"User","site_admin":false},"body":"~ ~ Could you move this to the constructor? That way we only read it once","created_at":"2016-06-15T11:26:28Z","updated_at":"2016-06-15T11:26:28Z","html_url":"https://github.com/Swrve/swrve-android-sdk/pull/203#discussion_r67144257","pull_request_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/comments/67144257"},"html":{"href":"https://github.com/Swrve/swrve-android-sdk/pull/203#discussion_r67144257"},"pull_request":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203","id":73725570,"html_url":"https://github.com/Swrve/swrve-android-sdk/pull/203","diff_url":"https://github.com/Swrve/swrve-android-sdk/pull/203.diff","patch_url":"https://github.com/Swrve/swrve-android-sdk/pull/203.patch","issue_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/203","number":203,"state":"open","locked":false,"title":"12889_conv_round_corners","user":{"login":"dominicmarmionswrve","id":9349545,"avatar_url":"https://avatars.githubusercontent.com/u/9349545?v=3","gravatar_id":"","url":"https://api.github.com/users/dominicmarmionswrve","html_url":"https://github.com/dominicmarmionswrve","followers_url":"https://api.github.com/users/dominicmarmionswrve/followers","following_url":"https://api.github.com/users/dominicmarmionswrve/following{/other_user}","gists_url":"https://api.github.com/users/dominicmarmionswrve/gists{/gist_id}","starred_url":"https://api.github.com/users/dominicmarmionswrve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominicmarmionswrve/subscriptions","organizations_url":"https://api.github.com/users/dominicmarmionswrve/orgs","repos_url":"https://api.github.com/users/dominicmarmionswrve/repos","events_url":"https://api.github.com/users/dominicmarmionswrve/events{/privacy}","received_events_url":"https://api.github.com/users/dominicmarmionswrve/received_events","type":"User","site_admin":false},"body":"Rounded corners on conversations\r\n\r\nhttps://swrvedev.jira.com/browse/SWRVE-12889\r\n\r\n@Sergio-Mira please","created_at":"2016-06-14T11:49:24Z","updated_at":"2016-06-15T11:26:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d742177f5fe1c022041205d70cf7700dc087d07","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203/commits","review_comments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203/comments","review_comment_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/203/comments","statuses_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/statuses/49c9544504c57e2a44b88f25fe8ace2b75eca391","head":{"label":"Swrve:12889_conv_round_corners","ref":"12889_conv_round_corners","sha":"49c9544504c57e2a44b88f25fe8ace2b75eca391","user":{"login":"Swrve","id":445249,"avatar_url":"https://avatars.githubusercontent.com/u/445249?v=3","gravatar_id":"","url":"https://api.github.com/users/Swrve","html_url":"https://github.com/Swrve","followers_url":"https://api.github.com/users/Swrve/followers","following_url":"https://api.github.com/users/Swrve/following{/other_user}","gists_url":"https://api.github.com/users/Swrve/gists{/gist_id}","starred_url":"https://api.github.com/users/Swrve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swrve/subscriptions","organizations_url":"https://api.github.com/users/Swrve/orgs","repos_url":"https://api.github.com/users/Swrve/repos","events_url":"https://api.github.com/users/Swrve/events{/privacy}","received_events_url":"https://api.github.com/users/Swrve/received_events","type":"Organization","site_admin":false},"repo":{"id":23786714,"name":"swrve-android-sdk","full_name":"Swrve/swrve-android-sdk","owner":{"login":"Swrve","id":445249,"avatar_url":"https://avatars.githubusercontent.com/u/445249?v=3","gravatar_id":"","url":"https://api.github.com/users/Swrve","html_url":"https://github.com/Swrve","followers_url":"https://api.github.com/users/Swrve/followers","following_url":"https://api.github.com/users/Swrve/following{/other_user}","gists_url":"https://api.github.com/users/Swrve/gists{/gist_id}","starred_url":"https://api.github.com/users/Swrve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swrve/subscriptions","organizations_url":"https://api.github.com/users/Swrve/orgs","repos_url":"https://api.github.com/users/Swrve/repos","events_url":"https://api.github.com/users/Swrve/events{/privacy}","received_events_url":"https://api.github.com/users/Swrve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Swrve/swrve-android-sdk","description":"Swrve Android SDK","fork":false,"url":"https://api.github.com/repos/Swrve/swrve-android-sdk","forks_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/forks","keys_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/teams","hooks_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/events","assignees_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/tags","blobs_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/languages","stargazers_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/subscription","commits_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/merges","archive_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/downloads","issues_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/deployments","created_at":"2014-09-08T10:24:14Z","updated_at":"2016-04-16T23:12:54Z","pushed_at":"2016-06-15T08:51:46Z","git_url":"git://github.com/Swrve/swrve-android-sdk.git","ssh_url":"git@github.com:Swrve/swrve-android-sdk.git","clone_url":"https://github.com/Swrve/swrve-android-sdk.git","svn_url":"https://github.com/Swrve/swrve-android-sdk","homepage":"http://www.swrve.com","size":7804,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":16,"forks":9,"open_issues":16,"watchers":3,"default_branch":"release-4_4"}},"base":{"label":"Swrve:12885_conversation_lightbox_colour","ref":"12885_conversation_lightbox_colour","sha":"7fe920a0a58829ea88898fe1b6534cdd64b3210f","user":{"login":"Swrve","id":445249,"avatar_url":"https://avatars.githubusercontent.com/u/445249?v=3","gravatar_id":"","url":"https://api.github.com/users/Swrve","html_url":"https://github.com/Swrve","followers_url":"https://api.github.com/users/Swrve/followers","following_url":"https://api.github.com/users/Swrve/following{/other_user}","gists_url":"https://api.github.com/users/Swrve/gists{/gist_id}","starred_url":"https://api.github.com/users/Swrve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swrve/subscriptions","organizations_url":"https://api.github.com/users/Swrve/orgs","repos_url":"https://api.github.com/users/Swrve/repos","events_url":"https://api.github.com/users/Swrve/events{/privacy}","received_events_url":"https://api.github.com/users/Swrve/received_events","type":"Organization","site_admin":false},"repo":{"id":23786714,"name":"swrve-android-sdk","full_name":"Swrve/swrve-android-sdk","owner":{"login":"Swrve","id":445249,"avatar_url":"https://avatars.githubusercontent.com/u/445249?v=3","gravatar_id":"","url":"https://api.github.com/users/Swrve","html_url":"https://github.com/Swrve","followers_url":"https://api.github.com/users/Swrve/followers","following_url":"https://api.github.com/users/Swrve/following{/other_user}","gists_url":"https://api.github.com/users/Swrve/gists{/gist_id}","starred_url":"https://api.github.com/users/Swrve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swrve/subscriptions","organizations_url":"https://api.github.com/users/Swrve/orgs","repos_url":"https://api.github.com/users/Swrve/repos","events_url":"https://api.github.com/users/Swrve/events{/privacy}","received_events_url":"https://api.github.com/users/Swrve/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Swrve/swrve-android-sdk","description":"Swrve Android SDK","fork":false,"url":"https://api.github.com/repos/Swrve/swrve-android-sdk","forks_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/forks","keys_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/teams","hooks_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/events","assignees_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/tags","blobs_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/languages","stargazers_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/subscription","commits_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/merges","archive_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/downloads","issues_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Swrve/swrve-android-sdk/deployments","created_at":"2014-09-08T10:24:14Z","updated_at":"2016-04-16T23:12:54Z","pushed_at":"2016-06-15T08:51:46Z","git_url":"git://github.com/Swrve/swrve-android-sdk.git","ssh_url":"git@github.com:Swrve/swrve-android-sdk.git","clone_url":"https://github.com/Swrve/swrve-android-sdk.git","svn_url":"https://github.com/Swrve/swrve-android-sdk","homepage":"http://www.swrve.com","size":7804,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":16,"forks":9,"open_issues":16,"watchers":3,"default_branch":"release-4_4"}},"_links":{"self":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203"},"html":{"href":"https://github.com/Swrve/swrve-android-sdk/pull/203"},"issue":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/203"},"comments":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/Swrve/swrve-android-sdk/statuses/49c9544504c57e2a44b88f25fe8ace2b75eca391"}}}}
{"actor":{"display_login":"Sergio-Mira"}}