{"action":"created","comment":{"url":"https://api.github.com/repos/andreycooper/preferences/pulls/comments/29138928","id":29138928,"diff_hunk":"@@ -0,0 +1,76 @@\n+package com.weezlabs.preferences;\n+\n+\n+import android.content.Context;\n+import android.preference.Preference;\n+import android.util.AttributeSet;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.widget.SeekBar;\n+\n+public class SeekBarPreference extends Preference {\n+    public static final int SEEK_MAX_VALUE = 3000;\n+\n+    public SeekBarPreference(Context context) {\n+        super(context);\n+        setWidgetLayoutResource(R.layout.seekbar_preference);\n+    }\n+\n+    public SeekBarPreference(Context context, AttributeSet attrs) {\n+        super(context, attrs);\n+        setWidgetLayoutResource(R.layout.seekbar_preference);\n+    }\n+\n+    public SeekBarPreference(Context context, AttributeSet attrs, int defStyleAttr) {\n+        super(context, attrs, defStyleAttr);\n+        setWidgetLayoutResource(R.layout.seekbar_preference);\n+    }\n+\n+    @Override\n+    protected View onCreateView(ViewGroup parent) {\n+        return super.onCreateView(parent);\n+    }\n+\n+    @Override\n+    protected void onBindView(View view) {\n+        super.onBindView(view);\n+        SeekBar seekBar = (SeekBar) view.findViewById(R.id.seekbar);\n+        setUpSeekBar(seekBar);\n+    }\n+\n+    private void setUpSeekBar(SeekBar seekBar) {\n+        seekBar.setMax(SEEK_MAX_VALUE);\n+\n+        // need to use in anonymous Listener\n+        final int[] progressValue = new int[1];","path":"app/src/main/java/com/weezlabs/preferences/SeekBarPreference.java","position":45,"original_position":45,"commit_id":"017565f9f35396f55971d107c84872e6b5ba2912","original_commit_id":"017565f9f35396f55971d107c84872e6b5ba2912","user":{"login":"vfedorenko","id":1837446,"avatar_url":"https://avatars.githubusercontent.com/u/1837446?v=3","gravatar_id":"","url":"https://api.github.com/users/vfedorenko","html_url":"https://github.com/vfedorenko","followers_url":"https://api.github.com/users/vfedorenko/followers","following_url":"https://api.github.com/users/vfedorenko/following{/other_user}","gists_url":"https://api.github.com/users/vfedorenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vfedorenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfedorenko/subscriptions","organizations_url":"https://api.github.com/users/vfedorenko/orgs","repos_url":"https://api.github.com/users/vfedorenko/repos","events_url":"https://api.github.com/users/vfedorenko/events{/privacy}","received_events_url":"https://api.github.com/users/vfedorenko/received_events","type":"User","site_admin":false},"body":"You can use an int variable instead of using an array with one element","created_at":"2015-04-27T11:37:31Z","updated_at":"2015-04-27T11:37:31Z","html_url":"https://github.com/andreycooper/preferences/pull/1#discussion_r29138928","pull_request_url":"https://api.github.com/repos/andreycooper/preferences/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/comments/29138928"},"html":{"href":"https://github.com/andreycooper/preferences/pull/1#discussion_r29138928"},"pull_request":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andreycooper/preferences/pulls/1","id":34102464,"html_url":"https://github.com/andreycooper/preferences/pull/1","diff_url":"https://github.com/andreycooper/preferences/pull/1.diff","patch_url":"https://github.com/andreycooper/preferences/pull/1.patch","issue_url":"https://api.github.com/repos/andreycooper/preferences/issues/1","number":1,"state":"open","locked":false,"title":"[RM_19419] preferences","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"body":"http://redmine.weezlabs.com:8100/redmine/issues/19419","created_at":"2015-04-25T07:39:33Z","updated_at":"2015-04-27T11:37:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6858ed765e4ee14f99425a9067d77f748275729","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreycooper/preferences/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andreycooper/preferences/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andreycooper/preferences/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andreycooper/preferences/issues/1/comments","statuses_url":"https://api.github.com/repos/andreycooper/preferences/statuses/017565f9f35396f55971d107c84872e6b5ba2912","head":{"label":"andreycooper:RM_19419_Preferences","ref":"RM_19419_Preferences","sha":"017565f9f35396f55971d107c84872e6b5ba2912","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"repo":{"id":34511467,"name":"preferences","full_name":"andreycooper/preferences","owner":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreycooper/preferences","description":"","fork":false,"url":"https://api.github.com/repos/andreycooper/preferences","forks_url":"https://api.github.com/repos/andreycooper/preferences/forks","keys_url":"https://api.github.com/repos/andreycooper/preferences/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreycooper/preferences/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreycooper/preferences/teams","hooks_url":"https://api.github.com/repos/andreycooper/preferences/hooks","issue_events_url":"https://api.github.com/repos/andreycooper/preferences/issues/events{/number}","events_url":"https://api.github.com/repos/andreycooper/preferences/events","assignees_url":"https://api.github.com/repos/andreycooper/preferences/assignees{/user}","branches_url":"https://api.github.com/repos/andreycooper/preferences/branches{/branch}","tags_url":"https://api.github.com/repos/andreycooper/preferences/tags","blobs_url":"https://api.github.com/repos/andreycooper/preferences/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreycooper/preferences/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreycooper/preferences/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreycooper/preferences/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreycooper/preferences/statuses/{sha}","languages_url":"https://api.github.com/repos/andreycooper/preferences/languages","stargazers_url":"https://api.github.com/repos/andreycooper/preferences/stargazers","contributors_url":"https://api.github.com/repos/andreycooper/preferences/contributors","subscribers_url":"https://api.github.com/repos/andreycooper/preferences/subscribers","subscription_url":"https://api.github.com/repos/andreycooper/preferences/subscription","commits_url":"https://api.github.com/repos/andreycooper/preferences/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreycooper/preferences/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreycooper/preferences/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreycooper/preferences/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreycooper/preferences/contents/{+path}","compare_url":"https://api.github.com/repos/andreycooper/preferences/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreycooper/preferences/merges","archive_url":"https://api.github.com/repos/andreycooper/preferences/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreycooper/preferences/downloads","issues_url":"https://api.github.com/repos/andreycooper/preferences/issues{/number}","pulls_url":"https://api.github.com/repos/andreycooper/preferences/pulls{/number}","milestones_url":"https://api.github.com/repos/andreycooper/preferences/milestones{/number}","notifications_url":"https://api.github.com/repos/andreycooper/preferences/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreycooper/preferences/labels{/name}","releases_url":"https://api.github.com/repos/andreycooper/preferences/releases{/id}","created_at":"2015-04-24T10:01:34Z","updated_at":"2015-04-24T10:02:08Z","pushed_at":"2015-04-25T07:39:33Z","git_url":"git://github.com/andreycooper/preferences.git","ssh_url":"git@github.com:andreycooper/preferences.git","clone_url":"https://github.com/andreycooper/preferences.git","svn_url":"https://github.com/andreycooper/preferences","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andreycooper:master","ref":"master","sha":"236458ff3a32b030751591eab4a65a5344c580ea","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"repo":{"id":34511467,"name":"preferences","full_name":"andreycooper/preferences","owner":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreycooper/preferences","description":"","fork":false,"url":"https://api.github.com/repos/andreycooper/preferences","forks_url":"https://api.github.com/repos/andreycooper/preferences/forks","keys_url":"https://api.github.com/repos/andreycooper/preferences/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreycooper/preferences/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreycooper/preferences/teams","hooks_url":"https://api.github.com/repos/andreycooper/preferences/hooks","issue_events_url":"https://api.github.com/repos/andreycooper/preferences/issues/events{/number}","events_url":"https://api.github.com/repos/andreycooper/preferences/events","assignees_url":"https://api.github.com/repos/andreycooper/preferences/assignees{/user}","branches_url":"https://api.github.com/repos/andreycooper/preferences/branches{/branch}","tags_url":"https://api.github.com/repos/andreycooper/preferences/tags","blobs_url":"https://api.github.com/repos/andreycooper/preferences/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreycooper/preferences/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreycooper/preferences/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreycooper/preferences/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreycooper/preferences/statuses/{sha}","languages_url":"https://api.github.com/repos/andreycooper/preferences/languages","stargazers_url":"https://api.github.com/repos/andreycooper/preferences/stargazers","contributors_url":"https://api.github.com/repos/andreycooper/preferences/contributors","subscribers_url":"https://api.github.com/repos/andreycooper/preferences/subscribers","subscription_url":"https://api.github.com/repos/andreycooper/preferences/subscription","commits_url":"https://api.github.com/repos/andreycooper/preferences/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreycooper/preferences/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreycooper/preferences/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreycooper/preferences/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreycooper/preferences/contents/{+path}","compare_url":"https://api.github.com/repos/andreycooper/preferences/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreycooper/preferences/merges","archive_url":"https://api.github.com/repos/andreycooper/preferences/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreycooper/preferences/downloads","issues_url":"https://api.github.com/repos/andreycooper/preferences/issues{/number}","pulls_url":"https://api.github.com/repos/andreycooper/preferences/pulls{/number}","milestones_url":"https://api.github.com/repos/andreycooper/preferences/milestones{/number}","notifications_url":"https://api.github.com/repos/andreycooper/preferences/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreycooper/preferences/labels{/name}","releases_url":"https://api.github.com/repos/andreycooper/preferences/releases{/id}","created_at":"2015-04-24T10:01:34Z","updated_at":"2015-04-24T10:02:08Z","pushed_at":"2015-04-25T07:39:33Z","git_url":"git://github.com/andreycooper/preferences.git","ssh_url":"git@github.com:andreycooper/preferences.git","clone_url":"https://github.com/andreycooper/preferences.git","svn_url":"https://github.com/andreycooper/preferences","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/1"},"html":{"href":"https://github.com/andreycooper/preferences/pull/1"},"issue":{"href":"https://api.github.com/repos/andreycooper/preferences/issues/1"},"comments":{"href":"https://api.github.com/repos/andreycooper/preferences/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andreycooper/preferences/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andreycooper/preferences/statuses/017565f9f35396f55971d107c84872e6b5ba2912"}}}}