{"action":"created","comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments/37802920","id":37802920,"diff_hunk":"@@ -548,16 +555,18 @@ public String getNewAuthToken() {\n                         }\n \n                         // Broadcasts an intent that the access token has been revoked.\n-                        final Intent revokeIntent = new Intent(ACCESS_TOKEN_REVOKE_INTENT);\n-                        revokeIntent.setPackage(SalesforceSDKManager.getInstance().getAppContext().getPackageName());\n-                        SalesforceSDKManager.getInstance().getAppContext().sendBroadcast(revokeIntent);\n+                        broadcastIntent = new Intent(ACCESS_TOKEN_REVOKE_INTENT);\n+                    } else if (newInstanceUrl != null && !newInstanceUrl.equalsIgnoreCase(lastNewInstanceUrl)) {\n+                        // Broadcasts an intent that the instance server has changed (implicitly token refreshed too)\n+                        broadcastIntent = new Intent(INSTANCE_URL_UPDATE_INTENT);","path":"libs/SalesforceSDK/src/com/salesforce/androidsdk/rest/ClientManager.java","position":65,"original_position":65,"commit_id":"0be6959f24444c2989c7a328725e29a40e503a2b","original_commit_id":"0be6959f24444c2989c7a328725e29a40e503a2b","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"body":"Sounds good. So no changes required :)","created_at":"2015-08-24T20:51:22Z","updated_at":"2015-08-24T20:51:22Z","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940#discussion_r37802920","pull_request_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940","_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments/37802920"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940#discussion_r37802920"},"pull_request":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940"}}},"pull_request":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940","id":43092166,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940","diff_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940.diff","patch_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940.patch","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/940","number":940,"state":"open","locked":false,"title":"Fixes for org split","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-21T23:59:46Z","updated_at":"2015-08-24T20:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"990ee8da0f0d5bcfca4852c5131b73810e8bbe10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940/commits","review_comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940/comments","review_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/940/comments","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/0be6959f24444c2989c7a328725e29a40e503a2b","head":{"label":"kchitalia:master","ref":"master","sha":"0be6959f24444c2989c7a328725e29a40e503a2b","user":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"repo":{"id":41113515,"name":"SalesforceMobileSDK-Android","full_name":"kchitalia/SalesforceMobileSDK-Android","owner":{"login":"kchitalia","id":9594228,"avatar_url":"https://avatars.githubusercontent.com/u/9594228?v=3","gravatar_id":"","url":"https://api.github.com/users/kchitalia","html_url":"https://github.com/kchitalia","followers_url":"https://api.github.com/users/kchitalia/followers","following_url":"https://api.github.com/users/kchitalia/following{/other_user}","gists_url":"https://api.github.com/users/kchitalia/gists{/gist_id}","starred_url":"https://api.github.com/users/kchitalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchitalia/subscriptions","organizations_url":"https://api.github.com/users/kchitalia/orgs","repos_url":"https://api.github.com/users/kchitalia/repos","events_url":"https://api.github.com/users/kchitalia/events{/privacy}","received_events_url":"https://api.github.com/users/kchitalia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kchitalia/SalesforceMobileSDK-Android","description":"Android SDK for Salesforce","fork":true,"url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android","forks_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/forks","keys_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/teams","hooks_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/hooks","issue_events_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/issues/events{/number}","events_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/events","assignees_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/assignees{/user}","branches_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/branches{/branch}","tags_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/tags","blobs_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/languages","stargazers_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/stargazers","contributors_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/contributors","subscribers_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/subscribers","subscription_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/subscription","commits_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/contents/{+path}","compare_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/merges","archive_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/downloads","issues_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/issues{/number}","pulls_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/labels{/name}","releases_url":"https://api.github.com/repos/kchitalia/SalesforceMobileSDK-Android/releases{/id}","created_at":"2015-08-20T18:54:20Z","updated_at":"2015-08-20T18:54:22Z","pushed_at":"2015-08-21T23:59:13Z","git_url":"git://github.com/kchitalia/SalesforceMobileSDK-Android.git","ssh_url":"git@github.com:kchitalia/SalesforceMobileSDK-Android.git","clone_url":"https://github.com/kchitalia/SalesforceMobileSDK-Android.git","svn_url":"https://github.com/kchitalia/SalesforceMobileSDK-Android","homepage":"","size":59676,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"forcedotcom:master","ref":"master","sha":"f823c15d59a047d249f1b1b2598475f36b3b0ae2","user":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"repo":{"id":2782691,"name":"SalesforceMobileSDK-Android","full_name":"forcedotcom/SalesforceMobileSDK-Android","owner":{"login":"forcedotcom","id":464563,"avatar_url":"https://avatars.githubusercontent.com/u/464563?v=3","gravatar_id":"","url":"https://api.github.com/users/forcedotcom","html_url":"https://github.com/forcedotcom","followers_url":"https://api.github.com/users/forcedotcom/followers","following_url":"https://api.github.com/users/forcedotcom/following{/other_user}","gists_url":"https://api.github.com/users/forcedotcom/gists{/gist_id}","starred_url":"https://api.github.com/users/forcedotcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcedotcom/subscriptions","organizations_url":"https://api.github.com/users/forcedotcom/orgs","repos_url":"https://api.github.com/users/forcedotcom/repos","events_url":"https://api.github.com/users/forcedotcom/events{/privacy}","received_events_url":"https://api.github.com/users/forcedotcom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android","description":"Android SDK for Salesforce","fork":false,"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android","forks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/forks","keys_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/teams","hooks_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/hooks","issue_events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/events{/number}","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/events","assignees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/assignees{/user}","branches_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/branches{/branch}","tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/tags","blobs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/languages","stargazers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/stargazers","contributors_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/contributors","subscribers_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/subscribers","subscription_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/subscription","commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/contents/{+path}","compare_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/merges","archive_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/downloads","issues_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues{/number}","pulls_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/labels{/name}","releases_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/releases{/id}","created_at":"2011-11-15T19:35:05Z","updated_at":"2015-08-20T02:50:06Z","pushed_at":"2015-08-21T23:59:47Z","git_url":"git://github.com/forcedotcom/SalesforceMobileSDK-Android.git","ssh_url":"git@github.com:forcedotcom/SalesforceMobileSDK-Android.git","clone_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android.git","svn_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Android","homepage":"","size":59676,"stargazers_count":173,"watchers_count":173,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":226,"mirror_url":null,"open_issues_count":8,"forks":226,"open_issues":8,"watchers":173,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940"},"html":{"href":"https://github.com/forcedotcom/SalesforceMobileSDK-Android/pull/940"},"issue":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/940"},"comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/issues/940/comments"},"review_comments":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940/comments"},"review_comment":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/pulls/940/commits"},"statuses":{"href":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Android/statuses/0be6959f24444c2989c7a328725e29a40e503a2b"}}}}