{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/comments/123901088","pull_request_review_id":46147565,"id":123901088,"diff_hunk":"@@ -0,0 +1,297 @@\n+package org.fossasia.phimpme.accounts;\n+\n+import android.content.Context;\n+import android.content.Intent;\n+import android.os.Bundle;\n+import android.support.design.widget.Snackbar;\n+import android.support.v7.widget.LinearLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+import android.support.v7.widget.Toolbar;\n+import android.util.Log;\n+import android.view.Menu;\n+import android.view.View;\n+import android.widget.Switch;\n+import android.widget.Toast;\n+\n+import com.facebook.CallbackManager;\n+import com.facebook.FacebookCallback;\n+import com.facebook.FacebookException;\n+import com.facebook.FacebookSdk;\n+import com.facebook.GraphRequest;\n+import com.facebook.GraphResponse;\n+import com.facebook.login.LoginManager;\n+import com.facebook.login.LoginResult;\n+import com.twitter.sdk.android.core.Callback;\n+import com.twitter.sdk.android.core.Result;\n+import com.twitter.sdk.android.core.TwitterCore;\n+import com.twitter.sdk.android.core.TwitterException;\n+import com.twitter.sdk.android.core.TwitterSession;\n+import com.twitter.sdk.android.core.identity.TwitterAuthClient;\n+\n+import org.fossasia.phimpme.R;\n+import org.fossasia.phimpme.base.PhimpmeProgressBarHandler;\n+import org.fossasia.phimpme.base.RecyclerItemClickListner;\n+import org.fossasia.phimpme.base.ThemedActivity;\n+import org.fossasia.phimpme.data.AccountDatabase;\n+import org.fossasia.phimpme.leafpic.util.ThemeHelper;\n+import org.fossasia.phimpme.utilities.ActivitySwitchHelper;\n+import org.jetbrains.annotations.NotNull;\n+import org.json.JSONObject;\n+\n+import java.util.Arrays;\n+import java.util.List;\n+\n+import io.realm.Realm;\n+import io.realm.RealmQuery;\n+\n+import static android.support.design.widget.Snackbar.LENGTH_LONG;\n+\n+/**\n+ * Created by pa1pal on 13/6/17.\n+ */\n+\n+public class AccountActivity extends ThemedActivity implements AccountContract.View,\n+        RecyclerItemClickListner.OnItemClickListener {\n+\n+    private Toolbar toolbar;","path":"app/src/main/java/org/fossasia/phimpme/accounts/AccountActivity.java","position":56,"original_position":56,"commit_id":"bc08435233b7e18ba41183d7820553c27c6e53a1","original_commit_id":"bc08435233b7e18ba41183d7820553c27c6e53a1","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Perhaps 'toolbar' could be replaced by a local variable.](https://www.codacy.com/app/harshithdwivedi/phimpme-android/pullRequest?prid=731897)","created_at":"2017-06-25T15:05:57Z","updated_at":"2017-06-25T15:05:57Z","html_url":"https://github.com/fossasia/phimpme-android/pull/674#discussion_r123901088","pull_request_url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674","_links":{"self":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/comments/123901088"},"html":{"href":"https://github.com/fossasia/phimpme-android/pull/674#discussion_r123901088"},"pull_request":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674","id":127341037,"html_url":"https://github.com/fossasia/phimpme-android/pull/674","diff_url":"https://github.com/fossasia/phimpme-android/pull/674.diff","patch_url":"https://github.com/fossasia/phimpme-android/pull/674.patch","issue_url":"https://api.github.com/repos/fossasia/phimpme-android/issues/674","number":674,"state":"open","locked":false,"title":"Added Sign In functionality in AccountActivity","user":{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false},"body":"Fix #653 \r\n\r\nChanges: \r\n\r\n- [ ] Removed the dialog fragment\r\n- [ ] Added sign in in AccountActivity\r\n- [ ] Removed the menu item\r\n\r\n","created_at":"2017-06-24T19:40:17Z","updated_at":"2017-06-25T15:05:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb263311620a35085ea91a057be62bbee865fe38","assignee":{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false},"assignees":[{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/fossasia/phimpme-android/milestones/8","html_url":"https://github.com/fossasia/phimpme-android/milestone/8","labels_url":"https://api.github.com/repos/fossasia/phimpme-android/milestones/8/labels","id":2589964,"number":8,"title":"Milestone 7 (GSoC 2017) - Checkpoint Evaluations","description":"Instructions: * Create issues to work on * Assign the issue to the milestone * Assign the issue to a user (yourself) * Tag a release * Deploy on a server * Completed Milestone: Create a blog post describing what has been done","creator":{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":37,"state":"open","created_at":"2017-06-19T05:15:58Z","updated_at":"2017-06-25T00:36:21Z","due_on":"2017-06-25T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674/commits","review_comments_url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674/comments","review_comment_url":"https://api.github.com/repos/fossasia/phimpme-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/phimpme-android/issues/674/comments","statuses_url":"https://api.github.com/repos/fossasia/phimpme-android/statuses/bc08435233b7e18ba41183d7820553c27c6e53a1","head":{"label":"pa1pal:accountsSwitch","ref":"accountsSwitch","sha":"bc08435233b7e18ba41183d7820553c27c6e53a1","user":{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false},"repo":{"id":65632007,"name":"phimpme-android","full_name":"pa1pal/phimpme-android","owner":{"login":"pa1pal","id":6936968,"avatar_url":"https://avatars0.githubusercontent.com/u/6936968?v=3","gravatar_id":"","url":"https://api.github.com/users/pa1pal","html_url":"https://github.com/pa1pal","followers_url":"https://api.github.com/users/pa1pal/followers","following_url":"https://api.github.com/users/pa1pal/following{/other_user}","gists_url":"https://api.github.com/users/pa1pal/gists{/gist_id}","starred_url":"https://api.github.com/users/pa1pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pa1pal/subscriptions","organizations_url":"https://api.github.com/users/pa1pal/orgs","repos_url":"https://api.github.com/users/pa1pal/repos","events_url":"https://api.github.com/users/pa1pal/events{/privacy}","received_events_url":"https://api.github.com/users/pa1pal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pa1pal/phimpme-android","description":"Phimp.me - Photo App","fork":true,"url":"https://api.github.com/repos/pa1pal/phimpme-android","forks_url":"https://api.github.com/repos/pa1pal/phimpme-android/forks","keys_url":"https://api.github.com/repos/pa1pal/phimpme-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pa1pal/phimpme-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pa1pal/phimpme-android/teams","hooks_url":"https://api.github.com/repos/pa1pal/phimpme-android/hooks","issue_events_url":"https://api.github.com/repos/pa1pal/phimpme-android/issues/events{/number}","events_url":"https://api.github.com/repos/pa1pal/phimpme-android/events","assignees_url":"https://api.github.com/repos/pa1pal/phimpme-android/assignees{/user}","branches_url":"https://api.github.com/repos/pa1pal/phimpme-android/branches{/branch}","tags_url":"https://api.github.com/repos/pa1pal/phimpme-android/tags","blobs_url":"https://api.github.com/repos/pa1pal/phimpme-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pa1pal/phimpme-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pa1pal/phimpme-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/pa1pal/phimpme-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pa1pal/phimpme-android/statuses/{sha}","languages_url":"https://api.github.com/repos/pa1pal/phimpme-android/languages","stargazers_url":"https://api.github.com/repos/pa1pal/phimpme-android/stargazers","contributors_url":"https://api.github.com/repos/pa1pal/phimpme-android/contributors","subscribers_url":"https://api.github.com/repos/pa1pal/phimpme-android/subscribers","subscription_url":"https://api.github.com/repos/pa1pal/phimpme-android/subscription","commits_url":"https://api.github.com/repos/pa1pal/phimpme-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/pa1pal/phimpme-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/pa1pal/phimpme-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/pa1pal/phimpme-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/pa1pal/phimpme-android/contents/{+path}","compare_url":"https://api.github.com/repos/pa1pal/phimpme-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pa1pal/phimpme-android/merges","archive_url":"https://api.github.com/repos/pa1pal/phimpme-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pa1pal/phimpme-android/downloads","issues_url":"https://api.github.com/repos/pa1pal/phimpme-android/issues{/number}","pulls_url":"https://api.github.com/repos/pa1pal/phimpme-android/pulls{/number}","milestones_url":"https://api.github.com/repos/pa1pal/phimpme-android/milestones{/number}","notifications_url":"https://api.github.com/repos/pa1pal/phimpme-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pa1pal/phimpme-android/labels{/name}","releases_url":"https://api.github.com/repos/pa1pal/phimpme-android/releases{/id}","deployments_url":"https://api.github.com/repos/pa1pal/phimpme-android/deployments","created_at":"2016-08-13T18:47:59Z","updated_at":"2016-08-15T05:17:55Z","pushed_at":"2017-06-25T15:03:07Z","git_url":"git://github.com/pa1pal/phimpme-android.git","ssh_url":"git@github.com:pa1pal/phimpme-android.git","clone_url":"https://github.com/pa1pal/phimpme-android.git","svn_url":"https://github.com/pa1pal/phimpme-android","homepage":"http://labs.fossasia.org","size":161347,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"8542121c3fb7d1af06115d4f4576ac2d94b46279","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars0.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":5713702,"name":"phimpme-android","full_name":"fossasia/phimpme-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars0.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/phimpme-android","description":"Phimp.me - Photo App https://github.com/fossasia/phimpme-android/raw/apk/app-debug.apk http://phimp.me","fork":false,"url":"https://api.github.com/repos/fossasia/phimpme-android","forks_url":"https://api.github.com/repos/fossasia/phimpme-android/forks","keys_url":"https://api.github.com/repos/fossasia/phimpme-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/phimpme-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/phimpme-android/teams","hooks_url":"https://api.github.com/repos/fossasia/phimpme-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/phimpme-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/phimpme-android/events","assignees_url":"https://api.github.com/repos/fossasia/phimpme-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/phimpme-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/phimpme-android/tags","blobs_url":"https://api.github.com/repos/fossasia/phimpme-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/phimpme-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/phimpme-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/phimpme-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/phimpme-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/phimpme-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/phimpme-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/phimpme-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/phimpme-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/phimpme-android/subscription","commits_url":"https://api.github.com/repos/fossasia/phimpme-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/phimpme-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/phimpme-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/phimpme-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/phimpme-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/phimpme-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/phimpme-android/merges","archive_url":"https://api.github.com/repos/fossasia/phimpme-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/phimpme-android/downloads","issues_url":"https://api.github.com/repos/fossasia/phimpme-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/phimpme-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/phimpme-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/phimpme-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/phimpme-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/phimpme-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/phimpme-android/deployments","created_at":"2012-09-07T07:14:54Z","updated_at":"2017-06-24T20:47:04Z","pushed_at":"2017-06-25T15:03:09Z","git_url":"git://github.com/fossasia/phimpme-android.git","ssh_url":"git@github.com:fossasia/phimpme-android.git","clone_url":"https://github.com/fossasia/phimpme-android.git","svn_url":"https://github.com/fossasia/phimpme-android","homepage":"","size":165025,"stargazers_count":92,"watchers_count":92,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":16,"forks":104,"open_issues":16,"watchers":92,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674"},"html":{"href":"https://github.com/fossasia/phimpme-android/pull/674"},"issue":{"href":"https://api.github.com/repos/fossasia/phimpme-android/issues/674"},"comments":{"href":"https://api.github.com/repos/fossasia/phimpme-android/issues/674/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/phimpme-android/pulls/674/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/phimpme-android/statuses/bc08435233b7e18ba41183d7820553c27c6e53a1"}}}}
{"actor":{"display_login":"codacy-bot"}}