{"action":"created","comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/comments/67550145","id":67550145,"diff_hunk":"@@ -0,0 +1,59 @@\n+package com.mixpanel.android.surveys;\n+\n+import android.annotation.TargetApi;\n+import android.content.Context;\n+import android.os.Build;\n+import android.text.Layout;\n+import android.util.AttributeSet;\n+import android.util.TypedValue;\n+import android.widget.TextView;\n+\n+\n+public class AutoResizeTextView extends TextView {\n+    private int mTextSizeSp = 18;","path":"src/main/java/com/mixpanel/android/surveys/AutoResizeTextView.java","position":13,"original_position":13,"commit_id":"f19995f0a22df00793dde8d01eeedd677726f036","original_commit_id":"f19995f0a22df00793dde8d01eeedd677726f036","user":{"login":"yinfeiru","id":7267883,"avatar_url":"https://avatars.githubusercontent.com/u/7267883?v=3","gravatar_id":"","url":"https://api.github.com/users/yinfeiru","html_url":"https://github.com/yinfeiru","followers_url":"https://api.github.com/users/yinfeiru/followers","following_url":"https://api.github.com/users/yinfeiru/following{/other_user}","gists_url":"https://api.github.com/users/yinfeiru/gists{/gist_id}","starred_url":"https://api.github.com/users/yinfeiru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinfeiru/subscriptions","organizations_url":"https://api.github.com/users/yinfeiru/orgs","repos_url":"https://api.github.com/users/yinfeiru/repos","events_url":"https://api.github.com/users/yinfeiru/events{/privacy}","received_events_url":"https://api.github.com/users/yinfeiru/received_events","type":"User","site_admin":false},"body":"can we make these two variables `static final`? I don't think we ever change it.","created_at":"2016-06-17T17:53:55Z","updated_at":"2016-06-17T17:53:55Z","html_url":"https://github.com/mixpanel/mixpanel-android/pull/370#discussion_r67550145","pull_request_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370","_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/comments/67550145"},"html":{"href":"https://github.com/mixpanel/mixpanel-android/pull/370#discussion_r67550145"},"pull_request":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370"}}},"pull_request":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370","id":73981087,"html_url":"https://github.com/mixpanel/mixpanel-android/pull/370","diff_url":"https://github.com/mixpanel/mixpanel-android/pull/370.diff","patch_url":"https://github.com/mixpanel/mixpanel-android/pull/370.patch","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/370","number":370,"state":"open","locked":false,"title":"Auto resize text if survey prompt is too long","user":{"login":"patedit","id":1812240,"avatar_url":"https://avatars.githubusercontent.com/u/1812240?v=3","gravatar_id":"","url":"https://api.github.com/users/patedit","html_url":"https://github.com/patedit","followers_url":"https://api.github.com/users/patedit/followers","following_url":"https://api.github.com/users/patedit/following{/other_user}","gists_url":"https://api.github.com/users/patedit/gists{/gist_id}","starred_url":"https://api.github.com/users/patedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patedit/subscriptions","organizations_url":"https://api.github.com/users/patedit/orgs","repos_url":"https://api.github.com/users/patedit/repos","events_url":"https://api.github.com/users/patedit/events{/privacy}","received_events_url":"https://api.github.com/users/patedit/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-15T20:46:49Z","updated_at":"2016-06-17T17:53:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2b76252ff8a39a8d1a0fa4ae53e572f5f6f232d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370/commits","review_comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370/comments","review_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/370/comments","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-android/statuses/f19995f0a22df00793dde8d01eeedd677726f036","head":{"label":"mixpanel:fix-survey-textview-cutoff","ref":"fix-survey-textview-cutoff","sha":"f19995f0a22df00793dde8d01eeedd677726f036","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":818509,"name":"mixpanel-android","full_name":"mixpanel/mixpanel-android","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-android","description":"An Android library for Mixpanel Analytics","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-android","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-android/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-android/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-android/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-android/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-android/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-android/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-android/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-android/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-android/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-android/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-android/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-android/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-android/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-android/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-android/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-android/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/deployments","created_at":"2010-08-05T04:51:12Z","updated_at":"2016-06-06T15:16:28Z","pushed_at":"2016-06-15T20:46:49Z","git_url":"git://github.com/mixpanel/mixpanel-android.git","ssh_url":"git@github.com:mixpanel/mixpanel-android.git","clone_url":"https://github.com/mixpanel/mixpanel-android.git","svn_url":"https://github.com/mixpanel/mixpanel-android","homepage":"http://mixpanel.com/android-analytics/","size":29825,"stargazers_count":238,"watchers_count":238,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":159,"mirror_url":null,"open_issues_count":72,"forks":159,"open_issues":72,"watchers":238,"default_branch":"master"}},"base":{"label":"mixpanel:master","ref":"master","sha":"df5f06b29788ff43be0059b2d87d3131fe3ec0b1","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":818509,"name":"mixpanel-android","full_name":"mixpanel/mixpanel-android","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-android","description":"An Android library for Mixpanel Analytics","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-android","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-android/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-android/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-android/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-android/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-android/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-android/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-android/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-android/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-android/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-android/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-android/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-android/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-android/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-android/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-android/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-android/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/deployments","created_at":"2010-08-05T04:51:12Z","updated_at":"2016-06-06T15:16:28Z","pushed_at":"2016-06-15T20:46:49Z","git_url":"git://github.com/mixpanel/mixpanel-android.git","ssh_url":"git@github.com:mixpanel/mixpanel-android.git","clone_url":"https://github.com/mixpanel/mixpanel-android.git","svn_url":"https://github.com/mixpanel/mixpanel-android","homepage":"http://mixpanel.com/android-analytics/","size":29825,"stargazers_count":238,"watchers_count":238,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":159,"mirror_url":null,"open_issues_count":72,"forks":159,"open_issues":72,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370"},"html":{"href":"https://github.com/mixpanel/mixpanel-android/pull/370"},"issue":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/370"},"comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/mixpanel/mixpanel-android/statuses/f19995f0a22df00793dde8d01eeedd677726f036"}}}}
{"actor":{"display_login":"yinfeiru"}}