{"action":"created","comment":{"url":"https://api.github.com/repos/Neamar/KISS/pulls/comments/67619811","id":67619811,"diff_hunk":"@@ -282,6 +289,16 @@ public boolean onItemLongClick(AdapterView<?> parent, View v, int pos, long id)\n         applyDesignTweaks();\n     }\n \n+    private void adjustInputType(String currentText) {\n+        if (currentText != null && Pattern.matches(\"[+]\\\\d+\", currentText)) {\n+            searchEditText.setInputType(InputType.TYPE_CLASS_PHONE);\n+        } else if (searchEditTextSpellcheck) {\n+            searchEditText.setInputType(SPELLCHECK_ENABLED_TYPE);","path":"app/src/main/java/fr/neamar/kiss/MainActivity.java","position":66,"original_position":66,"commit_id":"60e5d3dbe39e729eec0fce685500846adc52e7c4","original_commit_id":"60e5d3dbe39e729eec0fce685500846adc52e7c4","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","url":"https://api.github.com/users/Neamar","html_url":"https://github.com/Neamar","followers_url":"https://api.github.com/users/Neamar/followers","following_url":"https://api.github.com/users/Neamar/following{/other_user}","gists_url":"https://api.github.com/users/Neamar/gists{/gist_id}","starred_url":"https://api.github.com/users/Neamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neamar/subscriptions","organizations_url":"https://api.github.com/users/Neamar/orgs","repos_url":"https://api.github.com/users/Neamar/repos","events_url":"https://api.github.com/users/Neamar/events{/privacy}","received_events_url":"https://api.github.com/users/Neamar/received_events","type":"User","site_admin":false},"body":"Ideally, this should be `InputType.TYPE_CLASS_TEXT |\r\n            InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;`\r\n\r\nYou can reuse the static value `SPELLCHECK_ENABLED_TYPE`.","created_at":"2016-06-19T16:40:03Z","updated_at":"2016-06-19T16:40:03Z","html_url":"https://github.com/Neamar/KISS/pull/476#discussion_r67619811","pull_request_url":"https://api.github.com/repos/Neamar/KISS/pulls/476","_links":{"self":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/comments/67619811"},"html":{"href":"https://github.com/Neamar/KISS/pull/476#discussion_r67619811"},"pull_request":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/476"}}},"pull_request":{"url":"https://api.github.com/repos/Neamar/KISS/pulls/476","id":74050147,"html_url":"https://github.com/Neamar/KISS/pull/476","diff_url":"https://github.com/Neamar/KISS/pull/476.diff","patch_url":"https://github.com/Neamar/KISS/pull/476.patch","issue_url":"https://api.github.com/repos/Neamar/KISS/issues/476","number":476,"state":"open","locked":false,"title":"Easier dialing.","user":{"login":"hamburger1984","id":438976,"avatar_url":"https://avatars.githubusercontent.com/u/438976?v=3","gravatar_id":"","url":"https://api.github.com/users/hamburger1984","html_url":"https://github.com/hamburger1984","followers_url":"https://api.github.com/users/hamburger1984/followers","following_url":"https://api.github.com/users/hamburger1984/following{/other_user}","gists_url":"https://api.github.com/users/hamburger1984/gists{/gist_id}","starred_url":"https://api.github.com/users/hamburger1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamburger1984/subscriptions","organizations_url":"https://api.github.com/users/hamburger1984/orgs","repos_url":"https://api.github.com/users/hamburger1984/repos","events_url":"https://api.github.com/users/hamburger1984/events{/privacy}","received_events_url":"https://api.github.com/users/hamburger1984/received_events","type":"User","site_admin":false},"body":"Sometimes I use the launcher to dial phone numbers. However: Entering phone numbers with the default text keyboard is quite bad.\r\nSo I implemented this little fix to switch the inputType to TYPE_CLASS_PHONE once the user enters \"+\" and a number and back to normal once the contained text ceases to match the pattern \"+ and numbers\".","created_at":"2016-06-16T09:38:54Z","updated_at":"2016-06-19T16:40:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9718a76d25f46408b31cbe7ecdec6e41f2922f20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Neamar/KISS/pulls/476/commits","review_comments_url":"https://api.github.com/repos/Neamar/KISS/pulls/476/comments","review_comment_url":"https://api.github.com/repos/Neamar/KISS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Neamar/KISS/issues/476/comments","statuses_url":"https://api.github.com/repos/Neamar/KISS/statuses/60e5d3dbe39e729eec0fce685500846adc52e7c4","head":{"label":"hamburger1984:inputType_switcher","ref":"inputType_switcher","sha":"60e5d3dbe39e729eec0fce685500846adc52e7c4","user":{"login":"hamburger1984","id":438976,"avatar_url":"https://avatars.githubusercontent.com/u/438976?v=3","gravatar_id":"","url":"https://api.github.com/users/hamburger1984","html_url":"https://github.com/hamburger1984","followers_url":"https://api.github.com/users/hamburger1984/followers","following_url":"https://api.github.com/users/hamburger1984/following{/other_user}","gists_url":"https://api.github.com/users/hamburger1984/gists{/gist_id}","starred_url":"https://api.github.com/users/hamburger1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamburger1984/subscriptions","organizations_url":"https://api.github.com/users/hamburger1984/orgs","repos_url":"https://api.github.com/users/hamburger1984/repos","events_url":"https://api.github.com/users/hamburger1984/events{/privacy}","received_events_url":"https://api.github.com/users/hamburger1984/received_events","type":"User","site_admin":false},"repo":{"id":60105909,"name":"KISS","full_name":"hamburger1984/KISS","owner":{"login":"hamburger1984","id":438976,"avatar_url":"https://avatars.githubusercontent.com/u/438976?v=3","gravatar_id":"","url":"https://api.github.com/users/hamburger1984","html_url":"https://github.com/hamburger1984","followers_url":"https://api.github.com/users/hamburger1984/followers","following_url":"https://api.github.com/users/hamburger1984/following{/other_user}","gists_url":"https://api.github.com/users/hamburger1984/gists{/gist_id}","starred_url":"https://api.github.com/users/hamburger1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamburger1984/subscriptions","organizations_url":"https://api.github.com/users/hamburger1984/orgs","repos_url":"https://api.github.com/users/hamburger1984/repos","events_url":"https://api.github.com/users/hamburger1984/events{/privacy}","received_events_url":"https://api.github.com/users/hamburger1984/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hamburger1984/KISS","description":"Lightning fast Android launcher","fork":true,"url":"https://api.github.com/repos/hamburger1984/KISS","forks_url":"https://api.github.com/repos/hamburger1984/KISS/forks","keys_url":"https://api.github.com/repos/hamburger1984/KISS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hamburger1984/KISS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hamburger1984/KISS/teams","hooks_url":"https://api.github.com/repos/hamburger1984/KISS/hooks","issue_events_url":"https://api.github.com/repos/hamburger1984/KISS/issues/events{/number}","events_url":"https://api.github.com/repos/hamburger1984/KISS/events","assignees_url":"https://api.github.com/repos/hamburger1984/KISS/assignees{/user}","branches_url":"https://api.github.com/repos/hamburger1984/KISS/branches{/branch}","tags_url":"https://api.github.com/repos/hamburger1984/KISS/tags","blobs_url":"https://api.github.com/repos/hamburger1984/KISS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hamburger1984/KISS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hamburger1984/KISS/git/refs{/sha}","trees_url":"https://api.github.com/repos/hamburger1984/KISS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hamburger1984/KISS/statuses/{sha}","languages_url":"https://api.github.com/repos/hamburger1984/KISS/languages","stargazers_url":"https://api.github.com/repos/hamburger1984/KISS/stargazers","contributors_url":"https://api.github.com/repos/hamburger1984/KISS/contributors","subscribers_url":"https://api.github.com/repos/hamburger1984/KISS/subscribers","subscription_url":"https://api.github.com/repos/hamburger1984/KISS/subscription","commits_url":"https://api.github.com/repos/hamburger1984/KISS/commits{/sha}","git_commits_url":"https://api.github.com/repos/hamburger1984/KISS/git/commits{/sha}","comments_url":"https://api.github.com/repos/hamburger1984/KISS/comments{/number}","issue_comment_url":"https://api.github.com/repos/hamburger1984/KISS/issues/comments{/number}","contents_url":"https://api.github.com/repos/hamburger1984/KISS/contents/{+path}","compare_url":"https://api.github.com/repos/hamburger1984/KISS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hamburger1984/KISS/merges","archive_url":"https://api.github.com/repos/hamburger1984/KISS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hamburger1984/KISS/downloads","issues_url":"https://api.github.com/repos/hamburger1984/KISS/issues{/number}","pulls_url":"https://api.github.com/repos/hamburger1984/KISS/pulls{/number}","milestones_url":"https://api.github.com/repos/hamburger1984/KISS/milestones{/number}","notifications_url":"https://api.github.com/repos/hamburger1984/KISS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hamburger1984/KISS/labels{/name}","releases_url":"https://api.github.com/repos/hamburger1984/KISS/releases{/id}","deployments_url":"https://api.github.com/repos/hamburger1984/KISS/deployments","created_at":"2016-05-31T16:30:09Z","updated_at":"2016-05-31T16:30:11Z","pushed_at":"2016-06-16T09:31:34Z","git_url":"git://github.com/hamburger1984/KISS.git","ssh_url":"git@github.com:hamburger1984/KISS.git","clone_url":"https://github.com/hamburger1984/KISS.git","svn_url":"https://github.com/hamburger1984/KISS","homepage":"https://play.google.com/store/apps/details?id=fr.neamar.kiss","size":64008,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"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":"Neamar:master","ref":"master","sha":"de15a6e40ce867fe2e4abc29dfc2bd666bf1130b","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","url":"https://api.github.com/users/Neamar","html_url":"https://github.com/Neamar","followers_url":"https://api.github.com/users/Neamar/followers","following_url":"https://api.github.com/users/Neamar/following{/other_user}","gists_url":"https://api.github.com/users/Neamar/gists{/gist_id}","starred_url":"https://api.github.com/users/Neamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neamar/subscriptions","organizations_url":"https://api.github.com/users/Neamar/orgs","repos_url":"https://api.github.com/users/Neamar/repos","events_url":"https://api.github.com/users/Neamar/events{/privacy}","received_events_url":"https://api.github.com/users/Neamar/received_events","type":"User","site_admin":false},"repo":{"id":6047468,"name":"KISS","full_name":"Neamar/KISS","owner":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","url":"https://api.github.com/users/Neamar","html_url":"https://github.com/Neamar","followers_url":"https://api.github.com/users/Neamar/followers","following_url":"https://api.github.com/users/Neamar/following{/other_user}","gists_url":"https://api.github.com/users/Neamar/gists{/gist_id}","starred_url":"https://api.github.com/users/Neamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neamar/subscriptions","organizations_url":"https://api.github.com/users/Neamar/orgs","repos_url":"https://api.github.com/users/Neamar/repos","events_url":"https://api.github.com/users/Neamar/events{/privacy}","received_events_url":"https://api.github.com/users/Neamar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Neamar/KISS","description":"Lightning fast Android launcher","fork":false,"url":"https://api.github.com/repos/Neamar/KISS","forks_url":"https://api.github.com/repos/Neamar/KISS/forks","keys_url":"https://api.github.com/repos/Neamar/KISS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neamar/KISS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neamar/KISS/teams","hooks_url":"https://api.github.com/repos/Neamar/KISS/hooks","issue_events_url":"https://api.github.com/repos/Neamar/KISS/issues/events{/number}","events_url":"https://api.github.com/repos/Neamar/KISS/events","assignees_url":"https://api.github.com/repos/Neamar/KISS/assignees{/user}","branches_url":"https://api.github.com/repos/Neamar/KISS/branches{/branch}","tags_url":"https://api.github.com/repos/Neamar/KISS/tags","blobs_url":"https://api.github.com/repos/Neamar/KISS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neamar/KISS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neamar/KISS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neamar/KISS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neamar/KISS/statuses/{sha}","languages_url":"https://api.github.com/repos/Neamar/KISS/languages","stargazers_url":"https://api.github.com/repos/Neamar/KISS/stargazers","contributors_url":"https://api.github.com/repos/Neamar/KISS/contributors","subscribers_url":"https://api.github.com/repos/Neamar/KISS/subscribers","subscription_url":"https://api.github.com/repos/Neamar/KISS/subscription","commits_url":"https://api.github.com/repos/Neamar/KISS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neamar/KISS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neamar/KISS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neamar/KISS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neamar/KISS/contents/{+path}","compare_url":"https://api.github.com/repos/Neamar/KISS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neamar/KISS/merges","archive_url":"https://api.github.com/repos/Neamar/KISS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neamar/KISS/downloads","issues_url":"https://api.github.com/repos/Neamar/KISS/issues{/number}","pulls_url":"https://api.github.com/repos/Neamar/KISS/pulls{/number}","milestones_url":"https://api.github.com/repos/Neamar/KISS/milestones{/number}","notifications_url":"https://api.github.com/repos/Neamar/KISS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neamar/KISS/labels{/name}","releases_url":"https://api.github.com/repos/Neamar/KISS/releases{/id}","deployments_url":"https://api.github.com/repos/Neamar/KISS/deployments","created_at":"2012-10-02T16:03:43Z","updated_at":"2016-06-18T02:15:33Z","pushed_at":"2016-06-19T16:33:04Z","git_url":"git://github.com/Neamar/KISS.git","ssh_url":"git@github.com:Neamar/KISS.git","clone_url":"https://github.com/Neamar/KISS.git","svn_url":"https://github.com/Neamar/KISS","homepage":"https://play.google.com/store/apps/details?id=fr.neamar.kiss","size":64227,"stargazers_count":217,"watchers_count":217,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":36,"forks":83,"open_issues":36,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/476"},"html":{"href":"https://github.com/Neamar/KISS/pull/476"},"issue":{"href":"https://api.github.com/repos/Neamar/KISS/issues/476"},"comments":{"href":"https://api.github.com/repos/Neamar/KISS/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Neamar/KISS/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/Neamar/KISS/statuses/60e5d3dbe39e729eec0fce685500846adc52e7c4"}}}}
{"actor":{"display_login":"Neamar"}}