{"action":"created","comment":{"url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments/125729782","pull_request_review_id":48147846,"id":125729782,"diff_hunk":"@@ -1,47 +1,33 @@\n-package com.layer.ui;\n+package com.layer.ui.avatar;\n \n import android.content.Context;\n+import android.content.res.TypedArray;\n import android.graphics.Bitmap;\n import android.graphics.Canvas;\n import android.graphics.Color;\n import android.graphics.Paint;\n import android.graphics.Rect;\n import android.graphics.RectF;\n-import android.graphics.drawable.Drawable;\n-import android.text.TextUtils;\n import android.util.AttributeSet;\n import android.view.View;\n import android.view.ViewGroup;\n \n-import com.layer.ui.util.AvatarStyle;\n-import com.layer.ui.util.Util;\n-import com.layer.ui.util.picasso.transformations.CircleTransform;\n import com.layer.sdk.messaging.Identity;\n import com.layer.sdk.messaging.Presence;\n-import com.squareup.picasso.Picasso;\n-import com.squareup.picasso.Target;\n-\n-import java.util.ArrayList;\n-import java.util.Arrays;\n-import java.util.HashMap;\n-import java.util.LinkedHashSet;\n-import java.util.LinkedList;\n+import com.layer.ui.R;\n+import com.layer.ui.util.AvatarStyle;\n+import com.layer.ui.util.imagecache.BitmapWrapper;\n+\n import java.util.List;\n import java.util.Map;\n-import java.util.Queue;\n import java.util.Set;\n-import java.util.concurrent.atomic.AtomicLong;\n \n /**\n  * AtlasAvatar can be used to show information about one user, or as a cluster of multiple users.\n- *\n+ * <p>\n  * AtlasAvatar uses Picasso to render the avatar image. So, you need to init\n  */\n-public class Avatar extends View {\n-    public static final String TAG = Avatar.class.getSimpleName();\n-\n-    private final static CircleTransform SINGLE_TRANSFORM = new CircleTransform(TAG + \".single\");\n-    private final static CircleTransform MULTI_TRANSFORM = new CircleTransform(TAG + \".multi\");\n+public class AvatarView extends View implements Avatar.View{","path":"layer-atlas/src/main/java/com/layer/ui/avatar/AvatarView.java","position":52,"original_position":52,"commit_id":"87b7fe1e019f7710d57123fec5d21c626defd0d6","original_commit_id":"87b7fe1e019f7710d57123fec5d21c626defd0d6","user":{"login":"sriamar","id":3992829,"avatar_url":"https://avatars0.githubusercontent.com/u/3992829?v=3","gravatar_id":"","url":"https://api.github.com/users/sriamar","html_url":"https://github.com/sriamar","followers_url":"https://api.github.com/users/sriamar/followers","following_url":"https://api.github.com/users/sriamar/following{/other_user}","gists_url":"https://api.github.com/users/sriamar/gists{/gist_id}","starred_url":"https://api.github.com/users/sriamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sriamar/subscriptions","organizations_url":"https://api.github.com/users/sriamar/orgs","repos_url":"https://api.github.com/users/sriamar/repos","events_url":"https://api.github.com/users/sriamar/events{/privacy}","received_events_url":"https://api.github.com/users/sriamar/received_events","type":"User","site_admin":false},"body":"space before `{`","created_at":"2017-07-05T18:59:56Z","updated_at":"2017-07-05T18:59:56Z","html_url":"https://github.com/layerhq/Atlas-Android/pull/218#discussion_r125729782","pull_request_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218","_links":{"self":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments/125729782"},"html":{"href":"https://github.com/layerhq/Atlas-Android/pull/218#discussion_r125729782"},"pull_request":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218"}}},"pull_request":{"url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218","id":128001980,"html_url":"https://github.com/layerhq/Atlas-Android/pull/218","diff_url":"https://github.com/layerhq/Atlas-Android/pull/218.diff","patch_url":"https://github.com/layerhq/Atlas-Android/pull/218.patch","issue_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218","number":218,"state":"open","locked":false,"title":"Feature/and 986/update avatar to layer ui","user":{"login":"andela-wakinsanmi","id":16117695,"avatar_url":"https://avatars1.githubusercontent.com/u/16117695?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-wakinsanmi","html_url":"https://github.com/andela-wakinsanmi","followers_url":"https://api.github.com/users/andela-wakinsanmi/followers","following_url":"https://api.github.com/users/andela-wakinsanmi/following{/other_user}","gists_url":"https://api.github.com/users/andela-wakinsanmi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-wakinsanmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-wakinsanmi/subscriptions","organizations_url":"https://api.github.com/users/andela-wakinsanmi/orgs","repos_url":"https://api.github.com/users/andela-wakinsanmi/repos","events_url":"https://api.github.com/users/andela-wakinsanmi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-wakinsanmi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-28T19:33:11Z","updated_at":"2017-07-05T18:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfeab42557952fe7ba0c51a694b61dc9790a2128","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/commits","review_comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/comments","review_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218/comments","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/87b7fe1e019f7710d57123fec5d21c626defd0d6","head":{"label":"layerhq:feature/AND-986/Update-avatar-to-layer-ui","ref":"feature/AND-986/Update-avatar-to-layer-ui","sha":"87b7fe1e019f7710d57123fec5d21c626defd0d6","user":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars1.githubusercontent.com/u/5497685?v=3","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"repo":{"id":36491008,"name":"Atlas-Android","full_name":"layerhq/Atlas-Android","owner":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars1.githubusercontent.com/u/5497685?v=3","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/layerhq/Atlas-Android","description":"Library of native Android chat and messaging UI components, built to work with Layer","fork":false,"url":"https://api.github.com/repos/layerhq/Atlas-Android","forks_url":"https://api.github.com/repos/layerhq/Atlas-Android/forks","keys_url":"https://api.github.com/repos/layerhq/Atlas-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/layerhq/Atlas-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/layerhq/Atlas-Android/teams","hooks_url":"https://api.github.com/repos/layerhq/Atlas-Android/hooks","issue_events_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/events{/number}","events_url":"https://api.github.com/repos/layerhq/Atlas-Android/events","assignees_url":"https://api.github.com/repos/layerhq/Atlas-Android/assignees{/user}","branches_url":"https://api.github.com/repos/layerhq/Atlas-Android/branches{/branch}","tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/tags","blobs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/layerhq/Atlas-Android/languages","stargazers_url":"https://api.github.com/repos/layerhq/Atlas-Android/stargazers","contributors_url":"https://api.github.com/repos/layerhq/Atlas-Android/contributors","subscribers_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscribers","subscription_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscription","commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/layerhq/Atlas-Android/contents/{+path}","compare_url":"https://api.github.com/repos/layerhq/Atlas-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/layerhq/Atlas-Android/merges","archive_url":"https://api.github.com/repos/layerhq/Atlas-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/layerhq/Atlas-Android/downloads","issues_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues{/number}","pulls_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/layerhq/Atlas-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/layerhq/Atlas-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/layerhq/Atlas-Android/labels{/name}","releases_url":"https://api.github.com/repos/layerhq/Atlas-Android/releases{/id}","deployments_url":"https://api.github.com/repos/layerhq/Atlas-Android/deployments","created_at":"2015-05-29T08:21:24Z","updated_at":"2017-07-03T15:06:01Z","pushed_at":"2017-07-05T16:23:08Z","git_url":"git://github.com/layerhq/Atlas-Android.git","ssh_url":"git@github.com:layerhq/Atlas-Android.git","clone_url":"https://github.com/layerhq/Atlas-Android.git","svn_url":"https://github.com/layerhq/Atlas-Android","homepage":"https://layer.com/","size":24508,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":154,"mirror_url":null,"open_issues_count":7,"forks":154,"open_issues":7,"watchers":296,"default_branch":"master"}},"base":{"label":"layerhq:layer_ui","ref":"layer_ui","sha":"faf572ae40efa8df343ee6ad33bec3e17034aa33","user":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars1.githubusercontent.com/u/5497685?v=3","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"repo":{"id":36491008,"name":"Atlas-Android","full_name":"layerhq/Atlas-Android","owner":{"login":"layerhq","id":5497685,"avatar_url":"https://avatars1.githubusercontent.com/u/5497685?v=3","gravatar_id":"","url":"https://api.github.com/users/layerhq","html_url":"https://github.com/layerhq","followers_url":"https://api.github.com/users/layerhq/followers","following_url":"https://api.github.com/users/layerhq/following{/other_user}","gists_url":"https://api.github.com/users/layerhq/gists{/gist_id}","starred_url":"https://api.github.com/users/layerhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/layerhq/subscriptions","organizations_url":"https://api.github.com/users/layerhq/orgs","repos_url":"https://api.github.com/users/layerhq/repos","events_url":"https://api.github.com/users/layerhq/events{/privacy}","received_events_url":"https://api.github.com/users/layerhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/layerhq/Atlas-Android","description":"Library of native Android chat and messaging UI components, built to work with Layer","fork":false,"url":"https://api.github.com/repos/layerhq/Atlas-Android","forks_url":"https://api.github.com/repos/layerhq/Atlas-Android/forks","keys_url":"https://api.github.com/repos/layerhq/Atlas-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/layerhq/Atlas-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/layerhq/Atlas-Android/teams","hooks_url":"https://api.github.com/repos/layerhq/Atlas-Android/hooks","issue_events_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/events{/number}","events_url":"https://api.github.com/repos/layerhq/Atlas-Android/events","assignees_url":"https://api.github.com/repos/layerhq/Atlas-Android/assignees{/user}","branches_url":"https://api.github.com/repos/layerhq/Atlas-Android/branches{/branch}","tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/tags","blobs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/layerhq/Atlas-Android/languages","stargazers_url":"https://api.github.com/repos/layerhq/Atlas-Android/stargazers","contributors_url":"https://api.github.com/repos/layerhq/Atlas-Android/contributors","subscribers_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscribers","subscription_url":"https://api.github.com/repos/layerhq/Atlas-Android/subscription","commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/layerhq/Atlas-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/layerhq/Atlas-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/layerhq/Atlas-Android/contents/{+path}","compare_url":"https://api.github.com/repos/layerhq/Atlas-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/layerhq/Atlas-Android/merges","archive_url":"https://api.github.com/repos/layerhq/Atlas-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/layerhq/Atlas-Android/downloads","issues_url":"https://api.github.com/repos/layerhq/Atlas-Android/issues{/number}","pulls_url":"https://api.github.com/repos/layerhq/Atlas-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/layerhq/Atlas-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/layerhq/Atlas-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/layerhq/Atlas-Android/labels{/name}","releases_url":"https://api.github.com/repos/layerhq/Atlas-Android/releases{/id}","deployments_url":"https://api.github.com/repos/layerhq/Atlas-Android/deployments","created_at":"2015-05-29T08:21:24Z","updated_at":"2017-07-03T15:06:01Z","pushed_at":"2017-07-05T16:23:08Z","git_url":"git://github.com/layerhq/Atlas-Android.git","ssh_url":"git@github.com:layerhq/Atlas-Android.git","clone_url":"https://github.com/layerhq/Atlas-Android.git","svn_url":"https://github.com/layerhq/Atlas-Android","homepage":"https://layer.com/","size":24508,"stargazers_count":296,"watchers_count":296,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":154,"mirror_url":null,"open_issues_count":7,"forks":154,"open_issues":7,"watchers":296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218"},"html":{"href":"https://github.com/layerhq/Atlas-Android/pull/218"},"issue":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218"},"comments":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/layerhq/Atlas-Android/statuses/87b7fe1e019f7710d57123fec5d21c626defd0d6"}}}}
{"actor":{"display_login":"sriamar"}}