{"action":"created","comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/comments/28186975","id":28186975,"diff_hunk":"@@ -101,13 +108,54 @@ private void refreshAccountDetails() {\n             }\n \n             mLoginLogoutTextView.setText(R.string.me_disconnect_from_wordpress_com);\n-        }\n-        else {\n+            mLoginLogoutTextView.setOnClickListener(new View.OnClickListener() {\n+                @Override\n+                public void onClick(View view) {\n+                    signoutWithConfirmation();\n+                }\n+            });\n+        } else {\n             mAvatarImageView.setVisibility(View.GONE);\n             mDisplayNameTextView.setVisibility(View.GONE);\n             mUsernameTextView.setVisibility(View.GONE);\n \n             mLoginLogoutTextView.setText(R.string.me_connect_to_wordpress_com);\n+            mLoginLogoutTextView.setOnClickListener(new View.OnClickListener() {\n+                @Override\n+                public void onClick(View view) {\n+                    ActivityLauncher.showSignInForResult(getActivity());\n+                }\n+            });\n         }\n     }\n+\n+    private void signoutWithConfirmation() {\n+        AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity());\n+        dialogBuilder.setMessage(getString(R.string.sign_out_confirm));\n+        dialogBuilder.setPositiveButton(R.string.signout, new DialogInterface.OnClickListener() {\n+            public void onClick(DialogInterface dialog, int whichButton) {\n+                signout();\n+            }\n+        });\n+        dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n+            public void onClick(DialogInterface dialog, int whichButton) {","path":"WordPress/src/main/java/org/wordpress/android/ui/me/MeFragment.java","position":70,"original_position":70,"commit_id":"9976459051eea9e104c7e6f49ef22b991ddab935","original_commit_id":"9976459051eea9e104c7e6f49ef22b991ddab935","user":{"login":"tonyr59h","id":4031052,"avatar_url":"https://avatars.githubusercontent.com/u/4031052?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyr59h","html_url":"https://github.com/tonyr59h","followers_url":"https://api.github.com/users/tonyr59h/followers","following_url":"https://api.github.com/users/tonyr59h/following{/other_user}","gists_url":"https://api.github.com/users/tonyr59h/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyr59h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyr59h/subscriptions","organizations_url":"https://api.github.com/users/tonyr59h/orgs","repos_url":"https://api.github.com/users/tonyr59h/repos","events_url":"https://api.github.com/users/tonyr59h/events{/privacy}","received_events_url":"https://api.github.com/users/tonyr59h/received_events","type":"User","site_admin":false},"body":"If the button has no action you can just pass null for the OnClickListener and the button will still show up.","created_at":"2015-04-10T23:03:19Z","updated_at":"2015-04-10T23:03:19Z","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520#discussion_r28186975","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/comments/28186975"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520#discussion_r28186975"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520"}}},"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520","id":33072659,"html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520","diff_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2520","number":2520,"state":"open","locked":false,"title":"Masterbar: move logout to Me tab","user":{"login":"nbradbury","id":3903757,"avatar_url":"https://avatars.githubusercontent.com/u/3903757?v=3","gravatar_id":"","url":"https://api.github.com/users/nbradbury","html_url":"https://github.com/nbradbury","followers_url":"https://api.github.com/users/nbradbury/followers","following_url":"https://api.github.com/users/nbradbury/following{/other_user}","gists_url":"https://api.github.com/users/nbradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/nbradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbradbury/subscriptions","organizations_url":"https://api.github.com/users/nbradbury/orgs","repos_url":"https://api.github.com/users/nbradbury/repos","events_url":"https://api.github.com/users/nbradbury/events{/privacy}","received_events_url":"https://api.github.com/users/nbradbury/received_events","type":"User","site_admin":false},"body":"Fix #2493 - moves sign-out and \"Help & Support\" to the Me tab, removes them from Settings, and fixes a few related issues.\r\n\r\n@oguzkocer ","created_at":"2015-04-10T18:45:01Z","updated_at":"2015-04-10T23:03:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e78708788b53ac8c45263a4e39256f33e7824228","assignee":{"login":"tonyr59h","id":4031052,"avatar_url":"https://avatars.githubusercontent.com/u/4031052?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyr59h","html_url":"https://github.com/tonyr59h","followers_url":"https://api.github.com/users/tonyr59h/followers","following_url":"https://api.github.com/users/tonyr59h/following{/other_user}","gists_url":"https://api.github.com/users/tonyr59h/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyr59h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyr59h/subscriptions","organizations_url":"https://api.github.com/users/tonyr59h/orgs","repos_url":"https://api.github.com/users/tonyr59h/repos","events_url":"https://api.github.com/users/tonyr59h/events{/privacy}","received_events_url":"https://api.github.com/users/tonyr59h/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2520/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/statuses/9976459051eea9e104c7e6f49ef22b991ddab935","head":{"label":"wordpress-mobile:feature/2493-move-logout-to-me","ref":"feature/2493-move-logout-to-me","sha":"9976459051eea9e104c7e6f49ef22b991ddab935","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":9306568,"name":"WordPress-Android","full_name":"wordpress-mobile/WordPress-Android","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-Android","description":"WordPress for Android","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/releases{/id}","created_at":"2013-04-08T20:52:40Z","updated_at":"2015-04-10T22:19:30Z","pushed_at":"2015-04-10T23:00:19Z","git_url":"git://github.com/wordpress-mobile/WordPress-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-Android","homepage":"http://android.wordpress.org","size":229008,"stargazers_count":688,"watchers_count":688,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":437,"mirror_url":null,"open_issues_count":95,"forks":437,"open_issues":95,"watchers":688,"default_branch":"develop"}},"base":{"label":"wordpress-mobile:feature/viewpager-main-activity","ref":"feature/viewpager-main-activity","sha":"93c92329925abc924212e2bf623a18bfea8198a9","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":9306568,"name":"WordPress-Android","full_name":"wordpress-mobile/WordPress-Android","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-Android","description":"WordPress for Android","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/releases{/id}","created_at":"2013-04-08T20:52:40Z","updated_at":"2015-04-10T22:19:30Z","pushed_at":"2015-04-10T23:00:19Z","git_url":"git://github.com/wordpress-mobile/WordPress-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-Android","homepage":"http://android.wordpress.org","size":229008,"stargazers_count":688,"watchers_count":688,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":437,"mirror_url":null,"open_issues_count":95,"forks":437,"open_issues":95,"watchers":688,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-Android/pull/2520"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2520"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/2520/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/2520/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/statuses/9976459051eea9e104c7e6f49ef22b991ddab935"}}}}