{"action":"created","comment":{"url":"https://api.github.com/repos/connectbot/connectbot/pulls/comments/41324312","id":41324312,"diff_hunk":"@@ -0,0 +1,54 @@\n+/*\n+ * ConnectBot: simple, powerful, open-source SSH client for Android\n+ * Copyright 2015 Kenny Root, Jeffrey Sharkey\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.connectbot.util;\n+\n+import android.content.Context;\n+import android.support.v4.view.ViewPager;\n+import android.util.AttributeSet;\n+import android.view.MotionEvent;\n+\n+public class TerminalViewPager extends ViewPager {","path":"app/src/main/java/org/connectbot/util/TerminalViewPager.java","position":null,"original_position":25,"commit_id":"37712ca0a18a36911a5995839836d68b55261573","original_commit_id":"ade6a044ab0f258452799397954019f57ff9e451","user":{"login":"rhansby","id":1788374,"avatar_url":"https://avatars.githubusercontent.com/u/1788374?v=3","gravatar_id":"","url":"https://api.github.com/users/rhansby","html_url":"https://github.com/rhansby","followers_url":"https://api.github.com/users/rhansby/followers","following_url":"https://api.github.com/users/rhansby/following{/other_user}","gists_url":"https://api.github.com/users/rhansby/gists{/gist_id}","starred_url":"https://api.github.com/users/rhansby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhansby/subscriptions","organizations_url":"https://api.github.com/users/rhansby/orgs","repos_url":"https://api.github.com/users/rhansby/repos","events_url":"https://api.github.com/users/rhansby/events{/privacy}","received_events_url":"https://api.github.com/users/rhansby/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-10-06T21:22:43Z","updated_at":"2015-10-06T21:22:43Z","html_url":"https://github.com/connectbot/connectbot/pull/277#discussion_r41324312","pull_request_url":"https://api.github.com/repos/connectbot/connectbot/pulls/277","_links":{"self":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/comments/41324312"},"html":{"href":"https://github.com/connectbot/connectbot/pull/277#discussion_r41324312"},"pull_request":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/277"}}},"pull_request":{"url":"https://api.github.com/repos/connectbot/connectbot/pulls/277","id":46939669,"html_url":"https://github.com/connectbot/connectbot/pull/277","diff_url":"https://github.com/connectbot/connectbot/pull/277.diff","patch_url":"https://github.com/connectbot/connectbot/pull/277.patch","issue_url":"https://api.github.com/repos/connectbot/connectbot/issues/277","number":277,"state":"open","locked":false,"title":"TextView in terminal for better text selection","user":{"login":"rhansby","id":1788374,"avatar_url":"https://avatars.githubusercontent.com/u/1788374?v=3","gravatar_id":"","url":"https://api.github.com/users/rhansby","html_url":"https://github.com/rhansby","followers_url":"https://api.github.com/users/rhansby/followers","following_url":"https://api.github.com/users/rhansby/following{/other_user}","gists_url":"https://api.github.com/users/rhansby/gists{/gist_id}","starred_url":"https://api.github.com/users/rhansby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhansby/subscriptions","organizations_url":"https://api.github.com/users/rhansby/orgs","repos_url":"https://api.github.com/users/rhansby/repos","events_url":"https://api.github.com/users/rhansby/events{/privacy}","received_events_url":"https://api.github.com/users/rhansby/received_events","type":"User","site_admin":false},"body":"Fixes #232, #265, and possibly other issues.\r\n\r\nAccidentally fixes #270. Should it? \r\n\r\nExtends off of #129. Big thanks to @alescdb for the initial work! (I recommend that #129 be closed now)\r\n\r\nLong pressing on text now allows users to naturally select text as they would elsewhere in the OS. Font changes are also handled properly (see GIF).\r\n\r\nPre-Honeycomb devices will use the old selection method, as text selection APIs are not available for them.\r\n\r\nGIF attached:\r\n\r\n![output-opt](https://cloud.githubusercontent.com/assets/1788374/10318099/b2edfb76-6c1c-11e5-83cd-e18075b8ceaa.gif)","created_at":"2015-10-06T18:29:29Z","updated_at":"2015-10-06T21:22:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"864e0038a364451cc2d528d33a04a0b2c5b2b09f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/connectbot/connectbot/pulls/277/commits","review_comments_url":"https://api.github.com/repos/connectbot/connectbot/pulls/277/comments","review_comment_url":"https://api.github.com/repos/connectbot/connectbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/connectbot/connectbot/issues/277/comments","statuses_url":"https://api.github.com/repos/connectbot/connectbot/statuses/37712ca0a18a36911a5995839836d68b55261573","head":{"label":"rhansby:textview-terminal-2","ref":"textview-terminal-2","sha":"37712ca0a18a36911a5995839836d68b55261573","user":{"login":"rhansby","id":1788374,"avatar_url":"https://avatars.githubusercontent.com/u/1788374?v=3","gravatar_id":"","url":"https://api.github.com/users/rhansby","html_url":"https://github.com/rhansby","followers_url":"https://api.github.com/users/rhansby/followers","following_url":"https://api.github.com/users/rhansby/following{/other_user}","gists_url":"https://api.github.com/users/rhansby/gists{/gist_id}","starred_url":"https://api.github.com/users/rhansby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhansby/subscriptions","organizations_url":"https://api.github.com/users/rhansby/orgs","repos_url":"https://api.github.com/users/rhansby/repos","events_url":"https://api.github.com/users/rhansby/events{/privacy}","received_events_url":"https://api.github.com/users/rhansby/received_events","type":"User","site_admin":false},"repo":{"id":42476040,"name":"connectbot","full_name":"rhansby/connectbot","owner":{"login":"rhansby","id":1788374,"avatar_url":"https://avatars.githubusercontent.com/u/1788374?v=3","gravatar_id":"","url":"https://api.github.com/users/rhansby","html_url":"https://github.com/rhansby","followers_url":"https://api.github.com/users/rhansby/followers","following_url":"https://api.github.com/users/rhansby/following{/other_user}","gists_url":"https://api.github.com/users/rhansby/gists{/gist_id}","starred_url":"https://api.github.com/users/rhansby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhansby/subscriptions","organizations_url":"https://api.github.com/users/rhansby/orgs","repos_url":"https://api.github.com/users/rhansby/repos","events_url":"https://api.github.com/users/rhansby/events{/privacy}","received_events_url":"https://api.github.com/users/rhansby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhansby/connectbot","description":"ConnectBot is the first SSH client for Android.","fork":true,"url":"https://api.github.com/repos/rhansby/connectbot","forks_url":"https://api.github.com/repos/rhansby/connectbot/forks","keys_url":"https://api.github.com/repos/rhansby/connectbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhansby/connectbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhansby/connectbot/teams","hooks_url":"https://api.github.com/repos/rhansby/connectbot/hooks","issue_events_url":"https://api.github.com/repos/rhansby/connectbot/issues/events{/number}","events_url":"https://api.github.com/repos/rhansby/connectbot/events","assignees_url":"https://api.github.com/repos/rhansby/connectbot/assignees{/user}","branches_url":"https://api.github.com/repos/rhansby/connectbot/branches{/branch}","tags_url":"https://api.github.com/repos/rhansby/connectbot/tags","blobs_url":"https://api.github.com/repos/rhansby/connectbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhansby/connectbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhansby/connectbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhansby/connectbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhansby/connectbot/statuses/{sha}","languages_url":"https://api.github.com/repos/rhansby/connectbot/languages","stargazers_url":"https://api.github.com/repos/rhansby/connectbot/stargazers","contributors_url":"https://api.github.com/repos/rhansby/connectbot/contributors","subscribers_url":"https://api.github.com/repos/rhansby/connectbot/subscribers","subscription_url":"https://api.github.com/repos/rhansby/connectbot/subscription","commits_url":"https://api.github.com/repos/rhansby/connectbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhansby/connectbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhansby/connectbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhansby/connectbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhansby/connectbot/contents/{+path}","compare_url":"https://api.github.com/repos/rhansby/connectbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhansby/connectbot/merges","archive_url":"https://api.github.com/repos/rhansby/connectbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhansby/connectbot/downloads","issues_url":"https://api.github.com/repos/rhansby/connectbot/issues{/number}","pulls_url":"https://api.github.com/repos/rhansby/connectbot/pulls{/number}","milestones_url":"https://api.github.com/repos/rhansby/connectbot/milestones{/number}","notifications_url":"https://api.github.com/repos/rhansby/connectbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhansby/connectbot/labels{/name}","releases_url":"https://api.github.com/repos/rhansby/connectbot/releases{/id}","created_at":"2015-09-14T20:45:50Z","updated_at":"2015-09-14T20:45:51Z","pushed_at":"2015-10-06T21:21:58Z","git_url":"git://github.com/rhansby/connectbot.git","ssh_url":"git@github.com:rhansby/connectbot.git","clone_url":"https://github.com/rhansby/connectbot.git","svn_url":"https://github.com/rhansby/connectbot","homepage":"https://connectbot.org/","size":6421,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"connectbot:master","ref":"master","sha":"1f80f1ea2797805bdecf15e2ce50823c9bc4e369","user":{"login":"connectbot","id":5605419,"avatar_url":"https://avatars.githubusercontent.com/u/5605419?v=3","gravatar_id":"","url":"https://api.github.com/users/connectbot","html_url":"https://github.com/connectbot","followers_url":"https://api.github.com/users/connectbot/followers","following_url":"https://api.github.com/users/connectbot/following{/other_user}","gists_url":"https://api.github.com/users/connectbot/gists{/gist_id}","starred_url":"https://api.github.com/users/connectbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connectbot/subscriptions","organizations_url":"https://api.github.com/users/connectbot/orgs","repos_url":"https://api.github.com/users/connectbot/repos","events_url":"https://api.github.com/users/connectbot/events{/privacy}","received_events_url":"https://api.github.com/users/connectbot/received_events","type":"Organization","site_admin":false},"repo":{"id":123235,"name":"connectbot","full_name":"connectbot/connectbot","owner":{"login":"connectbot","id":5605419,"avatar_url":"https://avatars.githubusercontent.com/u/5605419?v=3","gravatar_id":"","url":"https://api.github.com/users/connectbot","html_url":"https://github.com/connectbot","followers_url":"https://api.github.com/users/connectbot/followers","following_url":"https://api.github.com/users/connectbot/following{/other_user}","gists_url":"https://api.github.com/users/connectbot/gists{/gist_id}","starred_url":"https://api.github.com/users/connectbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/connectbot/subscriptions","organizations_url":"https://api.github.com/users/connectbot/orgs","repos_url":"https://api.github.com/users/connectbot/repos","events_url":"https://api.github.com/users/connectbot/events{/privacy}","received_events_url":"https://api.github.com/users/connectbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/connectbot/connectbot","description":"ConnectBot is the first SSH client for Android.","fork":false,"url":"https://api.github.com/repos/connectbot/connectbot","forks_url":"https://api.github.com/repos/connectbot/connectbot/forks","keys_url":"https://api.github.com/repos/connectbot/connectbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/connectbot/connectbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/connectbot/connectbot/teams","hooks_url":"https://api.github.com/repos/connectbot/connectbot/hooks","issue_events_url":"https://api.github.com/repos/connectbot/connectbot/issues/events{/number}","events_url":"https://api.github.com/repos/connectbot/connectbot/events","assignees_url":"https://api.github.com/repos/connectbot/connectbot/assignees{/user}","branches_url":"https://api.github.com/repos/connectbot/connectbot/branches{/branch}","tags_url":"https://api.github.com/repos/connectbot/connectbot/tags","blobs_url":"https://api.github.com/repos/connectbot/connectbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/connectbot/connectbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/connectbot/connectbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/connectbot/connectbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/connectbot/connectbot/statuses/{sha}","languages_url":"https://api.github.com/repos/connectbot/connectbot/languages","stargazers_url":"https://api.github.com/repos/connectbot/connectbot/stargazers","contributors_url":"https://api.github.com/repos/connectbot/connectbot/contributors","subscribers_url":"https://api.github.com/repos/connectbot/connectbot/subscribers","subscription_url":"https://api.github.com/repos/connectbot/connectbot/subscription","commits_url":"https://api.github.com/repos/connectbot/connectbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/connectbot/connectbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/connectbot/connectbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/connectbot/connectbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/connectbot/connectbot/contents/{+path}","compare_url":"https://api.github.com/repos/connectbot/connectbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/connectbot/connectbot/merges","archive_url":"https://api.github.com/repos/connectbot/connectbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/connectbot/connectbot/downloads","issues_url":"https://api.github.com/repos/connectbot/connectbot/issues{/number}","pulls_url":"https://api.github.com/repos/connectbot/connectbot/pulls{/number}","milestones_url":"https://api.github.com/repos/connectbot/connectbot/milestones{/number}","notifications_url":"https://api.github.com/repos/connectbot/connectbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/connectbot/connectbot/labels{/name}","releases_url":"https://api.github.com/repos/connectbot/connectbot/releases{/id}","created_at":"2009-02-06T17:52:35Z","updated_at":"2015-10-03T07:04:18Z","pushed_at":"2015-10-06T21:21:59Z","git_url":"git://github.com/connectbot/connectbot.git","ssh_url":"git@github.com:connectbot/connectbot.git","clone_url":"https://github.com/connectbot/connectbot.git","svn_url":"https://github.com/connectbot/connectbot","homepage":"https://connectbot.org/","size":9362,"stargazers_count":480,"watchers_count":480,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":246,"mirror_url":null,"open_issues_count":74,"forks":246,"open_issues":74,"watchers":480,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/277"},"html":{"href":"https://github.com/connectbot/connectbot/pull/277"},"issue":{"href":"https://api.github.com/repos/connectbot/connectbot/issues/277"},"comments":{"href":"https://api.github.com/repos/connectbot/connectbot/issues/277/comments"},"review_comments":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/277/comments"},"review_comment":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/connectbot/connectbot/pulls/277/commits"},"statuses":{"href":"https://api.github.com/repos/connectbot/connectbot/statuses/37712ca0a18a36911a5995839836d68b55261573"}}}}