{"action":"created","comment":{"url":"https://api.github.com/repos/onaio/kujaku/pulls/comments/235876351","pull_request_review_id":177844832,"id":235876351,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTg3NjM1MQ==","diff_hunk":"@@ -371,25 +419,30 @@ public void showAlertDialog(int title, int message,\n     @Override\n     protected void onResume() {\n         super.onResume();\n-        if (mapView != null) mapView.onResume();\n+        List<Point> droppedPoints = null;\n+        if (kujakuMapView != null) {\n+            kujakuMapView.onResume();\n+            droppedPoints = kujakuMapView.getDroppedPoints();","path":"library/src/main/java/io/ona/kujaku/activities/MapActivity.java","position":null,"original_position":166,"commit_id":"82d1adfdcab36503de25cc671840f848c047eb1a","original_commit_id":"fe2b52a8c54b81427e27dc0955ec012695ae2e20","user":{"login":"vincent-karuri","id":33488286,"node_id":"MDQ6VXNlcjMzNDg4Mjg2","avatar_url":"https://avatars2.githubusercontent.com/u/33488286?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-karuri","html_url":"https://github.com/vincent-karuri","followers_url":"https://api.github.com/users/vincent-karuri/followers","following_url":"https://api.github.com/users/vincent-karuri/following{/other_user}","gists_url":"https://api.github.com/users/vincent-karuri/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-karuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-karuri/subscriptions","organizations_url":"https://api.github.com/users/vincent-karuri/orgs","repos_url":"https://api.github.com/users/vincent-karuri/repos","events_url":"https://api.github.com/users/vincent-karuri/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-karuri/received_events","type":"User","site_admin":false},"body":"Note that dropped points are maintained as a Set in KujakuMapView.\r\n\r\nThanks @githengi  for input on this.","created_at":"2018-11-23T09:06:42Z","updated_at":"2018-11-23T09:06:42Z","html_url":"https://github.com/onaio/kujaku/pull/154#discussion_r235876351","pull_request_url":"https://api.github.com/repos/onaio/kujaku/pulls/154","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/comments/235876351"},"html":{"href":"https://github.com/onaio/kujaku/pull/154#discussion_r235876351"},"pull_request":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/154"}},"in_reply_to_id":235348829},"pull_request":{"url":"https://api.github.com/repos/onaio/kujaku/pulls/154","id":226047524,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MDQ3NTI0","html_url":"https://github.com/onaio/kujaku/pull/154","diff_url":"https://github.com/onaio/kujaku/pull/154.diff","patch_url":"https://github.com/onaio/kujaku/pull/154.patch","issue_url":"https://api.github.com/repos/onaio/kujaku/issues/154","number":154,"state":"open","locked":false,"title":"Add drop point functionality to map activity","user":{"login":"vincent-karuri","id":33488286,"node_id":"MDQ6VXNlcjMzNDg4Mjg2","avatar_url":"https://avatars2.githubusercontent.com/u/33488286?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-karuri","html_url":"https://github.com/vincent-karuri","followers_url":"https://api.github.com/users/vincent-karuri/followers","following_url":"https://api.github.com/users/vincent-karuri/following{/other_user}","gists_url":"https://api.github.com/users/vincent-karuri/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-karuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-karuri/subscriptions","organizations_url":"https://api.github.com/users/vincent-karuri/orgs","repos_url":"https://api.github.com/users/vincent-karuri/repos","events_url":"https://api.github.com/users/vincent-karuri/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-karuri/received_events","type":"User","site_admin":false},"body":"- Add drop point functionality to map activity\r\n- Save the dropped points to a db\r\n- Restore dropped points when the user navigates back to map after navigating away\r\n- Refactor KujakuLibrary to act as an interface between the larger GeoWidget and the host application","created_at":"2018-10-26T10:20:12Z","updated_at":"2018-11-23T09:06:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2da1b3fca7246fd2a37015c07a415312183a789a","assignee":{"login":"vincent-karuri","id":33488286,"node_id":"MDQ6VXNlcjMzNDg4Mjg2","avatar_url":"https://avatars2.githubusercontent.com/u/33488286?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-karuri","html_url":"https://github.com/vincent-karuri","followers_url":"https://api.github.com/users/vincent-karuri/followers","following_url":"https://api.github.com/users/vincent-karuri/following{/other_user}","gists_url":"https://api.github.com/users/vincent-karuri/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-karuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-karuri/subscriptions","organizations_url":"https://api.github.com/users/vincent-karuri/orgs","repos_url":"https://api.github.com/users/vincent-karuri/repos","events_url":"https://api.github.com/users/vincent-karuri/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-karuri/received_events","type":"User","site_admin":false},"assignees":[{"login":"vincent-karuri","id":33488286,"node_id":"MDQ6VXNlcjMzNDg4Mjg2","avatar_url":"https://avatars2.githubusercontent.com/u/33488286?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-karuri","html_url":"https://github.com/vincent-karuri","followers_url":"https://api.github.com/users/vincent-karuri/followers","following_url":"https://api.github.com/users/vincent-karuri/following{/other_user}","gists_url":"https://api.github.com/users/vincent-karuri/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-karuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-karuri/subscriptions","organizations_url":"https://api.github.com/users/vincent-karuri/orgs","repos_url":"https://api.github.com/users/vincent-karuri/repos","events_url":"https://api.github.com/users/vincent-karuri/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-karuri/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1092874760,"node_id":"MDU6TGFiZWwxMDkyODc0NzYw","url":"https://api.github.com/repos/onaio/kujaku/labels/Library/Geospatial%20widget","name":"Library/Geospatial widget","color":"f7b647","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/onaio/kujaku/pulls/154/commits","review_comments_url":"https://api.github.com/repos/onaio/kujaku/pulls/154/comments","review_comment_url":"https://api.github.com/repos/onaio/kujaku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onaio/kujaku/issues/154/comments","statuses_url":"https://api.github.com/repos/onaio/kujaku/statuses/82d1adfdcab36503de25cc671840f848c047eb1a","head":{"label":"onaio:133-add-drop-point-functionality-to-map-activity","ref":"133-add-drop-point-functionality-to-map-activity","sha":"82d1adfdcab36503de25cc671840f848c047eb1a","user":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":109667968,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk2Njc5Njg=","name":"kujaku","full_name":"onaio/kujaku","private":false,"owner":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/onaio/kujaku","description":"Mapping and check-in library for Android using MapBox SDK","fork":false,"url":"https://api.github.com/repos/onaio/kujaku","forks_url":"https://api.github.com/repos/onaio/kujaku/forks","keys_url":"https://api.github.com/repos/onaio/kujaku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/kujaku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/kujaku/teams","hooks_url":"https://api.github.com/repos/onaio/kujaku/hooks","issue_events_url":"https://api.github.com/repos/onaio/kujaku/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/kujaku/events","assignees_url":"https://api.github.com/repos/onaio/kujaku/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/kujaku/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/kujaku/tags","blobs_url":"https://api.github.com/repos/onaio/kujaku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/kujaku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/kujaku/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/kujaku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/kujaku/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/kujaku/languages","stargazers_url":"https://api.github.com/repos/onaio/kujaku/stargazers","contributors_url":"https://api.github.com/repos/onaio/kujaku/contributors","subscribers_url":"https://api.github.com/repos/onaio/kujaku/subscribers","subscription_url":"https://api.github.com/repos/onaio/kujaku/subscription","commits_url":"https://api.github.com/repos/onaio/kujaku/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/kujaku/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/kujaku/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/kujaku/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/kujaku/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/kujaku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/kujaku/merges","archive_url":"https://api.github.com/repos/onaio/kujaku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/kujaku/downloads","issues_url":"https://api.github.com/repos/onaio/kujaku/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/kujaku/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/kujaku/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/kujaku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/kujaku/labels{/name}","releases_url":"https://api.github.com/repos/onaio/kujaku/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/kujaku/deployments","created_at":"2017-11-06T08:33:03Z","updated_at":"2018-11-22T08:30:54Z","pushed_at":"2018-11-23T09:05:44Z","git_url":"git://github.com/onaio/kujaku.git","ssh_url":"git@github.com:onaio/kujaku.git","clone_url":"https://github.com/onaio/kujaku.git","svn_url":"https://github.com/onaio/kujaku","homepage":"https://ona.io","size":1167,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1,"open_issues":78,"watchers":13,"default_branch":"master"}},"base":{"label":"onaio:master","ref":"master","sha":"2fb535d4d82d47ad80d1570f7347afdceca22f32","user":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":109667968,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk2Njc5Njg=","name":"kujaku","full_name":"onaio/kujaku","private":false,"owner":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/onaio/kujaku","description":"Mapping and check-in library for Android using MapBox SDK","fork":false,"url":"https://api.github.com/repos/onaio/kujaku","forks_url":"https://api.github.com/repos/onaio/kujaku/forks","keys_url":"https://api.github.com/repos/onaio/kujaku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/kujaku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/kujaku/teams","hooks_url":"https://api.github.com/repos/onaio/kujaku/hooks","issue_events_url":"https://api.github.com/repos/onaio/kujaku/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/kujaku/events","assignees_url":"https://api.github.com/repos/onaio/kujaku/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/kujaku/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/kujaku/tags","blobs_url":"https://api.github.com/repos/onaio/kujaku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/kujaku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/kujaku/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/kujaku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/kujaku/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/kujaku/languages","stargazers_url":"https://api.github.com/repos/onaio/kujaku/stargazers","contributors_url":"https://api.github.com/repos/onaio/kujaku/contributors","subscribers_url":"https://api.github.com/repos/onaio/kujaku/subscribers","subscription_url":"https://api.github.com/repos/onaio/kujaku/subscription","commits_url":"https://api.github.com/repos/onaio/kujaku/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/kujaku/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/kujaku/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/kujaku/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/kujaku/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/kujaku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/kujaku/merges","archive_url":"https://api.github.com/repos/onaio/kujaku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/kujaku/downloads","issues_url":"https://api.github.com/repos/onaio/kujaku/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/kujaku/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/kujaku/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/kujaku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/kujaku/labels{/name}","releases_url":"https://api.github.com/repos/onaio/kujaku/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/kujaku/deployments","created_at":"2017-11-06T08:33:03Z","updated_at":"2018-11-22T08:30:54Z","pushed_at":"2018-11-23T09:05:44Z","git_url":"git://github.com/onaio/kujaku.git","ssh_url":"git@github.com:onaio/kujaku.git","clone_url":"https://github.com/onaio/kujaku.git","svn_url":"https://github.com/onaio/kujaku","homepage":"https://ona.io","size":1167,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1,"open_issues":78,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/154"},"html":{"href":"https://github.com/onaio/kujaku/pull/154"},"issue":{"href":"https://api.github.com/repos/onaio/kujaku/issues/154"},"comments":{"href":"https://api.github.com/repos/onaio/kujaku/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onaio/kujaku/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/onaio/kujaku/statuses/82d1adfdcab36503de25cc671840f848c047eb1a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vincent-karuri"}}