{"action":"created","comment":{"url":"https://api.github.com/repos/Qabel/qabel-android/pulls/comments/77850027","id":77850027,"diff_hunk":"@@ -44,21 +56,49 @@ public static CreateIdentityEditTextFragment newInstance(int messageId, int edit\n     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle\n             savedInstanceState) {\n \n-        View view = inflater.inflate(R.layout.fragment_create_identity_edittext, container, false);\n+        final View view = inflater.inflate(R.layout.fragment_create_identity_edittext, container, false);\n \n         TextView tvMessage = ((TextView) view.findViewById(R.id.tv_message));\n-        editText = (EditText) view.findViewById(R.id.et_name);\n         tvMessage.setText(mMessageId);\n-        editText.setHint(mEditTextHintId);\n+\n+        editText = (EditText) view.findViewById(R.id.et_name);\n+        if (value != null) {\n+            editText.setText(value);\n+        }\n+        if (!optionalValue) {\n+            editText.setHint(mEditTextHintId);\n+        } else {\n+            editText.setHint(getString(mEditTextHintId) + \" (\" + getString(R.string.optional) + \")\");\n+        }\n         if (inputType != null) {\n             editText.setInputType(InputType.TYPE_CLASS_TEXT | inputType);\n         }\n+        editText.setImeOptions(EditorInfo.IME_ACTION_NEXT);\n+        editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n+            @Override\n+            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n+                if (actionId == EditorInfo.IME_ACTION_NEXT) {\n+                    Activity activity = getActivity();\n+                    if (activity != null && activity instanceof BaseWizardActivity) {\n+                        ((BaseWizardActivity) activity).handleNextClick();\n+                        return true;\n+                    }\n+                }\n+                return false;\n+            }\n+        });","path":"qabelbox/src/main/java/de/qabel/qabelbox/fragments/CreateIdentityEditTextFragment.java","position":78,"original_position":80,"commit_id":"c0711133ecc6011c53c4f97fd46e345dbf0b6aa1","original_commit_id":"29b153fca44b824b62480b23a90c6bd55cc9e920","user":{"login":"JoGir","id":16522130,"avatar_url":"https://avatars.githubusercontent.com/u/16522130?v=3","gravatar_id":"","url":"https://api.github.com/users/JoGir","html_url":"https://github.com/JoGir","followers_url":"https://api.github.com/users/JoGir/followers","following_url":"https://api.github.com/users/JoGir/following{/other_user}","gists_url":"https://api.github.com/users/JoGir/gists{/gist_id}","starred_url":"https://api.github.com/users/JoGir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoGir/subscriptions","organizations_url":"https://api.github.com/users/JoGir/orgs","repos_url":"https://api.github.com/users/JoGir/repos","events_url":"https://api.github.com/users/JoGir/events{/privacy}","received_events_url":"https://api.github.com/users/JoGir/received_events","type":"User","site_admin":false},"body":"implicit tested in UItest","created_at":"2016-09-07T15:48:14Z","updated_at":"2016-09-07T15:48:14Z","html_url":"https://github.com/Qabel/qabel-android/pull/645#discussion_r77850027","pull_request_url":"https://api.github.com/repos/Qabel/qabel-android/pulls/645","_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/comments/77850027"},"html":{"href":"https://github.com/Qabel/qabel-android/pull/645#discussion_r77850027"},"pull_request":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/645"}}},"pull_request":{"url":"https://api.github.com/repos/Qabel/qabel-android/pulls/645","id":83551163,"html_url":"https://github.com/Qabel/qabel-android/pull/645","diff_url":"https://github.com/Qabel/qabel-android/pull/645.diff","patch_url":"https://github.com/Qabel/qabel-android/pull/645.patch","issue_url":"https://api.github.com/repos/Qabel/qabel-android/issues/645","number":645,"state":"open","locked":false,"title":"Edit identity","user":{"login":"JoGir","id":16522130,"avatar_url":"https://avatars.githubusercontent.com/u/16522130?v=3","gravatar_id":"","url":"https://api.github.com/users/JoGir","html_url":"https://github.com/JoGir","followers_url":"https://api.github.com/users/JoGir/followers","following_url":"https://api.github.com/users/JoGir/following{/other_user}","gists_url":"https://api.github.com/users/JoGir/gists{/gist_id}","starred_url":"https://api.github.com/users/JoGir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoGir/subscriptions","organizations_url":"https://api.github.com/users/JoGir/orgs","repos_url":"https://api.github.com/users/JoGir/repos","events_url":"https://api.github.com/users/JoGir/events{/privacy}","received_events_url":"https://api.github.com/users/JoGir/received_events","type":"User","site_admin":false},"body":"resolves #583\r\n- [x] Add identity view\r\n- [x] Fix drawer update\r\n- [x] Add new fields to wizard\r\n- [x] rework identity overview\r\n- [x] integrate core changes","created_at":"2016-09-01T00:12:49Z","updated_at":"2016-09-07T15:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7a39e9c7f919735286240f75dd234742f1a792f","assignee":{"login":"julianseeger","id":3258762,"avatar_url":"https://avatars.githubusercontent.com/u/3258762?v=3","gravatar_id":"","url":"https://api.github.com/users/julianseeger","html_url":"https://github.com/julianseeger","followers_url":"https://api.github.com/users/julianseeger/followers","following_url":"https://api.github.com/users/julianseeger/following{/other_user}","gists_url":"https://api.github.com/users/julianseeger/gists{/gist_id}","starred_url":"https://api.github.com/users/julianseeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianseeger/subscriptions","organizations_url":"https://api.github.com/users/julianseeger/orgs","repos_url":"https://api.github.com/users/julianseeger/repos","events_url":"https://api.github.com/users/julianseeger/events{/privacy}","received_events_url":"https://api.github.com/users/julianseeger/received_events","type":"User","site_admin":false},"assignees":[{"login":"julianseeger","id":3258762,"avatar_url":"https://avatars.githubusercontent.com/u/3258762?v=3","gravatar_id":"","url":"https://api.github.com/users/julianseeger","html_url":"https://github.com/julianseeger","followers_url":"https://api.github.com/users/julianseeger/followers","following_url":"https://api.github.com/users/julianseeger/following{/other_user}","gists_url":"https://api.github.com/users/julianseeger/gists{/gist_id}","starred_url":"https://api.github.com/users/julianseeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianseeger/subscriptions","organizations_url":"https://api.github.com/users/julianseeger/orgs","repos_url":"https://api.github.com/users/julianseeger/repos","events_url":"https://api.github.com/users/julianseeger/events{/privacy}","received_events_url":"https://api.github.com/users/julianseeger/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Qabel/qabel-android/pulls/645/commits","review_comments_url":"https://api.github.com/repos/Qabel/qabel-android/pulls/645/comments","review_comment_url":"https://api.github.com/repos/Qabel/qabel-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Qabel/qabel-android/issues/645/comments","statuses_url":"https://api.github.com/repos/Qabel/qabel-android/statuses/c0711133ecc6011c53c4f97fd46e345dbf0b6aa1","head":{"label":"JoGir:edit_identity","ref":"edit_identity","sha":"c0711133ecc6011c53c4f97fd46e345dbf0b6aa1","user":{"login":"JoGir","id":16522130,"avatar_url":"https://avatars.githubusercontent.com/u/16522130?v=3","gravatar_id":"","url":"https://api.github.com/users/JoGir","html_url":"https://github.com/JoGir","followers_url":"https://api.github.com/users/JoGir/followers","following_url":"https://api.github.com/users/JoGir/following{/other_user}","gists_url":"https://api.github.com/users/JoGir/gists{/gist_id}","starred_url":"https://api.github.com/users/JoGir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoGir/subscriptions","organizations_url":"https://api.github.com/users/JoGir/orgs","repos_url":"https://api.github.com/users/JoGir/repos","events_url":"https://api.github.com/users/JoGir/events{/privacy}","received_events_url":"https://api.github.com/users/JoGir/received_events","type":"User","site_admin":false},"repo":{"id":53146477,"name":"qabel-android","full_name":"JoGir/qabel-android","owner":{"login":"JoGir","id":16522130,"avatar_url":"https://avatars.githubusercontent.com/u/16522130?v=3","gravatar_id":"","url":"https://api.github.com/users/JoGir","html_url":"https://github.com/JoGir","followers_url":"https://api.github.com/users/JoGir/followers","following_url":"https://api.github.com/users/JoGir/following{/other_user}","gists_url":"https://api.github.com/users/JoGir/gists{/gist_id}","starred_url":"https://api.github.com/users/JoGir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoGir/subscriptions","organizations_url":"https://api.github.com/users/JoGir/orgs","repos_url":"https://api.github.com/users/JoGir/repos","events_url":"https://api.github.com/users/JoGir/events{/privacy}","received_events_url":"https://api.github.com/users/JoGir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoGir/qabel-android","description":"Android Frontend of Qabel","fork":true,"url":"https://api.github.com/repos/JoGir/qabel-android","forks_url":"https://api.github.com/repos/JoGir/qabel-android/forks","keys_url":"https://api.github.com/repos/JoGir/qabel-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoGir/qabel-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoGir/qabel-android/teams","hooks_url":"https://api.github.com/repos/JoGir/qabel-android/hooks","issue_events_url":"https://api.github.com/repos/JoGir/qabel-android/issues/events{/number}","events_url":"https://api.github.com/repos/JoGir/qabel-android/events","assignees_url":"https://api.github.com/repos/JoGir/qabel-android/assignees{/user}","branches_url":"https://api.github.com/repos/JoGir/qabel-android/branches{/branch}","tags_url":"https://api.github.com/repos/JoGir/qabel-android/tags","blobs_url":"https://api.github.com/repos/JoGir/qabel-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoGir/qabel-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoGir/qabel-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoGir/qabel-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoGir/qabel-android/statuses/{sha}","languages_url":"https://api.github.com/repos/JoGir/qabel-android/languages","stargazers_url":"https://api.github.com/repos/JoGir/qabel-android/stargazers","contributors_url":"https://api.github.com/repos/JoGir/qabel-android/contributors","subscribers_url":"https://api.github.com/repos/JoGir/qabel-android/subscribers","subscription_url":"https://api.github.com/repos/JoGir/qabel-android/subscription","commits_url":"https://api.github.com/repos/JoGir/qabel-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoGir/qabel-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoGir/qabel-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoGir/qabel-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoGir/qabel-android/contents/{+path}","compare_url":"https://api.github.com/repos/JoGir/qabel-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoGir/qabel-android/merges","archive_url":"https://api.github.com/repos/JoGir/qabel-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoGir/qabel-android/downloads","issues_url":"https://api.github.com/repos/JoGir/qabel-android/issues{/number}","pulls_url":"https://api.github.com/repos/JoGir/qabel-android/pulls{/number}","milestones_url":"https://api.github.com/repos/JoGir/qabel-android/milestones{/number}","notifications_url":"https://api.github.com/repos/JoGir/qabel-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoGir/qabel-android/labels{/name}","releases_url":"https://api.github.com/repos/JoGir/qabel-android/releases{/id}","deployments_url":"https://api.github.com/repos/JoGir/qabel-android/deployments","created_at":"2016-03-04T15:50:34Z","updated_at":"2016-03-04T15:50:35Z","pushed_at":"2016-09-07T15:44:45Z","git_url":"git://github.com/JoGir/qabel-android.git","ssh_url":"git@github.com:JoGir/qabel-android.git","clone_url":"https://github.com/JoGir/qabel-android.git","svn_url":"https://github.com/JoGir/qabel-android","homepage":"","size":8034,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Qabel:master","ref":"master","sha":"e035bc6e74bd38510169e1d3556c54f28d61d2f2","user":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"repo":{"id":37848561,"name":"qabel-android","full_name":"Qabel/qabel-android","owner":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Qabel/qabel-android","description":":iphone: Android frontend of Qabel","fork":false,"url":"https://api.github.com/repos/Qabel/qabel-android","forks_url":"https://api.github.com/repos/Qabel/qabel-android/forks","keys_url":"https://api.github.com/repos/Qabel/qabel-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qabel/qabel-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qabel/qabel-android/teams","hooks_url":"https://api.github.com/repos/Qabel/qabel-android/hooks","issue_events_url":"https://api.github.com/repos/Qabel/qabel-android/issues/events{/number}","events_url":"https://api.github.com/repos/Qabel/qabel-android/events","assignees_url":"https://api.github.com/repos/Qabel/qabel-android/assignees{/user}","branches_url":"https://api.github.com/repos/Qabel/qabel-android/branches{/branch}","tags_url":"https://api.github.com/repos/Qabel/qabel-android/tags","blobs_url":"https://api.github.com/repos/Qabel/qabel-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qabel/qabel-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qabel/qabel-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qabel/qabel-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qabel/qabel-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Qabel/qabel-android/languages","stargazers_url":"https://api.github.com/repos/Qabel/qabel-android/stargazers","contributors_url":"https://api.github.com/repos/Qabel/qabel-android/contributors","subscribers_url":"https://api.github.com/repos/Qabel/qabel-android/subscribers","subscription_url":"https://api.github.com/repos/Qabel/qabel-android/subscription","commits_url":"https://api.github.com/repos/Qabel/qabel-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qabel/qabel-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qabel/qabel-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qabel/qabel-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Qabel/qabel-android/contents/{+path}","compare_url":"https://api.github.com/repos/Qabel/qabel-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qabel/qabel-android/merges","archive_url":"https://api.github.com/repos/Qabel/qabel-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qabel/qabel-android/downloads","issues_url":"https://api.github.com/repos/Qabel/qabel-android/issues{/number}","pulls_url":"https://api.github.com/repos/Qabel/qabel-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Qabel/qabel-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Qabel/qabel-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qabel/qabel-android/labels{/name}","releases_url":"https://api.github.com/repos/Qabel/qabel-android/releases{/id}","deployments_url":"https://api.github.com/repos/Qabel/qabel-android/deployments","created_at":"2015-06-22T10:05:20Z","updated_at":"2016-06-10T13:19:30Z","pushed_at":"2016-09-07T15:44:45Z","git_url":"git://github.com/Qabel/qabel-android.git","ssh_url":"git@github.com:Qabel/qabel-android.git","clone_url":"https://github.com/Qabel/qabel-android.git","svn_url":"https://github.com/Qabel/qabel-android","homepage":"","size":8649,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":60,"forks":15,"open_issues":60,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/645"},"html":{"href":"https://github.com/Qabel/qabel-android/pull/645"},"issue":{"href":"https://api.github.com/repos/Qabel/qabel-android/issues/645"},"comments":{"href":"https://api.github.com/repos/Qabel/qabel-android/issues/645/comments"},"review_comments":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/645/comments"},"review_comment":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Qabel/qabel-android/pulls/645/commits"},"statuses":{"href":"https://api.github.com/repos/Qabel/qabel-android/statuses/c0711133ecc6011c53c4f97fd46e345dbf0b6aa1"}}}}
{"actor":{"display_login":"JoGir"}}