{"action":"created","comment":{"url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/comments/57311733","id":57311733,"diff_hunk":"@@ -100,12 +100,14 @@ public void onCreate() {\n         // Add OpenKeychain account to Android to link contacts with keys and keyserver sync\n         createAccountIfNecessary(this);\n \n-        // if first time, enable keyserver and contact sync\n+        // if first time, enable contact sync\n         if (Preferences.getPreferences(this).isFirstTime()) {\n-            KeyserverSyncAdapterService.enableKeyserverSync(this);\n             ContactSyncAdapterService.enableContactsSync(this);\n         }\n \n+        // will set a keyserver sync if one does not exist or the interval has changed\n+        KeyserverSyncAdapterService.updateKeyserverSync(this);","path":"OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java","position":12,"original_position":12,"commit_id":"18ec389bf5b95889295ebe8d2279d933ad4aeb73","original_commit_id":"18ec389bf5b95889295ebe8d2279d933ad4aeb73","user":{"login":"dschuermann","id":321888,"avatar_url":"https://avatars.githubusercontent.com/u/321888?v=3","gravatar_id":"","url":"https://api.github.com/users/dschuermann","html_url":"https://github.com/dschuermann","followers_url":"https://api.github.com/users/dschuermann/followers","following_url":"https://api.github.com/users/dschuermann/following{/other_user}","gists_url":"https://api.github.com/users/dschuermann/gists{/gist_id}","starred_url":"https://api.github.com/users/dschuermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschuermann/subscriptions","organizations_url":"https://api.github.com/users/dschuermann/orgs","repos_url":"https://api.github.com/users/dschuermann/repos","events_url":"https://api.github.com/users/dschuermann/events{/privacy}","received_events_url":"https://api.github.com/users/dschuermann/received_events","type":"User","site_admin":false},"body":"when I disable the sync, will this change not enable it every time I start the app?","created_at":"2016-03-24T12:54:19Z","updated_at":"2016-03-24T12:54:19Z","html_url":"https://github.com/open-keychain/open-keychain/pull/1776#discussion_r57311733","pull_request_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776","_links":{"self":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/comments/57311733"},"html":{"href":"https://github.com/open-keychain/open-keychain/pull/1776#discussion_r57311733"},"pull_request":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776"}}},"pull_request":{"url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776","id":62404572,"html_url":"https://github.com/open-keychain/open-keychain/pull/1776","diff_url":"https://github.com/open-keychain/open-keychain/pull/1776.diff","patch_url":"https://github.com/open-keychain/open-keychain/pull/1776.patch","issue_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1776","number":1776,"state":"open","locked":false,"title":"Update Keyserver Sync if Sync Interval Changed","user":{"login":"adithyaphilip","id":5712241,"avatar_url":"https://avatars.githubusercontent.com/u/5712241?v=3","gravatar_id":"","url":"https://api.github.com/users/adithyaphilip","html_url":"https://github.com/adithyaphilip","followers_url":"https://api.github.com/users/adithyaphilip/followers","following_url":"https://api.github.com/users/adithyaphilip/following{/other_user}","gists_url":"https://api.github.com/users/adithyaphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/adithyaphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adithyaphilip/subscriptions","organizations_url":"https://api.github.com/users/adithyaphilip/orgs","repos_url":"https://api.github.com/users/adithyaphilip/repos","events_url":"https://api.github.com/users/adithyaphilip/events{/privacy}","received_events_url":"https://api.github.com/users/adithyaphilip/received_events","type":"User","site_admin":false},"body":"Until now the only way to update sync interval was uninstalling/re-installing the app. Shouldn't have affected any of our release builds since we never changed it.","created_at":"2016-03-10T15:18:01Z","updated_at":"2016-03-24T12:54:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"952578f088887d24a6de609cfa8ef8257835f8e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776/commits","review_comments_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776/comments","review_comment_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/1776/comments","statuses_url":"https://api.github.com/repos/open-keychain/open-keychain/statuses/18ec389bf5b95889295ebe8d2279d933ad4aeb73","head":{"label":"open-keychain:interval-fix","ref":"interval-fix","sha":"18ec389bf5b95889295ebe8d2279d933ad4aeb73","user":{"login":"open-keychain","id":6513445,"avatar_url":"https://avatars.githubusercontent.com/u/6513445?v=3","gravatar_id":"","url":"https://api.github.com/users/open-keychain","html_url":"https://github.com/open-keychain","followers_url":"https://api.github.com/users/open-keychain/followers","following_url":"https://api.github.com/users/open-keychain/following{/other_user}","gists_url":"https://api.github.com/users/open-keychain/gists{/gist_id}","starred_url":"https://api.github.com/users/open-keychain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-keychain/subscriptions","organizations_url":"https://api.github.com/users/open-keychain/orgs","repos_url":"https://api.github.com/users/open-keychain/repos","events_url":"https://api.github.com/users/open-keychain/events{/privacy}","received_events_url":"https://api.github.com/users/open-keychain/received_events","type":"Organization","site_admin":false},"repo":{"id":3669065,"name":"open-keychain","full_name":"open-keychain/open-keychain","owner":{"login":"open-keychain","id":6513445,"avatar_url":"https://avatars.githubusercontent.com/u/6513445?v=3","gravatar_id":"","url":"https://api.github.com/users/open-keychain","html_url":"https://github.com/open-keychain","followers_url":"https://api.github.com/users/open-keychain/followers","following_url":"https://api.github.com/users/open-keychain/following{/other_user}","gists_url":"https://api.github.com/users/open-keychain/gists{/gist_id}","starred_url":"https://api.github.com/users/open-keychain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-keychain/subscriptions","organizations_url":"https://api.github.com/users/open-keychain/orgs","repos_url":"https://api.github.com/users/open-keychain/repos","events_url":"https://api.github.com/users/open-keychain/events{/privacy}","received_events_url":"https://api.github.com/users/open-keychain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-keychain/open-keychain","description":"OpenKeychain is an OpenPGP implementation for Android.","fork":false,"url":"https://api.github.com/repos/open-keychain/open-keychain","forks_url":"https://api.github.com/repos/open-keychain/open-keychain/forks","keys_url":"https://api.github.com/repos/open-keychain/open-keychain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-keychain/open-keychain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-keychain/open-keychain/teams","hooks_url":"https://api.github.com/repos/open-keychain/open-keychain/hooks","issue_events_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/events{/number}","events_url":"https://api.github.com/repos/open-keychain/open-keychain/events","assignees_url":"https://api.github.com/repos/open-keychain/open-keychain/assignees{/user}","branches_url":"https://api.github.com/repos/open-keychain/open-keychain/branches{/branch}","tags_url":"https://api.github.com/repos/open-keychain/open-keychain/tags","blobs_url":"https://api.github.com/repos/open-keychain/open-keychain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-keychain/open-keychain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-keychain/open-keychain/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-keychain/open-keychain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-keychain/open-keychain/statuses/{sha}","languages_url":"https://api.github.com/repos/open-keychain/open-keychain/languages","stargazers_url":"https://api.github.com/repos/open-keychain/open-keychain/stargazers","contributors_url":"https://api.github.com/repos/open-keychain/open-keychain/contributors","subscribers_url":"https://api.github.com/repos/open-keychain/open-keychain/subscribers","subscription_url":"https://api.github.com/repos/open-keychain/open-keychain/subscription","commits_url":"https://api.github.com/repos/open-keychain/open-keychain/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-keychain/open-keychain/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-keychain/open-keychain/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-keychain/open-keychain/contents/{+path}","compare_url":"https://api.github.com/repos/open-keychain/open-keychain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-keychain/open-keychain/merges","archive_url":"https://api.github.com/repos/open-keychain/open-keychain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-keychain/open-keychain/downloads","issues_url":"https://api.github.com/repos/open-keychain/open-keychain/issues{/number}","pulls_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls{/number}","milestones_url":"https://api.github.com/repos/open-keychain/open-keychain/milestones{/number}","notifications_url":"https://api.github.com/repos/open-keychain/open-keychain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-keychain/open-keychain/labels{/name}","releases_url":"https://api.github.com/repos/open-keychain/open-keychain/releases{/id}","deployments_url":"https://api.github.com/repos/open-keychain/open-keychain/deployments","created_at":"2012-03-09T09:10:42Z","updated_at":"2016-03-24T04:24:29Z","pushed_at":"2016-03-24T12:52:04Z","git_url":"git://github.com/open-keychain/open-keychain.git","ssh_url":"git@github.com:open-keychain/open-keychain.git","clone_url":"https://github.com/open-keychain/open-keychain.git","svn_url":"https://github.com/open-keychain/open-keychain","homepage":"https://www.openkeychain.org","size":78724,"stargazers_count":575,"watchers_count":575,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":273,"mirror_url":null,"open_issues_count":174,"forks":273,"open_issues":174,"watchers":575,"default_branch":"master"}},"base":{"label":"open-keychain:master","ref":"master","sha":"48867e89bda3a816f120798f436a2740304b1d97","user":{"login":"open-keychain","id":6513445,"avatar_url":"https://avatars.githubusercontent.com/u/6513445?v=3","gravatar_id":"","url":"https://api.github.com/users/open-keychain","html_url":"https://github.com/open-keychain","followers_url":"https://api.github.com/users/open-keychain/followers","following_url":"https://api.github.com/users/open-keychain/following{/other_user}","gists_url":"https://api.github.com/users/open-keychain/gists{/gist_id}","starred_url":"https://api.github.com/users/open-keychain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-keychain/subscriptions","organizations_url":"https://api.github.com/users/open-keychain/orgs","repos_url":"https://api.github.com/users/open-keychain/repos","events_url":"https://api.github.com/users/open-keychain/events{/privacy}","received_events_url":"https://api.github.com/users/open-keychain/received_events","type":"Organization","site_admin":false},"repo":{"id":3669065,"name":"open-keychain","full_name":"open-keychain/open-keychain","owner":{"login":"open-keychain","id":6513445,"avatar_url":"https://avatars.githubusercontent.com/u/6513445?v=3","gravatar_id":"","url":"https://api.github.com/users/open-keychain","html_url":"https://github.com/open-keychain","followers_url":"https://api.github.com/users/open-keychain/followers","following_url":"https://api.github.com/users/open-keychain/following{/other_user}","gists_url":"https://api.github.com/users/open-keychain/gists{/gist_id}","starred_url":"https://api.github.com/users/open-keychain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-keychain/subscriptions","organizations_url":"https://api.github.com/users/open-keychain/orgs","repos_url":"https://api.github.com/users/open-keychain/repos","events_url":"https://api.github.com/users/open-keychain/events{/privacy}","received_events_url":"https://api.github.com/users/open-keychain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-keychain/open-keychain","description":"OpenKeychain is an OpenPGP implementation for Android.","fork":false,"url":"https://api.github.com/repos/open-keychain/open-keychain","forks_url":"https://api.github.com/repos/open-keychain/open-keychain/forks","keys_url":"https://api.github.com/repos/open-keychain/open-keychain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-keychain/open-keychain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-keychain/open-keychain/teams","hooks_url":"https://api.github.com/repos/open-keychain/open-keychain/hooks","issue_events_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/events{/number}","events_url":"https://api.github.com/repos/open-keychain/open-keychain/events","assignees_url":"https://api.github.com/repos/open-keychain/open-keychain/assignees{/user}","branches_url":"https://api.github.com/repos/open-keychain/open-keychain/branches{/branch}","tags_url":"https://api.github.com/repos/open-keychain/open-keychain/tags","blobs_url":"https://api.github.com/repos/open-keychain/open-keychain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-keychain/open-keychain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-keychain/open-keychain/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-keychain/open-keychain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-keychain/open-keychain/statuses/{sha}","languages_url":"https://api.github.com/repos/open-keychain/open-keychain/languages","stargazers_url":"https://api.github.com/repos/open-keychain/open-keychain/stargazers","contributors_url":"https://api.github.com/repos/open-keychain/open-keychain/contributors","subscribers_url":"https://api.github.com/repos/open-keychain/open-keychain/subscribers","subscription_url":"https://api.github.com/repos/open-keychain/open-keychain/subscription","commits_url":"https://api.github.com/repos/open-keychain/open-keychain/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-keychain/open-keychain/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-keychain/open-keychain/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-keychain/open-keychain/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-keychain/open-keychain/contents/{+path}","compare_url":"https://api.github.com/repos/open-keychain/open-keychain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-keychain/open-keychain/merges","archive_url":"https://api.github.com/repos/open-keychain/open-keychain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-keychain/open-keychain/downloads","issues_url":"https://api.github.com/repos/open-keychain/open-keychain/issues{/number}","pulls_url":"https://api.github.com/repos/open-keychain/open-keychain/pulls{/number}","milestones_url":"https://api.github.com/repos/open-keychain/open-keychain/milestones{/number}","notifications_url":"https://api.github.com/repos/open-keychain/open-keychain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-keychain/open-keychain/labels{/name}","releases_url":"https://api.github.com/repos/open-keychain/open-keychain/releases{/id}","deployments_url":"https://api.github.com/repos/open-keychain/open-keychain/deployments","created_at":"2012-03-09T09:10:42Z","updated_at":"2016-03-24T04:24:29Z","pushed_at":"2016-03-24T12:52:04Z","git_url":"git://github.com/open-keychain/open-keychain.git","ssh_url":"git@github.com:open-keychain/open-keychain.git","clone_url":"https://github.com/open-keychain/open-keychain.git","svn_url":"https://github.com/open-keychain/open-keychain","homepage":"https://www.openkeychain.org","size":78724,"stargazers_count":575,"watchers_count":575,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":273,"mirror_url":null,"open_issues_count":174,"forks":273,"open_issues":174,"watchers":575,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776"},"html":{"href":"https://github.com/open-keychain/open-keychain/pull/1776"},"issue":{"href":"https://api.github.com/repos/open-keychain/open-keychain/issues/1776"},"comments":{"href":"https://api.github.com/repos/open-keychain/open-keychain/issues/1776/comments"},"review_comments":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776/comments"},"review_comment":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-keychain/open-keychain/pulls/1776/commits"},"statuses":{"href":"https://api.github.com/repos/open-keychain/open-keychain/statuses/18ec389bf5b95889295ebe8d2279d933ad4aeb73"}}}}