GitHub PullRequestReviewCommentEvent at 2014-06-24 23:44:28
Repository: ReadIt
Actor: infm
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/infm/ReadIt/pulls/comments/14162410","id":14162410,"diff_hunk":"@@ -0,0 +1,380 @@\n+package com.infm.readit;\n+\n+import android.app.Activity;\n+import android.app.Fragment;\n+import android.content.Context;\n+import android.content.Intent;\n+import android.content.SharedPreferences;\n+import android.os.Bundle;\n+import android.os.Handler;\n+import android.preference.PreferenceManager;\n+import android.text.Html;\n+import android.text.Spanned;\n+import android.util.Log;\n+import android.view.LayoutInflater;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.widget.ImageButton;\n+import android.widget.ProgressBar;\n+import android.widget.RelativeLayout;\n+import android.widget.TextView;\n+import android.widget.Toast;\n+\n+import com.infm.readit.database.LastReadDBHelper;\n+import com.infm.readit.database.LastReadService;\n+import com.infm.readit.essential.TextParser;\n+import com.infm.readit.utils.OnSwipeTouchListener;\n+\n+import java.util.List;\n+\n+/**\n+ * infm : 16/05/14. Enjoy it ;)\n+ */\n+public class ReaderFragment extends Fragment {\n+    public static final String LOGTAG = \"ReaderFragment\";\n+\n+    private long localTime = 0;\n+    private boolean speedoHided = true;\n+\n+    //initialized in onCreateView()\n+    private RelativeLayout fragmentLayout;\n+    private TextView currentTextView;\n+    private TextView leftTextView;\n+    private TextView rightTextView;\n+    private TextView speedo;\n+    private ProgressBar pBar;\n+    private ImageButton prevButton;\n+\n+    //initialized in onActivityCreated()\n+    private Reader reader;\n+    private SharedPreferences sPref;\n+    private com.infm.readit.readable.Readable readable;\n+    private List<String> wordList;\n+    private List<Integer> emphasisList;\n+    private List<Integer> delayList;\n+    private TextParser parser;\n+\n+    @Override\n+    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n+        Log.d(LOGTAG, \"onCreateView() called\");\n+\n+        fragmentLayout = (RelativeLayout) inflater.inflate(R.layout.fragment_reader, container, false);\n+        findViews(fragmentLayout);\n+\n+        RelativeLayout rl = (RelativeLayout) fragmentLayout.findViewById(R.id.reader_layout);\n+        rl.setOnTouchListener(new OnSwipeTouchListener(getActivity()) {\n+            @Override\n+            public void onSwipeTop() {\n+                changeWPM(50);","path":"ui/src/main/java/com/infm/readit/ReaderFragment.java","position":68,"original_position":68,"commit_id":"77296e273ee1fd7e4295f23787e1dd0e381663d9","original_commit_id":"77296e273ee1fd7e4295f23787e1dd0e381663d9","user":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"body":"yup","created_at":"2014-06-24T23:44:28Z","updated_at":"2014-06-24T23:44:28Z","html_url":"https://github.com/infm/ReadIt/pull/7#discussion_r14162410","pull_request_url":"https://api.github.com/repos/infm/ReadIt/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/comments/14162410"},"html":{"href":"https://github.com/infm/ReadIt/pull/7#discussion_r14162410"},"pull_request":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/infm/ReadIt/pulls/7","id":17563853,"html_url":"https://github.com/infm/ReadIt/pull/7","diff_url":"https://github.com/infm/ReadIt/pull/7.diff","patch_url":"https://github.com/infm/ReadIt/pull/7.patch","issue_url":"https://api.github.com/repos/infm/ReadIt/issues/7","number":7,"state":"open","title":"140620","user":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-06-24T23:17:24Z","updated_at":"2014-06-24T23:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"917854d409f837126e128fa9a2c35b87e18b261d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/infm/ReadIt/pulls/7/commits","review_comments_url":"https://api.github.com/repos/infm/ReadIt/pulls/7/comments","review_comment_url":"https://api.github.com/repos/infm/ReadIt/pulls/comments/{number}","comments_url":"https://api.github.com/repos/infm/ReadIt/issues/7/comments","statuses_url":"https://api.github.com/repos/infm/ReadIt/statuses/77296e273ee1fd7e4295f23787e1dd0e381663d9","head":{"label":"infm:140620","ref":"140620","sha":"77296e273ee1fd7e4295f23787e1dd0e381663d9","user":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"repo":{"id":20988838,"name":"ReadIt","full_name":"infm/ReadIt","owner":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/infm/ReadIt","description":"Spritzer-like app for Android. Free and open-source.","fork":false,"url":"https://api.github.com/repos/infm/ReadIt","forks_url":"https://api.github.com/repos/infm/ReadIt/forks","keys_url":"https://api.github.com/repos/infm/ReadIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infm/ReadIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infm/ReadIt/teams","hooks_url":"https://api.github.com/repos/infm/ReadIt/hooks","issue_events_url":"https://api.github.com/repos/infm/ReadIt/issues/events{/number}","events_url":"https://api.github.com/repos/infm/ReadIt/events","assignees_url":"https://api.github.com/repos/infm/ReadIt/assignees{/user}","branches_url":"https://api.github.com/repos/infm/ReadIt/branches{/branch}","tags_url":"https://api.github.com/repos/infm/ReadIt/tags","blobs_url":"https://api.github.com/repos/infm/ReadIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infm/ReadIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infm/ReadIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/infm/ReadIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infm/ReadIt/statuses/{sha}","languages_url":"https://api.github.com/repos/infm/ReadIt/languages","stargazers_url":"https://api.github.com/repos/infm/ReadIt/stargazers","contributors_url":"https://api.github.com/repos/infm/ReadIt/contributors","subscribers_url":"https://api.github.com/repos/infm/ReadIt/subscribers","subscription_url":"https://api.github.com/repos/infm/ReadIt/subscription","commits_url":"https://api.github.com/repos/infm/ReadIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/infm/ReadIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/infm/ReadIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/infm/ReadIt/issues/comments/{number}","contents_url":"https://api.github.com/repos/infm/ReadIt/contents/{+path}","compare_url":"https://api.github.com/repos/infm/ReadIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infm/ReadIt/merges","archive_url":"https://api.github.com/repos/infm/ReadIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infm/ReadIt/downloads","issues_url":"https://api.github.com/repos/infm/ReadIt/issues{/number}","pulls_url":"https://api.github.com/repos/infm/ReadIt/pulls{/number}","milestones_url":"https://api.github.com/repos/infm/ReadIt/milestones{/number}","notifications_url":"https://api.github.com/repos/infm/ReadIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infm/ReadIt/labels{/name}","releases_url":"https://api.github.com/repos/infm/ReadIt/releases{/id}","created_at":"2014-06-19T05:29:29Z","updated_at":"2014-06-24T23:17:24Z","pushed_at":"2014-06-24T23:11:29Z","git_url":"git://github.com/infm/ReadIt.git","ssh_url":"git@github.com:infm/ReadIt.git","clone_url":"https://github.com/infm/ReadIt.git","svn_url":"https://github.com/infm/ReadIt","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"infm:master","ref":"master","sha":"716bd4c7842b15dca3dfe68f56b574316f20cb48","user":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"repo":{"id":20988838,"name":"ReadIt","full_name":"infm/ReadIt","owner":{"login":"infm","id":6153943,"avatar_url":"https://avatars.githubusercontent.com/u/6153943?","gravatar_id":"4d08f6ed4839f34dfd1125b726ca697d","url":"https://api.github.com/users/infm","html_url":"https://github.com/infm","followers_url":"https://api.github.com/users/infm/followers","following_url":"https://api.github.com/users/infm/following{/other_user}","gists_url":"https://api.github.com/users/infm/gists{/gist_id}","starred_url":"https://api.github.com/users/infm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infm/subscriptions","organizations_url":"https://api.github.com/users/infm/orgs","repos_url":"https://api.github.com/users/infm/repos","events_url":"https://api.github.com/users/infm/events{/privacy}","received_events_url":"https://api.github.com/users/infm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/infm/ReadIt","description":"Spritzer-like app for Android. Free and open-source.","fork":false,"url":"https://api.github.com/repos/infm/ReadIt","forks_url":"https://api.github.com/repos/infm/ReadIt/forks","keys_url":"https://api.github.com/repos/infm/ReadIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infm/ReadIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infm/ReadIt/teams","hooks_url":"https://api.github.com/repos/infm/ReadIt/hooks","issue_events_url":"https://api.github.com/repos/infm/ReadIt/issues/events{/number}","events_url":"https://api.github.com/repos/infm/ReadIt/events","assignees_url":"https://api.github.com/repos/infm/ReadIt/assignees{/user}","branches_url":"https://api.github.com/repos/infm/ReadIt/branches{/branch}","tags_url":"https://api.github.com/repos/infm/ReadIt/tags","blobs_url":"https://api.github.com/repos/infm/ReadIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infm/ReadIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infm/ReadIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/infm/ReadIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infm/ReadIt/statuses/{sha}","languages_url":"https://api.github.com/repos/infm/ReadIt/languages","stargazers_url":"https://api.github.com/repos/infm/ReadIt/stargazers","contributors_url":"https://api.github.com/repos/infm/ReadIt/contributors","subscribers_url":"https://api.github.com/repos/infm/ReadIt/subscribers","subscription_url":"https://api.github.com/repos/infm/ReadIt/subscription","commits_url":"https://api.github.com/repos/infm/ReadIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/infm/ReadIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/infm/ReadIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/infm/ReadIt/issues/comments/{number}","contents_url":"https://api.github.com/repos/infm/ReadIt/contents/{+path}","compare_url":"https://api.github.com/repos/infm/ReadIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infm/ReadIt/merges","archive_url":"https://api.github.com/repos/infm/ReadIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infm/ReadIt/downloads","issues_url":"https://api.github.com/repos/infm/ReadIt/issues{/number}","pulls_url":"https://api.github.com/repos/infm/ReadIt/pulls{/number}","milestones_url":"https://api.github.com/repos/infm/ReadIt/milestones{/number}","notifications_url":"https://api.github.com/repos/infm/ReadIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infm/ReadIt/labels{/name}","releases_url":"https://api.github.com/repos/infm/ReadIt/releases{/id}","created_at":"2014-06-19T05:29:29Z","updated_at":"2014-06-24T23:17:24Z","pushed_at":"2014-06-24T23:11:29Z","git_url":"git://github.com/infm/ReadIt.git","ssh_url":"git@github.com:infm/ReadIt.git","clone_url":"https://github.com/infm/ReadIt.git","svn_url":"https://github.com/infm/ReadIt","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/7"},"html":{"href":"https://github.com/infm/ReadIt/pull/7"},"issue":{"href":"https://api.github.com/repos/infm/ReadIt/issues/7"},"comments":{"href":"https://api.github.com/repos/infm/ReadIt/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/infm/ReadIt/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/infm/ReadIt/statuses/77296e273ee1fd7e4295f23787e1dd0e381663d9"}}}}