{"action":"created","comment":{"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments/44364650","id":44364650,"diff_hunk":"@@ -3,26 +3,19 @@\n import android.app.AlarmManager;\n import android.app.IntentService;\n import android.app.PendingIntent;\n-import android.app.Service;\n import android.content.Context;\n import android.content.Intent;\n import android.content.SharedPreferences;\n-import android.os.IBinder;\n+import android.os.Build;\n import android.preference.PreferenceManager;\n-import com.eveningoutpost.dexdrip.Models.UserError.Log;\n \n-import com.eveningoutpost.dexdrip.Models.BgReading;\n-import com.eveningoutpost.dexdrip.Models.Calibration;\n+import com.eveningoutpost.dexdrip.Models.UserError.Log;\n import com.eveningoutpost.dexdrip.UtilityModels.BgSendQueue;\n import com.eveningoutpost.dexdrip.UtilityModels.CalibrationSendQueue;\n import com.eveningoutpost.dexdrip.UtilityModels.MongoSendTask;\n-import com.eveningoutpost.dexdrip.UtilityModels.NightscoutUploader;\n-import com.eveningoutpost.dexdrip.UtilityModels.RestCalls;\n import com.eveningoutpost.dexdrip.UtilityModels.SensorSendQueue;","path":"app/src/main/java/com/eveningoutpost/dexdrip/Services/SyncService.java","position":21,"original_position":21,"commit_id":"1ae633ad06902feb2fed09dffce024c31a9cfc23","original_commit_id":"1ae633ad06902feb2fed09dffce024c31a9cfc23","user":{"login":"mgranberry","id":152687,"avatar_url":"https://avatars.githubusercontent.com/u/152687?v=3","gravatar_id":"","url":"https://api.github.com/users/mgranberry","html_url":"https://github.com/mgranberry","followers_url":"https://api.github.com/users/mgranberry/followers","following_url":"https://api.github.com/users/mgranberry/following{/other_user}","gists_url":"https://api.github.com/users/mgranberry/gists{/gist_id}","starred_url":"https://api.github.com/users/mgranberry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgranberry/subscriptions","organizations_url":"https://api.github.com/users/mgranberry/orgs","repos_url":"https://api.github.com/users/mgranberry/repos","events_url":"https://api.github.com/users/mgranberry/events{/privacy}","received_events_url":"https://api.github.com/users/mgranberry/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Avoid unused imports such as 'com.eveningoutpost.dexdrip.UtilityModels.SensorSendQueue'](https://www.codacy.com/app/matthias-granberry/xDrip-Experimental/file/1296698384/issues/source?bid=2735053&fileBranchId=2947762#l16)","created_at":"2015-11-10T02:44:43Z","updated_at":"2015-11-10T02:44:43Z","html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171#discussion_r44364650","pull_request_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments/44364650"},"html":{"href":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171#discussion_r44364650"},"pull_request":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171","id":49410163,"html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171","diff_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171.diff","patch_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171.patch","issue_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/171","number":171,"state":"open","locked":false,"title":"Marshmallow","user":{"login":"mgranberry","id":152687,"avatar_url":"https://avatars.githubusercontent.com/u/152687?v=3","gravatar_id":"","url":"https://api.github.com/users/mgranberry","html_url":"https://github.com/mgranberry","followers_url":"https://api.github.com/users/mgranberry/followers","following_url":"https://api.github.com/users/mgranberry/following{/other_user}","gists_url":"https://api.github.com/users/mgranberry/gists{/gist_id}","starred_url":"https://api.github.com/users/mgranberry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgranberry/subscriptions","organizations_url":"https://api.github.com/users/mgranberry/orgs","repos_url":"https://api.github.com/users/mgranberry/repos","events_url":"https://api.github.com/users/mgranberry/events{/privacy}","received_events_url":"https://api.github.com/users/mgranberry/received_events","type":"User","site_admin":false},"body":"Initial stab at marshmallow port.  Share support is completely broken by the retrofit update and permissions aren't being handled for export/import yet, but it is working better for doze (after turning off battery optimization).  \r\n\r\nI still need to add a popup to direct users to toggle the setting.\r\n\r\nNot ready for merge.","created_at":"2015-11-02T09:30:31Z","updated_at":"2015-11-10T02:44:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a2b3f10605ac36565c36f7855ab489ae25486cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171/commits","review_comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171/comments","review_comment_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/171/comments","statuses_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/1ae633ad06902feb2fed09dffce024c31a9cfc23","head":{"label":"StephenBlackWasAlreadyTaken:marshmallow","ref":"marshmallow","sha":"1ae633ad06902feb2fed09dffce024c31a9cfc23","user":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"repo":{"id":30898542,"name":"xDrip-Experimental","full_name":"StephenBlackWasAlreadyTaken/xDrip-Experimental","owner":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","description":"Experimental Branches for Collaboration on DexDrip","fork":false,"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental","forks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/forks","keys_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/teams","hooks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/hooks","issue_events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/events","assignees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/tags","blobs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/languages","stargazers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/stargazers","contributors_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contributors","subscribers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscribers","subscription_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscription","commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/merges","archive_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/downloads","issues_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/labels{/name}","releases_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/releases{/id}","created_at":"2015-02-17T02:04:01Z","updated_at":"2015-10-18T07:32:36Z","pushed_at":"2015-11-09T23:13:14Z","git_url":"git://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","ssh_url":"git@github.com:StephenBlackWasAlreadyTaken/xDrip-Experimental.git","clone_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","svn_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","homepage":null,"size":6920,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":20,"forks":37,"open_issues":20,"watchers":13,"default_branch":"master"}},"base":{"label":"StephenBlackWasAlreadyTaken:master","ref":"master","sha":"d94759b8deb9549395d1e126858e46f7e98b98be","user":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"repo":{"id":30898542,"name":"xDrip-Experimental","full_name":"StephenBlackWasAlreadyTaken/xDrip-Experimental","owner":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","description":"Experimental Branches for Collaboration on DexDrip","fork":false,"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental","forks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/forks","keys_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/teams","hooks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/hooks","issue_events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/events","assignees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/tags","blobs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/languages","stargazers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/stargazers","contributors_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contributors","subscribers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscribers","subscription_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscription","commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/merges","archive_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/downloads","issues_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/labels{/name}","releases_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/releases{/id}","created_at":"2015-02-17T02:04:01Z","updated_at":"2015-10-18T07:32:36Z","pushed_at":"2015-11-09T23:13:14Z","git_url":"git://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","ssh_url":"git@github.com:StephenBlackWasAlreadyTaken/xDrip-Experimental.git","clone_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","svn_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","homepage":null,"size":6920,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":20,"forks":37,"open_issues":20,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171"},"html":{"href":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/171"},"issue":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/171"},"comments":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/1ae633ad06902feb2fed09dffce024c31a9cfc23"}}}}