{"action":"created","comment":{"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/comments/89947869","pull_request_review_id":10468169,"id":89947869,"diff_hunk":"@@ -0,0 +1,57 @@\n+package org.gem.indo.dooit.views.custom;\n+\n+import android.content.Context;\n+import android.support.v4.view.ViewPager;\n+import android.util.AttributeSet;\n+import android.view.MotionEvent;\n+import android.widget.Scroller;\n+\n+import java.lang.reflect.Field;\n+\n+/**\n+ * Created by Rudolph Jacobs on 2016-11-28.\n+ */\n+\n+public class NonSwipableViewPager extends ViewPager {\n+    public NonSwipableViewPager(Context context) {\n+        super(context);\n+        setSmoothScroller();\n+    }\n+\n+    public NonSwipableViewPager(Context context, AttributeSet attrs) {\n+        super(context, attrs);\n+        setSmoothScroller();\n+    }\n+\n+    @Override\n+    public boolean onTouchEvent(MotionEvent ev) {\n+        return false;\n+    }\n+\n+    @Override\n+    public boolean onInterceptTouchEvent(MotionEvent ev) {\n+        return false;\n+    }\n+\n+    private void setSmoothScroller() {\n+        try {\n+            Class<?> viewpager = ViewPager.class;\n+            Field scroller = viewpager.getDeclaredField(\"mScroller\");\n+            scroller.setAccessible(true);\n+            scroller.set(this, new SmoothScroller(getContext()));\n+        } catch (Exception e) {\n+            e.printStackTrace();\n+        }\n+    }\n+\n+    private class SmoothScroller extends Scroller {","path":"app/src/main/java/org/gem/indo/dooit/views/custom/NonSwipableViewPager.java","position":47,"original_position":47,"commit_id":"4b1c622f29f9e023d683797650d66727de08be4c","original_commit_id":"4b1c622f29f9e023d683797650d66727de08be4c","user":{"login":"wvictor-rr","id":22614906,"avatar_url":"https://avatars.githubusercontent.com/u/22614906?v=3","gravatar_id":"","url":"https://api.github.com/users/wvictor-rr","html_url":"https://github.com/wvictor-rr","followers_url":"https://api.github.com/users/wvictor-rr/followers","following_url":"https://api.github.com/users/wvictor-rr/following{/other_user}","gists_url":"https://api.github.com/users/wvictor-rr/gists{/gist_id}","starred_url":"https://api.github.com/users/wvictor-rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvictor-rr/subscriptions","organizations_url":"https://api.github.com/users/wvictor-rr/orgs","repos_url":"https://api.github.com/users/wvictor-rr/repos","events_url":"https://api.github.com/users/wvictor-rr/events{/privacy}","received_events_url":"https://api.github.com/users/wvictor-rr/received_events","type":"User","site_admin":false},"body":"SmoothScroller is to restore scrolling animation.","created_at":"2016-11-29T06:27:12Z","updated_at":"2016-11-29T06:27:44Z","html_url":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146#discussion_r89947869","pull_request_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/comments/89947869"},"html":{"href":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146#discussion_r89947869"},"pull_request":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146","id":95524069,"html_url":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146","diff_url":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146.diff","patch_url":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146.patch","issue_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/146","number":146,"state":"open","locked":false,"title":"Fetch challenges","user":{"login":"rjacobs31","id":19429961,"avatar_url":"https://avatars.githubusercontent.com/u/19429961?v=3","gravatar_id":"","url":"https://api.github.com/users/rjacobs31","html_url":"https://github.com/rjacobs31","followers_url":"https://api.github.com/users/rjacobs31/followers","following_url":"https://api.github.com/users/rjacobs31/following{/other_user}","gists_url":"https://api.github.com/users/rjacobs31/gists{/gist_id}","starred_url":"https://api.github.com/users/rjacobs31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjacobs31/subscriptions","organizations_url":"https://api.github.com/users/rjacobs31/orgs","repos_url":"https://api.github.com/users/rjacobs31/repos","events_url":"https://api.github.com/users/rjacobs31/events{/privacy}","received_events_url":"https://api.github.com/users/rjacobs31/received_events","type":"User","site_admin":false},"body":"- [X] Fetch challenges from proper endpoint.\r\n- [X] Disable swipe paging on quiz challenge.","created_at":"2016-11-28T15:53:12Z","updated_at":"2016-11-29T06:27:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e66a7101afb6fec7b5c49fff2e68b465fa812a0f","assignee":{"login":"wscheffer","id":16539629,"avatar_url":"https://avatars.githubusercontent.com/u/16539629?v=3","gravatar_id":"","url":"https://api.github.com/users/wscheffer","html_url":"https://github.com/wscheffer","followers_url":"https://api.github.com/users/wscheffer/followers","following_url":"https://api.github.com/users/wscheffer/following{/other_user}","gists_url":"https://api.github.com/users/wscheffer/gists{/gist_id}","starred_url":"https://api.github.com/users/wscheffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wscheffer/subscriptions","organizations_url":"https://api.github.com/users/wscheffer/orgs","repos_url":"https://api.github.com/users/wscheffer/repos","events_url":"https://api.github.com/users/wscheffer/events{/privacy}","received_events_url":"https://api.github.com/users/wscheffer/received_events","type":"User","site_admin":false},"assignees":[{"login":"wscheffer","id":16539629,"avatar_url":"https://avatars.githubusercontent.com/u/16539629?v=3","gravatar_id":"","url":"https://api.github.com/users/wscheffer","html_url":"https://github.com/wscheffer","followers_url":"https://api.github.com/users/wscheffer/followers","following_url":"https://api.github.com/users/wscheffer/following{/other_user}","gists_url":"https://api.github.com/users/wscheffer/gists{/gist_id}","starred_url":"https://api.github.com/users/wscheffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wscheffer/subscriptions","organizations_url":"https://api.github.com/users/wscheffer/orgs","repos_url":"https://api.github.com/users/wscheffer/repos","events_url":"https://api.github.com/users/wscheffer/events{/privacy}","received_events_url":"https://api.github.com/users/wscheffer/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146/commits","review_comments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146/comments","review_comment_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/146/comments","statuses_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/statuses/4b1c622f29f9e023d683797650d66727de08be4c","head":{"label":"praekeltfoundation:feature/challenge-fetch","ref":"feature/challenge-fetch","sha":"4b1c622f29f9e023d683797650d66727de08be4c","user":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":69444886,"name":"gem-bbb-indo","full_name":"praekeltfoundation/gem-bbb-indo","owner":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekeltfoundation/gem-bbb-indo","description":null,"fork":false,"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo","forks_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/forks","keys_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/teams","hooks_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/hooks","issue_events_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/events{/number}","events_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/events","assignees_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/assignees{/user}","branches_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/branches{/branch}","tags_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/tags","blobs_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/statuses/{sha}","languages_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/languages","stargazers_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/stargazers","contributors_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/contributors","subscribers_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/subscribers","subscription_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/subscription","commits_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/contents/{+path}","compare_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/merges","archive_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/downloads","issues_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues{/number}","pulls_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls{/number}","milestones_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/milestones{/number}","notifications_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/labels{/name}","releases_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/releases{/id}","deployments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/deployments","created_at":"2016-09-28T08:54:52Z","updated_at":"2016-09-28T10:37:08Z","pushed_at":"2016-11-29T05:22:31Z","git_url":"git://github.com/praekeltfoundation/gem-bbb-indo.git","ssh_url":"git@github.com:praekeltfoundation/gem-bbb-indo.git","clone_url":"https://github.com/praekeltfoundation/gem-bbb-indo.git","svn_url":"https://github.com/praekeltfoundation/gem-bbb-indo","homepage":null,"size":3002,"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":39,"forks":0,"open_issues":39,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekeltfoundation:develop","ref":"develop","sha":"5084242bba972e454016fcbfef1d8d877f80a601","user":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":69444886,"name":"gem-bbb-indo","full_name":"praekeltfoundation/gem-bbb-indo","owner":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekeltfoundation/gem-bbb-indo","description":null,"fork":false,"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo","forks_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/forks","keys_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/teams","hooks_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/hooks","issue_events_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/events{/number}","events_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/events","assignees_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/assignees{/user}","branches_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/branches{/branch}","tags_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/tags","blobs_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/statuses/{sha}","languages_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/languages","stargazers_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/stargazers","contributors_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/contributors","subscribers_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/subscribers","subscription_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/subscription","commits_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/contents/{+path}","compare_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/merges","archive_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/downloads","issues_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues{/number}","pulls_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls{/number}","milestones_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/milestones{/number}","notifications_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/labels{/name}","releases_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/releases{/id}","deployments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/deployments","created_at":"2016-09-28T08:54:52Z","updated_at":"2016-09-28T10:37:08Z","pushed_at":"2016-11-29T05:22:31Z","git_url":"git://github.com/praekeltfoundation/gem-bbb-indo.git","ssh_url":"git@github.com:praekeltfoundation/gem-bbb-indo.git","clone_url":"https://github.com/praekeltfoundation/gem-bbb-indo.git","svn_url":"https://github.com/praekeltfoundation/gem-bbb-indo","homepage":null,"size":3002,"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":39,"forks":0,"open_issues":39,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146"},"html":{"href":"https://github.com/praekeltfoundation/gem-bbb-indo/pull/146"},"issue":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/146"},"comments":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/statuses/4b1c622f29f9e023d683797650d66727de08be4c"}}}}
{"actor":{"display_login":"wvictor-rr"}}